Error ORA-29874 with XMLIndex

So, I am creating a XMLIndex in Oracle 11.2.0.3.0 by following the instructions here:

http://docs.Oracle.com/CD/E11882_01/AppDev.112/e16659/xdb_indexing.htm#BCGJCEAF

I have a table defined as follows:
CREATE TABLE book_master OF XMLTYPE XMLTYPE STORE AS SECUREFILE BINARY XML;
I ran the following to try to create a structured index:
CREATE INDEX my_xmlindex_ix ON book_master (OBJECT_VALUE) INDEXTYPE IS XDB.XMLIndex PARAMETERS ('PATH TABLE path_tab');

BEGIN
   DBMS_XMLINDEX.registerParameter(
      'myparam',
      'ADD_GROUP GROUP gdm_record
         XMLTable gdm_idx_tab 
         XmlNamespaces(''http://www.mrbook.com/BookFormat/PropertyLicHdr'' AS "plh",
                  ''http://www.mrbrook.com/InventoryData'' AS "invtdata", 
                  ''http://www.mrbook.com/BookFormat/Identity'' AS "idty",
                  ''http://www.mrbook.com/BookFormat/LiteraryCloneReferences'' AS "lclone",
                      ''http://www.mrbook.com/TradeInfo'' AS "trd",
                  ''http://www.mrbook.com/'' AS "book"),
         ''/invtdata:inventory''
           COLUMNS
                book_id    RAW(16)     PATH ''@BOOK_ID'',
                title_txt  VARCHAR(64) PATH ''plh:LIC/plh:TITLE'',
                subj_txt   VARCHAR(64) PATH ''plh:LIC/plh:SUBJ'',
                
                target_mkt NUMBER(13,0) PATH ''plh:LIC/plh:MKT_NBR'',
                
                catg NUMBER(7,0) PATH ''idty:BOOK_INFO/idty:CATG'',
                lang_code NUMBER(7,0) PATH ''idty:BOOK_INFO/idty:lang_code'',
                out_of_stock_reas NUMBER(7,0) PATH ''/idty:BOOK_INFO/idty:OUT_OF_STOCK_REAS'',
                
                sucsr_title VARCHAR2(64) PATH ''idty:BOOK_INFO/idty:SUCSR_TITLE'',
                sucsr_subj_txt VARHCAR2(64) PATH ''idty:BOOK_INFO/idty:SUCSR_SUBJ_TXT'',
                
                orig_copy_ref VARCHAR2(64) PATH ''lclone:ORIG_COPY_REF/lclone:REF[child::lclone:REF_TYP_CD="160"]/lclone:TITLE'',
                orig_subj_txt VARCHAR2(64) PATH ''lclone:ORIG_COPY_REF/lclone:REF[child::lclone:REF_TYP_CD="160"]/lclone:SUBJ_TXT'',
                
                last_upd_dt TIMESTAMP PATH ''node()[local-name()="LAST_UPD_DT"]'',
                
                catg_ref_code  NUMBER(7) PATH ''idty:BOOK_INFO/idty:BOOK_ENTR[child::idty:BOOK_REF=1]/idty:CATG_REF_CD'',
                catg_code VARCHAR2(48) PATH ''//idty:BOOK_INFO/idty:BOOK_ENTR[child::idty:BOOK_REF=1]/idty:CATG_CODE'',
                
                book_trade_info  XMLType   PATH ''trd:book_trade_info'' VIRTUAL
                
            XMLTable trd_book_ix 
         XmlNamespaces(''http://www.mrbook.com/BookFormat/PropertyLicHdr'' AS "plh",
                  ''http://www.mrbrook.com/InventoryData'' AS "invtdata", 
                  ''http://www.mrbook.com/BookFormat/Identity'' AS "idty",
                  ''http://www.mrbook.com/BookFormat/LiteraryCloneReferences'' AS "lclone",
                      ''http://www.mrbook.com/TradeInfo'' AS "trd",
                  ''http://www.mrbook.com/'' AS "book"),
               ''/trd:TRADE_ENTR'' PASSING book_trade_info
            COLUMNS
                trd_yrmoday  VARCHAR2(6) PATH ''@TRD_DT_YRMODAY''
        ');
END;

ALTER INDEX book_xmlindex_ix PARAMETERS('PARAM myparam3');
When I run the present, I have the following error:
anonymous block completed
Error starting at line 69 in command:
ALTER INDEX my_xmlindex_ix PARAMETERS('PARAM myparam')
Error report:
SQL Error: ORA-29874: warning in the execution of ODCIINDEXALTER routine
ORA-29960: line 1, ORA-44749: Missing PATH for the COLUMN.
29874. 00000 -  "warning in the execution of ODCIINDEXALTER routine"
*Cause:    A waring was returned from the ODCIIndexAlter routine.
*Action:   Check to see if the routine has been coded correctly
           Check the user defined warning log tables for greater details.
I checked three times and I PATH statements in the XMLTable command. I also tried to search the forums for "Path missing XMLIndex column", but I don't see anything. Does anyone have an idea how to fix this?

Thank you...

Edited by: KnightOfBlueArmor to add the definition of the table on March 26, 2013 14:09

See the typo on the type of data?

sucsr_subj_txt VARHCAR2(64) PATH ''idty:BOOK_INFO/idty:SUCSR_SUBJ_TXT'',

You will have after the first error correction.

Then, you will hit it:

ORA-19276: XPST0005 - XPath step specifies an invalid element/attribute name: (trd:TRADE_ENTR trd='http://www.mrbook.com/TradeInfo')

That one is because the element root spent the 2nd XMLTable is 'trd:book_trade_info', but you specify "/ trd:TRADE_ENTR" in the main XQuery, where the static error found.
Specify the correct XQuery from the root node, for example

''/trd:book_trade_info/trd:TRADE_ENTR'' PASSING book_trade_info

or what is the true XPath.

Then it should be OK and the parameter added correctly.

No doubt you will become a few more errors during execution, some of them because of inconsistencies in path expressions, for example

idty:BOOK_INFO/idty:lang_code
//idty:BOOK_INFO/idty:BOOK_ENTR[child::idty:BOOK_REF=1]/idty:CATG_CODE
/idty:BOOK_INFO/idty:OUT_OF_STOCK_REAS

I let you discover them (if any) ;)

Published by: odie_63 on March 26, 2013 23:09

Tags: Database

Similar Questions

  • Get the error ORA-12518 with DG4ODBC to link with SQL Server

    Hi all

    We have recently updated a test area to 11g 2 on a windows 64-bit platform and now when you install our links database with our sql servers that we receive an error "ORA-12518'.»

    Listener.ora


    LISTENERPCIS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WILTS-ORCL4)(PORT = 1522))
    )

    SID_LIST_LISTENERPCIS =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = dg4odbc)
    (SID_NAME = PCIS)
    (ORACLE_HOME = c:\oracle\product\11.2.0\db_1)
    )
    )

    tnsnames.ora


    SIPC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WILTS-ORCL4)(PORT = 1522))
    )
    (CONNECT_DATA =
    (SID = PCIS)
    (HS = OK)
    )
    )

    All help appericated

    See you soon
    David

    Your Oracle_Home in the Listenerpcis of the Oracle Listener setting does not match the House reported in the status of the listener:

    In config you have published, you must:

    SID_LIST_LISTENERPCIS =
    (SID_LIST =
    (SID_DESC =
    (PROGRAM = DG4ODBC)
    (SID_NAME = PCIS)
    (ORACLE_HOME = c:\oracle\product\11.2.0\db_1)
    )
    )

    but the listener status:
    C:\ORACLE\PRODUCT\11.2.0\DBhome_1

    Please correct the Oracle_Home adjustment in the listener.ora file - and then stop and restart the listener.

  • error ORA-03113 with XMLTABLE inside the subquery or view

    I get ORA-03113 error if I use a XMLTABLE result within one subquery of another query (if XMLTABLE inline or view). Code below to reproduce that - simplified and now rather meaningless - but produces the same error. Someone at - he seen this error re. XMLTABLE or know bugs in metalink on that? I couldn't find anything. I'll have to use deprecated table (xmlsequence) instead, which does not receive this error.


    -TABLE DROP TEST
    CREATE TABLE TEST (ID number (10), CUST_REF varchar2 (50 char), XMLDATA XMLTYPE);

    INSERT INTO TEST (ID, CUST_REF, XMLDATA) VALUES (1, 'XYZ',
    XMLTYPE ("<?") XML version = "1.0" encoding ="utf-16"? >
    < TESTXML
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
    xmlns = "urn: ABC - 123:TESTXML" >
    < collection >
    < TRANSACTION_COLLECTION >
    < TRANSACTION >
    < RECORD_ID > 1 < / RECORD_ID >
    < TRANSACTION_ID > 7791786 < / TRANSACTION_ID >
    < AMOUNT > 335 < / AMOUNT >
    < TYPE > I < / TYPE >
    DR < DC > < /DC >
    < / TRANSACTION >
    < / TRANSACTION_COLLECTION >
    < / collections >
    ((< / TESTXML > '));

    COMMIT;

    CREATE VIEW TEST_XMLVIEW
    AS
    SELECT
    ID,
    CUST_REF,
    xmltbl. RECORD_ID,
    xmltbl. TRANSACTION_ID,
    xmltbl. AMOUNT,
    xmltbl. TYPE,
    xmltbl. DC
    OF THE TEST,
    XMLTable (XMLNamespaces (DEFAULT "urn: ABC - 123:TESTXML'"),)
    "/ TESTXML/collections/TRANSACTION_COLLECTION/TRANSACTION" TEST PASSING. XMLDATA
    COLUMNS
    "RECORD_ID" number (10) path "RECORD_ID."
    "TRANSACTION_ID" VARCHAR (200 CHAR) PATH "TRANSACTION_ID"
    "DC' VARCHAR (200 CHAR) PATH"DC. "
    "TYPE' VARCHAR (200 CHAR) PATH"TYPE. "
    ('AMOUNT' NUMBER (38.8) PATH 'QUANTITY')
    AS xmltbl;


    WITH SUM_AMOUNTS (ID, CUST_REF, SUM_1, SUM_2, SUM_3)
    AS
    (SELECT ID, CUST_REF, FLAT AS FLAT AS SUM_2, FLAT + FLAT AS SUM_3, SUM_1)
    OF TEST_XMLVIEW
    GROUP BY ID, CUST_REF)
    Select
    ID,
    CUST_REF,
    SUM_1,
    SUM_2,
    SUM_3
    of SUM_AMOUNTS;


    Version information:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE Production 11.2.0.2.0
    AMT for 64-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Someone at - he seen this error re. XMLTABLE or know bugs in metalink on that? I couldn't find anything.

    Really?

    Go to the directory path and look for the relevant trace or incident file.
    On my system, I can see something like this:

    ORA-07445: exception encountered: core dump [evaopn3()+656] [ACCESS_VIOLATION] [ADDR:0x0] [PC:0x234A5B6] [UNABLE_TO_READ] []
    

    Copy / paste this line into the ORA-00600/ORA-07445 on My Oracle Support search tool and search for your version.
    Read this article:

    * ORA-7445 (evaopn3) [860969.1 ID] *.

    and at the bottom of the page, among the associated bugs known, this one:

    Bug 12724375 : ORA-7445 [evaopn3] XQuery with GROUP BY *.

  • AutoConfig error - jtfictx.sh (INSTE8_PRF 1) ORA-29874: warning in the execution of the routine ODCIINDEXALTER

    Gurus,

    EBS: R12.1.2 (Linux OS)

    Database: 11.2.0.3 (HP UX Itanium operating system)

    I am getting error in autoconfig with jtfictx.sh.  I am cloning PROD to QA. Usually, I use RMAN duplicate to clone the database and then the System Application files are copied. I did this method repeatedly (for example 25 times).

    This iteration after the recovery of the database, I have run the autoconfig RDBMS that completed successfully. So I ran the autoconfig on the simultaneous server manager first and received the error below. There is no change to my usual No.

    The execution of script in InstantiateFile:

    /ebs02/Oracle/inst/apps/SID_servername/admin/install/jtfictx.sh

    script gave:

    ****************************************************

    jtfictx.sh started 8 Sun Sep 01:04:11 CDT 2013

    SQL * more: version 10.1.0.5.0 - Production on Sun Sep 8 01:04:11 2013

    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    Enter the value 1: enter the value 2: enter the value 3: connected.

    DECLARE

    *

    ERROR on line 1:

    ORA-29874: caution in the performance of routine ODCIINDEXALTER

    ORA-29960: line 1,

    DRG-10595: ALTER INDEX JTF_AMV_ITEMS_URL_CTX failed

    DRG-11422: Linguistics initialization failed

    DRG-11446: provided the knowledge base file

    /U01/Oracle/orahome/11.2.0/ctx/data/enlx/droldUS.dat not installed

    ORA-06512: at "SYS." DBMS_SQL", line 1199

    ORA-06512: at line 96

    Disconnected from the database to Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    jtfictx.sh out with status 1

    ERRORCODE = 1 ERRORCODE_END

    .end std out.

    .end err out.

    I usually save the autoconfig / context file before the refreshment of the EBS files from PROD. The previous was refreshed 2 months ago and he succeeded. There is no change on the ORACLE_HOME such database shown in the error.

    I see that someone asked a similar error in the forums and Hussein has recommended some Metalink Note. I have mentioned that but so far without success. Please let me know if anyone faced similar problem and how to solve?

    Notes relates:

    'Jtfictx.sh' failed during the automatic configuration on the Application tier, ORA-29874, DRG-10595 (Doc ID 1271186.1()

    Autoconfig failed on Apps Tier "jtfictx.sh INSTE8_PRF". Manually running "jtfictx.sh" down "DRG-10758: the index owner does not have the privilege" (Doc ID 1357760.1()

    Several Scripts failing with A ORA-29855 running ODCIINDEXCREATE Routine during 12.1.1 update (u6678700.drv) (Doc ID 1286033.1()

    11i: Autoconfig fails on the Application tier by running jtfictx.sh (Doc ID 396174.1()

    Thank you

    Josiane Vaidiyan

    The culprit for the number is the CTXSTS. DEFAULT_LEXER. YES attribute INDEX_THEMES was made.

    Solution:

    (1) connect to the ctxsys database and run exec ctx_ddl.set_attribute ('DEFAULT_LEXER', 'INDEX_THEMES', 'no');

    (2) now remove and re-create the index as follows:

    $ cd $JTF_TOP/115/patch/sql /.

    $ sqlplus apps/apps @jtfiimt.sql JTF JTF NULL NULL

    Note: The 'jtfiaibu.sql' script is used to remove and recreate the "JTF_AMV_ITEMS_URL_CTX Intermedia text index."

    $ cd $JTF_TOP/115/patch/sql /.
    $ sqlplus apps/apps @jtfiaibu.sql JTF JTF APPS

    Reference to part 2: 'Jtfictx.sh' failed during Autoconfig on Application layer, ORA-29874, DRG-10595 (Doc ID 1271186.1)

    Thank you

    Josiane Vaidiyan

  • Impdp fails with error ORA-39779

    database version: 11.2.0.4.0

    compatible parameter: 11.2.0.0.0

    Sparc 64-bit OS

    Hello guys I am confronted with the error "ORA-39779: type '< schema2 >'". "< type_name >' not found or conversion to the latest version is not possible while import"while trying to import into a target database. "

    Where to I checked all told them to use the transform parameter = oid:n, I've used this setting and I still get the error.

    in a thread, said, maybe it's because users are already created in the database until the import began.

    Someone faced this problem in the past, please help me.

    Thank you

    expdp settings file

    Directory = < directory_name >

    dumpfile = < dumpfile_name > _%U.dmp

    logfile = < logfile_name > .log

    parallel = 8

    compression = all

    schemas = schema1, schema2, schema3

    exclude = grant

    Impdp settings file

    Directory =< < directory_name > >

    dumpfile = <dumpfile_name > _%U.dmp

    logfile = <logfile_name> .log

    parallel = 8

    schemas =schema1, schema2, schema3

    remap_schema =schema1:schema1, schema2:schema2, schema3:schema3

    transform = oid:n

    REMAP_TABLESPACE = < tablespace_1 >: < tablespace_2 >

    Hello guys, this is supported

    Action taken:

    When the schema has been imported, the DDL of the tables are already created.

    I come from a content import = data_only export of the source database for only tables that have failed, then imported again.

  • Error ORA - 00604 DB creation with DBCA

    Hello

    I want to create an instance of database with MS Windows 8.1 64bits.

    So I installed the Standard Edition 12.1.0.1.16 database (12.1.0.1.0 and Patch16). Now, when I create an instance I get the error ORA-00604 in the script cloneDBCreation.sql to the command ' modify AL32UTF8 database character set INTERNAL_CONVERT '.»

    Has anyone an idea what is the problem?

    Thanks in advance.

    Kind regards

    Martin

    12.1.0.2 is only available under EA right now - see MOS Doc 1905806.1

  • Execute Immediate with DOF and TABLE() - error ORA-22905

    Hello

    I have a problem trying to use a user defined the Type of the Table in a statement Execute Immediate containing a CREATE TABLE statement.

    Is there no work around for this problem?

    The actual code for the SELECT * OF TABLE(:T) is dynamic and slow. That's why I try to avoid to create/fill the table in two steps (as does with MY_TABLE1). Also, in this case, I can't use SELECT * but must specify all the columns (amount variable and over 100 columns).

    CREATE TYPE MY_TABLE_TYPE AS TABLE OF VARCHAR2(30);
    /
    DECLARE
        MT MY_TABLE_TYPE;
    BEGIN
        SELECT * BULK COLLECT INTO MT FROM DUAL;
        -- Two steps
        EXECUTE IMMEDIATE 'CREATE TABLE MY_TABLE1 (A VARCHAR2(30))';
        EXECUTE IMMEDIATE 'INSERT INTO  MY_TABLE1    SELECT * FROM TABLE(:T)' USING MT; -- OK
        -- One step
        EXECUTE IMMEDIATE 'CREATE TABLE MY_TABLE2 AS SELECT * FROM TABLE(:T)' USING MT; -- ERROR ORA-22905   
    END;
    /
    

    byee

    Andrea

    In my view, the error message is incorrect or the less misleading. Bind variables cannot be used in DDL:

    SQL > declare
    2 number of v_var: = 99;
    3. start
    4 run immediately "' create the my_table2 in select table: double T" using v_var; "
    5 end;
    6.
    declare
    *
    ERROR on line 1:
    ORA-01027: bind variable not allowed for data definition operations
    ORA-06512: at line 4 level

    SQL >

    What you could do is use the package variable:

    SQL > CREATE OR REPLACE
    2 PACKAGE PKG1
    3 EAST
    4 MT MY_TABLE_TYPE;
    5 FUNCTION GET_MT
    6 RETURN MY_TABLE_TYPE;
    7 END;
    8.

    Package created.

    SQL > CREATE OR REPLACE
    PACKAGE 2 BODY PKG1
    3 EAST
    4 GET_MT FUNCTION
    5 RETURN MY_TABLE_TYPE
    6 EAST
    7. START
    8 RETURN MT;
    9 END;
    10 END;
    11.

    Package body created.

    SQL > DROP TABLE MY_TABLE1 PURGE
    2.

    Deleted table.

    SQL > DROP TABLE MY_TABLE2 PURGE
    2.
    DROP TABLE MY_TABLE2 PURGE
    *
    ERROR on line 1:
    ORA-00942: table or view does not exist

    SQL > START
    2. SELECT * BULK COLLECT INTO PKG1.MT FROM DUAL;
    3 - two steps
    4 RUN IMMEDIATELY "CREATE TABLE MY_TABLE1 (A VARCHAR2 (30))';"
    5 IMMEDIATELY EXECUTE "INSERT INTO MY_TABLE1 SELECT * FROM TABLE (PKG1." GET_MT)';
    6 - one step
    7 IMMEDIATE EXECUTION "CREATE TABLE MY_TABLE2 AS SELECT * FROM TABLE (PKG1." GET_MT)';
    8 END;
    9.

    PL/SQL procedure successfully completed.

    SQL > select * from my_table1;

    A
    ------------------------------
    X

    SQL > select * from my_table2;

    COLUMN_VALUE
    ------------------------------
    X

    SQL >

    SY.

  • "Is:java.sql.SQLException error: ORA-01555: snapshot too old: rollback segment number with the name ' ' too small '.

    Hello

    We conduct apply CM which is a failure with the Error: "declared:java.sql.SQLException: ORA-01555: snapshot too old: rollback segment number with the name '' too small'."

    Its in our unique the production instance. I checked on the return parameter. Here are the details.

    SQL > show Cancel parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    _in_memory_undo Boolean TRUE

    _undo_debug_usage integer 2

    UNDO_MANAGEMENT string AUTO

    UNDO_RETENTION integer 40000

    undo_tablespace string APPS_UNDOTS1

    SQL > select max (maxquerylen) of v$ undostat;

    MAX (MAXQUERYLEN)

    ----------------

    637116

    Please suggest what needs to be done to go further.


    Kind regards

    Prabhat.

    Post edited by: 942633

    Hello

    ORA-02067: the rollback transaction or registration required

    As mentioned, you will need to look at the design of the code:

    Error: ORA 2067
    Text: rollback transaction or registration required
    -------------------------------------------------------------------------------
    Cause: A failure (typically a trigger or a stored procedure with several updates remotely) has occurred, such as the execution of all or nothing from a previous call to Oracle cannot be guaranteed.
    Action: return to a previous point of backup or restore the transaction and resubmit.

    ------

    ORA-01555 caused by the following SQL statement (SQL ID: 5y0q4u8r2hdy9, query term s = 637608, SCN: 0x0bcc.4ed82762):

    ------

    ACTUAL SIZE [MB] UNDO UNDO RETENTION [s] NECESSARY UNDO SIZE [MB]

    ------------------------                   ------------------------------------------------------------------------- ------------------------

    304849 40000 267232.292

    To better help you, please let us know:

    -What is the function of this program.

    -Did you recently parameter changes until you have this error.

    Please ensure that the validation controls are implemented correctly, the DBA team and development will work hand in hand.

    Thank you &

    Best regards

  • Listener to refuse the connection with the following error ORA-12505

    Hi everyone, Am really new to the oracle database, I work on my school project work and am stuck in the middle of this error (listener refused the connection with the following error ORA-12505).

    I started the time serveral listener and it is said that 'no service supported by the LISTENER', I can't access the database via sqldeveloper including trows on the same error (listener refused the connection with the following error ORA-12505, TNS:Listener currently know of SID given in connect descriptor.) In addition, my em show red arrow down to the listener. Here are my coordinates hard & software.


    Oracle 11.1.0
    OS: Red Hat Enterprise Linux 4 (running the operating system through Vmware workstation)
    TNSNAME. ORA

    LISTENER2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    ((ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    )
    )

    AUDITEUR1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))




    Listner, ora




    LISTNER_ORCL
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))
    )

    IMT_ADMI =
    (= DESRIPTION
    (PORT = 1522))
    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = imt_admin
    )
    )

    LISTENER_IMTADMIN =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)

    I read on some forums that I need to edit somethings that am not sure cos I don't want to mess with the database, I need help on what to.
    Thanks for the help in advance.

    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    Try to edit listener.ora by:
    (ADDRESS = (PROTOCOL = TCP) (HOST = HOST_NAME_OF_YOUR_DATABASE_MACHINE/OR TRY USING THE IP ADDRESS OF THE DATABASE SERVER MACHINE)(PORT=1521))
    Just try to edit HOST = value line above. You must use HOST_NAME_OF_YOUR_DATABASE_MACHINE or IP OF the DATABASE SERVER MACHINE.

    Host name can be obtained by the hostname command on the database server.

    With localhost, no one can connect to the database remotely.

    Concerning
    Girish Sharma

    Published by: Girish Sharma January 11, 2013 18:26

    then after the output of commands below:
    lsnrctl stop
    lsnrctl start
    Wait 60 seconds...
    ORACLE_SID =
    sqlplus scott/tiger@tnsname

    Show us what is happening now.

  • recover standby db with the error: ORA-01157

    I added two data files to the main database, and somehow the newspaper from the day before apply kept fail with the following error:
    SQL > SQL > ORA-00283: cool cancelled due to errors
    ORA-01111: name for the data file 613 is unknown - rename it to the correct file
    ORA-01110: data file 613: "/ u0/oracle/orahome/dbs/UNNAMED00613.
    ORA-01157: cannot identify/lock data file 613 - see DBWR trace file
    ORA-01111: name for the data file 613 is unknown - rename it to the correct file
    ORA-01110: data file 613: ' / u01/oracle/orahome/dbs/UNNAMED00613.


    Then I disabled standby_file_management and try now with the error:
    ALTER database create datafile ' / u01/oracle/orahome/dbs/UNNAMED00613 "as"+ PRD_DAT/prd/datafile/indx_02.891.793937499 ".
    *
    ERROR on line 1:
    ORA-01276: cannot add files
    + PRD_DAT/prd/datafile/indx_02.891.793937499.  File has a file name of Oracle managed files.

    How can I solve this problem?

    ALTER database create datafile ' / u01/oracle/orahome/dbs/UNNAMED00613 "as"+ PRD_DAT/prd/datafile/indx_02.891.793937499 ".
    *
    ERROR on line 1:
    ORA-01276: cannot add files
    + PRD_DAT/prd/datafile/indx_02.891.793937499. File has a file name of Oracle managed files.

    It's an OMF. Impossible to assign names to it. Please try as below:

    ALTER database create datafile ' / u01/oracle/orahome/dbs/UNNAMED00613 ' as new;

    Refer to this http://shivanandarao.wordpress.com/2012/04/02/managed-recovery-process-mrp-terminates-on-standby-database-upon-adding-datafile-on-the-primary-database/

  • How to find tables partitioned, whose loading may fail with error ORA-14400

    Hello

    We have several partitioned tables. Sometimes when partitions are not created for this month, we get this error

    ORA-14400 does map to any partition inserted partition key

    May I know if there are any script or sql that I can use to discover arrays that may fail to load if DBA creates partitions in the next 2 weeks?

    Thank you
    Sarayu K.S.

    Of course, you can:

    1. look in DBA_TAB_PARTITIONS by nom_partition if you are using a special naming convention, where owner = and table_name = and nom_partition =

    2. without entering the name of the partition, you could use dba_tab_partitions and instead check that there is a partition to your table with a high_value you plan to use. Know that the high_value is a long data type, then you will probably need to convert it into a varchar2.

    3. before your big load, you can also insert a row into the table of destination with the new partition key that will be used and intercept errors with an exception handler. Roll it back if he succeeds.

    4. a number of partitions may be created in advance to avoid the constant surveillance of the new partitions.

    5 or you could also consider switching to interval partitioning if you're on 11 g and get out of the business of having to manually create partitions.

  • Error ORA-20987 creating users with apex_util.create_user.

    Hello. I need to copy users from one summit to the other.

    @apex4 is a DBlink apex 4 initial installation, I need to create users on a new server apex4, where I am loged and run this script:


    declare
    users of cursor is
    Select *.
    of apex_040100.wwv_flow_fnd_user@apex4
    where user_name <>'ADMIN ';
    Start
    for you in a loop users
    (. Create_user) APEX_UTIL
    p_user_id = > u.user_id,.
    p_user_name = > u.user_name,
    p_first_name = > u.first_name,
    p_last_name = > u.last_name,
    p_description = > u.description,
    p_email_address = > u.email_address,
    p_web_password = > '1234'.
    p_web_password_format = > 'CLEAR_TEXT');
    end loop;
    end;

    I tried to connect with apex_public_user and sys as sysadmin, but I still get the same error:

    ORA-20987: APEX - unauthorized access (package for the undefined security group variable). -Contact your administrator of the application.
    ORA-06512: en "APEX_040100.WWV_FLOW_ERROR", line 704
    ORA-06512: en "APEX_040100.WWV_FLOW_ERROR", line 1008
    ORA-06512: en "APEX_040100.WWV_FLOW_FND_USER_API", line 24
    ORA-06512: en "APEX_040100.WWV_FLOW_FND_USER_API", line 617
    ORA-06512: en "APEX_040100.HTMLDB_UTIL", linea 1395
    ORA-06512: in linea 8

    Thanks in advance and sorry for my English.

    Published by: Andres Vilallave on 2012-ene-31 12:48

    Published by: Andres Vilallave on 31-ene-2012 12:49

    Hello

    When you run this code?
    If you run this code in SQL client like SQL * Plus or SQL Developer this post might help
    Re: installation of the runtime: how to create users?

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

  • ORA-39083: Object type TRIGGER could not create with error: ORA-04072:

    OS: windows Server 2003 STD 64 Bit
    DB version: 11g Enterprise Edition Release 11.2.0.1.0 - 64 bit

    I use impdp to a certain pattern and you get the following error:

    ORA-39083: Type WHAT TRIGGER could not create object error:
    ORA-04072: invalid trigger type
    Because sql is:
    DBMS_DDL BEGIN. SET_TRIGGER_FIRING_PROPERTY ('"AGILETEST" "," "SWAPOPTIMIZER" ', ALF)
    SE); END;

    Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
    Object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMA of treatment
    P/INDEX_STATISTICS
    Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX

    ----------
    I check in Metalink and found it to be a bug with no construction nearby.
    Bug 9858539 : DATA PUMP IMPORT FAILED TO TRIGGER LOGON ORA-04072: INVALID TYPE of TRIGGER

    ---------
    Any ideas?

    Well Yes, the patch is available for this bug 9858539 for 11.2.0.1 and 11.2.0.3.

    Salman

  • EMCA fails with the error "ORA-01034: ORACLE is not available.

    Hello
    10g R2 on AIX I have the following error:
    emca -config dbcontrol db -repos create
    ......................................................
    .....................................................
    Password for DBSNMP user:
    Invalid username/password. [ORA-01034: ORACLE not available]
    And that's because all oracle processes are runing with:
    ORACLE_HOME=/U00/Oracle/product/10.2.0/Db_1/

    EMCA fails with the error "ORA-01034: ORACLE is not available" and "Name of user and password invalid." For DBSNMP user [ID 550484.1]
    It is said:
    +<moderator edit - removed MOS content>+
    Can I do the reverse and in the script of the emca, add "/" at the end of ORACLE_HOME=/u00/oracle/product/10.2.0/db_1
    ??
    Thank you.

    Edited by moderator - content removed from MOS

    Hi user;

    First of all please do not post details here, its against to oracle interoperability metalink, ID is sufficient for us. Secondly, yes you can, first to save $ORACLE_HOME/bin/emca script like

    CP $ORACLE_HOME/bin/emca $ORACLE_HOME/bin/emca_org

    to change the file number and test

    Respect of
    HELIOS

  • DBMS_WM. BeginResolve fails with error ORA-20060

    Here is the scenario in which I am facing a problem with "DBMS_WM. BeginResolve' procedure in Oracle Workspace Manager.

    In my workflow, I have generated a huge number of conflicts in two work spaces. To resolve these conflicts, I use a Windows GUI client that provides a user interface to resolve conflicts. Internally, the client makes a loop on each table in conflict and the questions following the lines of code to resolve conflicts.


    DBMS_WM BEGIN. BeginResolve('122'); END;.

    DBMS_WM BEGIN. ResolveConflicts ('122 ',' SAMPLE.) EMP_TABLE', 'EMP_ID in ("1111")","CHILD"); END;

    DBMS_WM BEGIN. SetWoOverwriteOFF(); END;

    DBMS_WM BEGIN. GotoWorkspace('122'); END;

    BEGIN DBMS_WM.CommitResolve('122'); END;

    In a scenario of my client broke down after the threshold,
    DBMS_WM BEGIN. BeginResolve('122'); END;

    After the crash, there was a session of open conflict resolution which was left aside in Oracle DB. Next time when I opened my client to resolve conflicts, I could never call the threshold, as an open conflict resolution session already exists in this workspace and I get the error Ora - next.
    DBMS_WM BEGIN. BeginResolve('122'); END;

    Oracle.DataAccess.Client.OracleException ORA-20060: the user must call BeginResolve or WM_ADMIN_ROLE to call RollbackResolve

    To avoid this problem, what might be the best solution?

    I tried to fix this by calling "RollbackResolve", but he says that the user should have "WM_ADMIN_ROLE" assigned.
    DBMS_WM BEGIN. RollbackResolve('122'); END;

    Therefore, in such scenarios, what would be the best solution? Is it assigning the 'WM_ADMIN_ROLE' and calling DBMS_WM START. RollbackResolve('122'); END;... but with this approach, all users will have the highest privileges...

    Please suggest.

    Thanks PV.

    Hello

    You have several options:

    1 log in as the user who executed BeginResolve. Apart from users with the WM_ADMIN_ROLE, this is the only user allowed to run RollbackResolve to that specific workspace. You can find the user who executed BeginResolve using the following:

    SQL > select Workspace, all_workspaces resolve_user;

    2. create rights procedure of a DEFINER in the schema which executed BeginResolve and grant privileges to the user who is going to be qualifying run.

    3 create a separate schema and grant of WM_ADMIN_ROLE this scheme that could then be used for the execution of RollbackResolve.

    Kind regards
    Ben

Maybe you are looking for

  • How can I download firefox for ubuntu, using windows?

    I need to download for ubuntu, but using windows fierfox

  • Satellite A300 - voltage to the Mexico problem

    Currently, I use my Satellite A300 in Europe (I bought it here too), where the voltage is 230V.I go to the Mexico and I would like to take this laptop with me. However, in Mexico, they have a different voltage - AFAIK 100-127V.Is it enough to buy the

  • Skype ring

    I can't get my I phone to warn me of an incoming call.I continue to miss calls from my grandchildren

  • Timed loop versus While loop

    Most of the machine control software I design have the following structure: 1. There's a HAND that takes place inside a TIMED LOOP with synchronization of 50ms and priority of 100. His only job is to read / write data from / to DAQMx IO cards. 2. the

  • Windows update-windows vista Home premium

    get the message belowWindows cannot currently check the updates because the service is not running. You may have to restart your computer