How to resolve ORA-02298: cannot validate (%s.%s) - parent keys not found

Hi, During the exp/imp process,i have tried to enable the constraints once the import done,but for some of the constraints am getting ORA-02298: cannot validate (%s.%s) - parent keys not found error,can anyone assist me what are all the possible ways to fix this issue. database -ORACLE 11g,o/s -LINUX

Hi. Put the missing values into the parent table or Remove the rows in the child table which contain values that are not in the parent table
http://www.shutdownabort.com/errors/ORA-02298.php
Regards
Javid Hasanov
Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Edited by: Javid Hesenov on Jul 6, 2012 2:03 AM

Similar Messages

  • ORA-02298 : cannot validate - parent keys not

    Hi,
    I am trying to create a FK-PK constraints.
    In the alter table command i am using the caluse:
    exceptions INTO ... in order to catch all the exception rows .
    Can you please explain why i am getting this error message ?
    I am using the following command:
    SQL> ALTER TABLE STARQ.CALL_FACT ADD (
    2 CONSTRAINT CALL_FACT_FK_cmcustdim1
    3 FOREIGN KEY (CUST_ID)
    4 REFERENCES STARQ.CM_CUST_DIM_1 (DWH_CUST_ID)
    5 exceptions INTO starq.exceptions );
    CONSTRAINT CALL_FACT_FK_cmcustdim1
    ERROR at line 2:
    ORA-02298: cannot validate (STARQ.CALL_FACT_FK_CMCUSTDIM1) - parent keys not found

    Hi,
    >>Can you please explain why i am getting this error message ?
    This is a normal behavior. After issued the "alter table add constraint ..." command, you need to query on EXCEPTIONS table.
    LEGATTI@XE> create table a (id number constraint pk_a primary key);
    Table created.
    LEGATTI@XE> create table b (id number);
    Table created.
    LEGATTI@XE> insert into b values (1);
    1 row created.
    LEGATTI@XE> create table exceptions(row_id rowid,
      2                     owner varchar2(30),
      3                     table_name varchar2(30),
      4                     constraint varchar2(30));
    Table created.
    LEGATTI@XE> alter table b add constraint fk_b_a foreign key (id) references a exceptions into exceptions;
    alter table b add constraint fk_b_a foreign key (id) references a exceptions into exceptions
    ERROR at line 1:
    ORA-02298: cannot validate (LEGATTI.FK_B_A) - parent keys not found
    LEGATTI@XE> select * from exceptions;
    ROW_ID             OWNER                          TABLE_NAME                     CONSTRAINT
    AAAD3mAAEAAAABoAAA LEGATTI                        B                              FK_B_ACheers
    Legatti

  • ORA-02298: cannot validate .......

    Hi,
    I exported user cmsadmin with constraints=y and consistent=y as DBA user from 9i then Imported it using fromuser/touser =cmsadmin into oracle 10g..
    i got the follwing error while importing:
    IMP-00017: following statement failed with ORACLE error 2298:
    "ALTER TABLE "RESPONSES" ENABLE CONSTRAINT "FK_RESPONSE_FK_CTF_RE_CERTIFIC""
    IMP-00003: ORACLE error 2298 encountered
    ORA-02298: cannot validate (CMSADMIN.FK_RESPONSE_FK_CTF_RE_CERTIFIC) - parent keys not found
    The
    ALTER TABLE "CMSADMIN"."RESPONSES" ADD CONSTRAINT
    "FK_RESPONSE_FK_CTF_RE_CERTIFIC" FOREIGN KEY ("REP_CERTIFICATION_ID")
    REFERENCES "CERTIFICATION" ("CTF_CERTIFICATION_ID") ENABLE NOVALIDATE ;
    But when i checked number of rows of for CERTICATION table in 9i DB and target 10g DB they are same....
    But when i run the following query:
    select distinct REP_CERTIFICATION_ID from RESPONSES a where not exists (select CTF_CERTIFICATION_ID from CERTIFICATION where CTF_CERTIFICATION_ID = a.REP_CERTIFICATION_ID);The above query returns 288 rows meaning they are not in CERTIFICATION table.. but the count of number of rows are same in source and target DB..
    What can be the reason..
    can you pls help...
    Thx

    Hi,
    here is my EXP and IMP commands:
    exp cmsadmin/frora04_adm file=cmsdbt01_cmsadmin_29Mar07.dmp log=cmsdbt01_cmsadmin_29Mar07.log owner=cmsadmin consistent=y grants=y constraints=y rows=n
    imp cmsadmin/orad1_adm file=cmsdbt01_cmsadmin_29Mar07.dmp log=cmsadmin_imp.log fromuser=cmsadmin touser=cmsadmin ignore=y
    moreover, when i run the following query in source database on 9i from where i took the export it does not return any rows meaning that data is fine in both parent and child tables:
    select distinct REP_CERTIFICATION_ID from RESPONSES a where not exists (select CTF_CERTIFICATION_ID from CERTIFICATION where CTF_CERTIFICATION_ID = a.REP_CERTIFICATION_ID);
    But, when i run the same above query in target table after importing the schema (usng above imp command) i get 14 distinct CTF_CERTIFICATION_ID meaning that they are not in parent table..
    Master Table --> CERTIFICATION
    PK column --> CTF_CERTIFICATION_ID
    Child Table --> RESPONSES
    FK column to above PK --> REP_CERTIFICATION_ID
    Hence issue still persists reg. parent key not found after importing..
    Thx

  • ORA-02298: cannot validate (PL_REM_FK_ES_EMP) - parent keys not found

    hi
    I disabled some constraints. But now, when I try to enable them then I get the error:
    ORA-02298: cannot validate (PL_REM_FK_ES_EMP) - parent keys not found.
    Plz guide me to resolve this problem.

    Hi,
    there is most likely some orphaned records in the child table. what command did you use to delete the record? what the output of
    select xxxxx from child_table a where not exists (select 'x' from
    parent_table where primary_key = a.key_values);
    dan

  • How to resolve ora issue-parent key not found!

    Hi,
    Once the import is done,when i tried to enable the constraints,am getting ORA-02298: cannot validate (%s.%s) - parent keys not found for some of the constraints,i had already raised a new thread,but when i tried to resolve this issue based on the solution provided there,i couldn't....
    http://www.shutdownabort.com/errors/ORA-02298.php
    i have tried in so many ways-
    -reimporting the parent table alone.
    -fresh export of all tables with option consistent=y
    but the records are matching between source and target tables.

    based on this issue,is there any simple query to findout the missing records in parent table,i don't have access for child_table,parent_table views.
    FYI- am using traditional imp/exp command to accomplish data import and export activities,i tried with the following query,but not getting any output
    select 'select '||cc.column_name-
    ||' from '||c.owner||'.'||c.table_name-
    ||' a where not exists (select ''x'' from '-
    ||r.owner||'.'||r.table_name-
    ||' where '||rc.column_name||' = a.'||cc.column_name||')'
    from dba_constraints c,
    dba_constraints r,
    dba_cons_columns cc,
    dba_cons_columns rc
    where c.constraint_type = 'R'
    and c.owner not in ('SYS','SYSTEM')
    and c.r_owner = r.owner
    and c.owner = cc.owner
    and r.owner = rc.owner
    and c.constraint_name = cc.constraint_name
    and r.constraint_name = rc.constraint_name
    and c.r_constraint_name = r.constraint_name
    and cc.position = rc.position
    and c.owner = '&table_owner'
    and c.table_name = '&table_name'
    and c.constraint_name = '&constraint_name'
    can anyone suggest to fix it using some other option.

  • ORA-02298: cannot enable name - parent keys not found

    Hi All,
    I got this problem while creating Foreign Key constraints ORA-02298: cannot enable name - parent keys not found. How to rectify this problem

    alter table WORK_APPROVAL_DETAILS
    add constraint FK_WRKAPPR_AUTH_APPR foreign key (APPROVER_CODE, PCC_INFO_CODE)
    references AUTHORIZED_APPROVERS (APPROVER_CODE, PCC_INFO_CODE);
    WORK_APPROVAL_DETAILS:
    inspection_id     number(16)               
    work_code      varchar2(18)               
    approver_code     varchar2(12)               
    approver_remarks     varchar2(200)               
    approval_date     date               
    role_code     char(2)               
    reference_no     varchar2(50)               
    pcc_info_code     varchar2(9)               
    status_code     number(4)
    AUTHORIZED_APPROVERS
    approver_code     varchar2(12)               
    approver_name     varchar2(30)               
    dept_code     varchar2(3)               
    desg_code      char(2)               
    is_active     char(1)               
    address     varchar2(250)               
    role_code     char(2)               
    created_by     varchar2(20)               
    created_date     date               
    pcc_info_code     varchar2(9)               
    qualification     varchar2(50)               
    experience      varchar2(25)

  • How to resolve ORA-00001 Error in SQL Insert?

    Hi all, I need your appreciated help.
    I make a plsql procedure that is inserting a row according cursor value, I'm having oracle error ORA-00001: unique constraint (constraint_name) violated.
    You may see this message if a duplicate entry exists at a different level: in RDBMS MySQL I have the syntax IGNORE to resolve this duplication error... and in Oracle ?
    Thanks for your time and hints.
    Miguelito

    user6317803 wrote:
    How to resolve ORA-00001 Error in SQL Insert?ORA-00001 means table has unique/primary key/index and you are trying to insert a row with key value that already exists in the table. I'll assume table COUNTRIES has primary key on COUNTRY_ID. Then change SQL to:
    SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ')"There is a good chance table COUNTRIES also has unique key/index on COUNTRY_NAME. If so use:
    SQL = "INSERT INTO COUNTRIES(COUNTRY_ID,COUNTRY_NAME,REGION_ID) SELECT 'BZ','BLZ',3 FROM DUAL WHERE NOT EXISTS(SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ' OR COUNTRY_NAME = 'BLZ')"SY.

  • "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7"

    I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
    Permission Problems in RDBMS 8.1.6 and 8.1.7".
    It will be accessible from Oracle Support's "Metalink" site.
    "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
    Problem Description
    Periodically an application running in the Enterprise Java Engine
    (EJE) formerly known as the "Oracle 8i JVM", "the JSERVER component", or
    the "Aurora JVM" will fail with a "java 2" permissions error having the
    following format :
    Note : Message shown below have been reformatted for easier readability.
    java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception:
    usually followed by a detailed error message similar to one of the following
    messages :
    Example # 1
    java.security.AccessControlException: the Permission
    (java.net.SocketPermission hostname resolve)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Example # 2
    java.security.AccessControlException: the Permission
    (java.util.PropertyPermission * read,write)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Example # 3
    java.security.AccessControlException: the Permission
    (java.io.FilePermission \matt1.gif read)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Explanation
    The java 2 permission stated in line # 2 of each of the above "Examples"
    has not been granted to the user specified in line 4 of the above "Examples".
    Solution Description
    The methodology to solve this issue is identical for all java 2 permissions
    cases.
    1) Format a call "dbms_java.grant_permission" procedure as described below.
    2) Logon as SYS or SYSTEM
    3) Issue the TWO commands shown below
    4) Logoff as SYS or SYSTEM
    5) Retry your application
    For Example # 1
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.net.SocketPermission',
    'hostname',
    'resolve');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    For Example # 2
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.util.PropertyPermission',
    'read,write');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    For Example # 3
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.io.FilePermission',
    '\matt1.gif',
    'read');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    References
    For more details on java 2 permissions and security within the EJE, review
    Chapter 5, in the Java Developer's Guide. entitled,
    "Security For Oracle8i Java Applications"
    The RDBMS 8.1.7 version can be found at :
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/index.htm

    Hi, Don,
    I solved the problem of security exception I mentioned at java procedure topic as following:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException
    I tried to use your solution as following:
    call dbms_java.grant_permission('SDE', 'java.net.SocketPermission', 'ORCL.COHPA.UCF.EDU','resolve');
    but SQL*plus gave me a error message:
    invalid collumn.
    What's the problem?
    However, I call a grant command as following:
    SQL> grant JAVASYSPRIV to sde;
    and then that exception is gone. What's the difference between dbms_java.grant_permission and grant command?
    Thanks
    Bing
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don -- oracle support:
    I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
    Permission Problems in RDBMS 8.1.6 and 8.1.7".
    It will be accessible from Oracle Support's "Metalink" site.
    "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
    Problem Description
    <HR></BLOCKQUOTE>
    null

  • ERROR ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

    Hi,
    SAPSSRC.log
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195059
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -ctf I C:/temp/51030721/EXP2/DATA/SAPSSRC.STR C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/DDLORA.TPL C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.TSK ORA -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job completed
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195059
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195133
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.cmd -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) INFO: ABTREE created #20071018195134
    (IMP) INFO: import of ABTREE completed (39 rows) #20071018195134
    (DB) INFO: ABTREE~0 created #20071018195134
    (DB) INFO: AKB_CHKCONF created #20071018195134
    (IMP) INFO: import of AKB_CHKCONF completed (0 rows) #20071018195134
    (DB) INFO: AKB_CHKCONF~0 created #20071018195134
    (DB) INFO: AKB_INDX created #20071018195134
    (IMP) INFO: import of AKB_INDX completed (0 rows) #20071018195134
    (DB) INFO: AKB_INDX~0 created #20071018195134
    (DB) INFO: AKB_USAGE_INFO created #20071018195134
    (IMP) INFO: import of AKB_USAGE_INFO completed (0 rows) #20071018195134
    (DB) INFO: AKB_USAGE_INFO~0 created #20071018195134
    (DB) INFO: AKB_USAGE_INFO2 created #20071018195134
    (IMP) INFO: import of AKB_USAGE_INFO2 completed (0 rows) #20071018195134
    (DB) INFO: AKB_USAGE_INFO2~0 created #20071018195134
    (DB) INFO: APTREE created #20071018195134
    (IMP) INFO: import of APTREE completed (388 rows) #20071018195134
    (DB) INFO: APTREE~0 created #20071018195134
    (DB) INFO: APTREE~001 created #20071018195134
    (DB) INFO: APTREET created #20071018195134
    (IMP) INFO: import of APTREET completed (272 rows) #20071018195134
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-1452 occurred when executing SQL statement (parse error offset=35)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "APTREET~0" ON "APTREET" ( "SPRAS", "ID", "NAME" ) TABLESPACE PSAPBW1 STORAGE (INITIAL 44981 NEXT 0000000040K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
    (SQL error 1452)
    error message returned by DbSl:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    (DB) INFO: disconnected from DB
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195134
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: START OF LOG: 20071018195314
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: version R6.40/V1.4
    Compiled Nov 30 2005 20:41:21
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.cmd -l C:\Program Files\sapinst_instdir\NW04\SYSTEM\ABAP\ORA\NUC\DB/SAPSSRC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): WE8DEC
    (DB) ERROR: DDL statement failed
    (DROP INDEX "APTREET~0")
    DbSlExecute: rc = 103
    (SQL error 1418)
    error message returned by DbSl:
    ORA-01418: specified index does not exist
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-1452 occurred when executing SQL statement (parse error offset=35)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "APTREET~0" ON "APTREET" ( "SPRAS", "ID", "NAME" ) TABLESPACE PSAPBW1 STORAGE (INITIAL 44981 NEXT 0000000040K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
    (SQL error 1452)
    error message returned by DbSl:
    ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    (DB) INFO: disconnected from DB
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    C:\usr\sap\BW1\SYS\exe\run/R3load.exe: END OF LOG: 20071018195315
    I'm getting this error "duplicate keys found". I'm finished installing the central instance and during the database instance, i got this error. I'm installing BW 3.5 on x64 windows server 2003 platform. I'm using NU kernel 6.40.
    Thanks for your suggestions on how to resolve this error.
    Reward points guaranteed.

    Issue solved by deleting central and database instance and started a new build. it finished without an error.
    Thank you.

  • W_PARTY_D_U1 = ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found.

    Hi,
    We are implementing OBIA 11.1.1.7.1 which comes with ODI for Fianance and Procurement analytics.When we do full load from EBS the load plan gets failed and it throws the below error
    Caused By: java.sql.SQLException: ORA-20000: Error creating Index/Constraint : W_PARTY_D_U1 => ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found.
    Please help us to resolve the same.
    Thanks
    Rama

    This might need Patch:10402735
    if helps mark

  • How to resolve Error "Adobe Acrobat (AcroExch.App rc=-2147221005) could not be loaded"

    How to resolve Error  "Adobe Acrobat (AcroExch.App rc=-2147221005) could not be loaded"

    What is your operating system?  Reader version?
    You get this error when doing what?

  • Do any of you guys know how to fix the: itunes cannot contact iphone software bc its not connected to internet

    do any of you guys know how to fix the: itunes cannot contact iphone software bc its not connected to internet

    Did you already try these suggestions?
    iOS: Troubleshooting Wi-Fi networks and connections

  • IPod cannot be synced. Required file not found?

    I havent had any trouble syncing my ipod until last week when i purchased a song. When i dragged the song to a playlist on my ipod, it appeared grey in my playlist (because it was still loading) and then disappeared. I repeated this until i gave up and I reported this as an issue to itunes. When i tried again it worked and i thought maybe the problem had fixed itself, but i tried to add a CD to my ipod a few days ago and it only synced half of the songs. Now when i try to sync the leftover songs an error box pops up saying "The iPod (name of ipod) cannot be synced. Required file not found."
    Some songs will sync perfectly normal, some load but disappear, some eventually just sync, and some won't sync at all. Has anyone had this problem/ can anyone help SOLVE it? please and thank you!!!

    Try this:
    Let your iPod charge up.
    Attempt to sync a large play list.
    When the iPod shuts down and you get the error message, quickly click through the dialog boxes on iTunes so when the iPod comes back up iTunes will attempt to sync again.
    When the sync starts again after the iPod reboot, click the little X in the bar that shows how many tracks have been loaded. This will stop the sync and you'll be able to eject your iPod.
    After it's been ejected, unplug the connector from the iPod and see what happens to the battery indicator. Mine goes down to almost gone and red - then after a few minutes it comes up to about 2/3 strength - but it should be full after being fully charged and just syncing a few hundred tracks.

  • ORA-20100: Error occurred while processing: Function 'test' not found.

    this program follow:
    declare
    p xmlparser.Parser;
    xmlbuf varchar2(512);
    xmlpat varchar2(512);
    xmldoc xmldom.DOMDocument;
    xmldocnode xmldom.domnode;
    n xmldom.domnode;
    begin
    xmlbuf:='<emps><emp>odp</emp></emps>';
    xmlpat := 'emps/emp/test()';
    p:=xmlparser.newParser;
    xmlparser.parseBuffer(p,xmlbuf);
    xmldoc:=xmlparser.getDocument(p);
    xmldocnode :=xmldom.makeNode(xmldoc);
    n:=xslprocessor.selectSingleNode(xmldocnode,xmlpat);
    --dbms_output.put_line('value of first selected node is:ok');
    exception
    when others then
    raise;
    end testxml;
    message of error:
    ORA-20100: Error occurred while processing: Function 'test' not found.
    ORA-06512: at line 20.
    please quick reponse.

    Steve,
    Yes it helps. I was able to finally figure this much out, however, in order to get the quotes to get handled right, I had to declare the xsl inline and I had to change (there quite a few, this just being an example) the following line from
    <xsl:when test="normalize-space(string(sub_container_settings/initial_investment)) = ''">10000</xsl:when>
    to
    <xsl:when test="normalize-space(string(sub_container_settings/initial_investment)) = ''''">10000</xsl:when>
    This works, but I would prefer to store the xsl in a CLOB. Neither of these work when I get the document from the clob and call the xmldom.parseClob procedure. The parser fails with an error that the document is not valid.
    Do you have any idea on how to handle the single quotes in this circumstance.

  • Cannot inherit backups as sudo tmutil not found in terminal

    I get a "sudo: tmutil: command not found" message on terminal when I am trying to inherit backups as per the fantastic instructions on the website by pondini. What does it mean and how can I correct it?
    My old backups on time machine are not highlighted on time machine so cannot restore them. This is either because I have restored the OS or repaired the external HD used for backups.

    Lets' see....The thread is titled "Cannot inherit backups as sudo tmutil not found in terminal".
    The OP just replied "Any idea what would be equivalent for 10.6.8 to inherit backups? Or is it even possible to do so for 10.6.8?"
    The question was asked in the post right before mone. I should have highlighted that, I guess. Sorry.
    To answer your second comment, I DID "go to the website" and looked for information. Including finding this thread.
    DId not find an answer.
    For anyone out there looking for an actual answer beyond "go find it yourself", the fact is that you CANNOT reconnect a backup in SL. THIS asnwered my question and I hope it helps others looking for the same.

Maybe you are looking for