Unpredictable problem using XMLTYPE in Oracle 11g?

We recently upgraded from Oracle 10g to Oracle 11g, which caused some of our stored procedures to start acting funny.
Our database stores BLOBs containing XML data in a table. We then asynchronously convert these BLOBs into XMLTYPE objects, and use them to perform operations in our database. This logic started failing when we moved to 11g.
Our original code looked like this:
PROCEDURE submitTpfdd(shipmentDataId IN VARCHAR2) AS
     shipmentData XMLTYPE;
  csid INTEGER;
  shipmentName VARCHAR(128);
  gk_namespaces VARCHAR(1024) := 'xmlns:a="http://my.app/1.0.0.0"';
BEGIN
  SELECT NLS_CHARSET_ID('UTF8') INTO csid FROM dual;
  SELECT XMLTYPE(tf.shipmentData, csid)
    INTO shipmentData
    FROM SHIPQ.SHIPMENT_FILE tf
    WHERE tf.shipment_id = shipmentDataId;
  shipmentName := shipmentData.extract('/a:Shipment/shipmentName/text()', gk_namespaces).getStringVal();
  ... (more logic)
END submitTpfdd;When we switched to 11g, this code started frequently failing with an "unsupported character set" error. It happens about half the time, and it's unpredictable. It will sometimes pass and sometimes fail, even if the same BLOB is being read both times. I haven't been able to reproduce the error with any of XMLTYPE's other constructors.
Has anybody encountered similar behavior with the XMLTYPE in 11g? Should I submit a tracker?

I have created a SQL program which can be run independently to reproduce the problem.
DECLARE namespaces constant VARCHAR2(1024) := 'xmlns:a="http://morton.com/"';
CURSOR cursor0(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor1(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor2(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor3(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor4(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor5(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor6(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor7(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor8(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
CURSOR cursor9(reeves XMLTYPE) IS
SELECT EXTRACT(VALUE(t), 'text()').getstringval() AS
bullock
FROM TABLE(xmlsequence(reeves.EXTRACT('/a:hopper', namespaces))) t;
xml_clob CLOB := empty_clob;
xml_blob BLOB := empty_blob;
xml_varchar VARCHAR2(4000);
xml_xmltype XMLTYPE;
warning INTEGER;
dest_offset INTEGER := 1;
src_offset INTEGER := 1;
lang_context INTEGER := 0;
char_set INTEGER := nls_charset_id('UTF8');
BEGIN
  dbms_lob.createtemporary(xml_clob, TRUE);
  dbms_lob.createtemporary(xml_blob, TRUE);
  dbms_lob.OPEN(xml_clob, dbms_lob.lob_readwrite);
  dbms_lob.OPEN(xml_blob, dbms_lob.lob_readwrite);
  xml_varchar := '<a:hopper xmlns:a="http://morton.com"/>';
  dbms_lob.writeappend(xml_clob, length(xml_varchar), xml_varchar);
  dbms_lob.converttoblob(xml_blob, xml_clob, dbms_lob.lobmaxsize, dest_offset, src_offset, char_set, lang_context, warning);
  xml_xmltype := XMLTYPE(xml_blob, char_set);
  FOR daniels IN cursor0(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor1(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor2(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor3(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor4(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor5(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor6(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor7(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor8(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
  FOR daniels IN cursor9(xml_xmltype)
  LOOP
    CONTINUE;
  END LOOP;
END;If someone else could run this program and verify that it acts unpredictably, that would be helpful. I have submitted a metalink tracker but the person who is working the tracker is not able to duplicate the same behavior.

Similar Messages

  • Can we use hints in oracle 11g version ?

    can we use hints in oracle 11g version ? is it working ??

    Why do you ask these questions? Have you looked at the SQL Reference Guide and Performance Tuning Guide for your Oracle version - both which covers using hints?
    Have you see a statement that is not supported? Or does not work?
    Or are you simply doing idle speculation and expecting forum members to spend their free time in answering a basic question where the answer is ridiculously simply to find?

  • Problem using Export in Oracle 8.1.6.

    Hi,
    I have a problem using export utility in oracle 8i.
    I got a message:
    EXP-00056: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00000: Export terminated unsuccessfully
    I tried running CATPROC.sql and CATEXP.sql but it did not correct the problem.
    Please help me.
    Thanks

    You may want to try using the error lookup tool available here, http://otn.oracle.com/pls/tahiti/tahiti.homepage?remark=tahiti You may be able to find the answer even though the error lookup tools is for 8.1.7 version. Otherwise, you can search the db discussion forums to see if this issue has been discussed already.

  • Using TimesTen with Oracle 11g

    In documentation I didn't find any information about supporting by Timesten connects to Oracle 11g. So is Timesten can be connected to Oracle 11g or not? Now I've connected it but I'm not sure in proper work of this pair.

    TimesTen 7.0.3 Cache Connect to Oracle supports Oracle 11g on Linux x86 (32-bit).
    Additional platforms will be certified in upcoming maintenance release.
    What platform are you using?
    - Susan

  • Problem running this in Oracle 11g, This was working fine in Oracle 10g

    Hi Friends,
    I used the following procedure "GIVE_ME_AN_ARRAY" in Crystal Report Version 11, using Oracle 10g and it was running fine, however when I created the following in Oracle 11g, all these objects created without any error, and when I call Procedure "GIVE_ME_AN_ARRAY" in Crystal Report 11 as well as in Microsoft Report Builder 2.0, following error occured.
    ORA-03113:- End of Communication Channel
    Please note, the said Procedure runs fine :-
    1. if I remove remaining part of UNION ALL Query in Procedure and compile.
    2. if I don't remove UNION ALL, but remove the following line.
    WHERE empno IN
    (select * from THE
    ( select cast( in_list(memp) as
    mytableType ) from dual ) a)
    Any Idea what am I missing ?
    My main task is to pass multiple strings to use 'IN' Operator in query.
    Please help me out.
    Thanks and Regards,
    Luqman
    create or replace type myTableType
    as table of varchar2 (255);
    create or replace function in_list( p_string in varchar2)
    return myTableType
    as
    l_string long default p_string || ',';
    l_data myTableType := myTableType();
    n number;
    begin
    loop
    exit when l_string is null;
    n := instr( l_string, ',' );
    l_data.extend;
    l_data(l_data.count) :=
    ltrim( rtrim( substr( l_string, 1, n-1 ) ) );
    l_string := substr( l_string, n+1 );
    end loop;
    return l_data;
    end;
    CREATE OR REPLACE PROCEDURE give_me_an_array (
    CV IN OUT sys_refcursor, memp in varchar2
    IS
    BEGIN
    OPEN CV FOR
    SELECT empno,
    ename
    FROM emp
    WHERE empno IN
    (select * from THE
    ( select cast( in_list(memp) as
    mytableType ) from dual ) a)
    UNION ALL
    SELECT empno,
    ename
    FROM emp
    WHERE empno IN
    (select * from THE
    ( select cast( in_list(memp) as
    mytableType ) from dual ) a);
    END give_me_an_array;

    ..is the "THE" operator still supported?
    I know this was the case in Oracle 8i, but later?... you can try using the "TABLE" operator instead.

  • How to use ed in oracle 11g as we do in 10g

    Hi,
    Anyone can u tell me how to use text editor in oracle 11g as
    we do in 10g.
    thanks
    srinivas

    Well, that would be because notepad doesn't exist on *nix - isn't that obvious?                                                                                                                                                                                   

  • Attempt to read XMLType from Oracle 11G

    Hi.
    I try to read XMLtype field from Oracle11G next way:
    import java.io.InputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import oracle.xdb.XMLType;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import oracle.jdbc.driver.OraclePreparedStatement;
    public class test_XMLType {
    public static DocumentBuilder loader;
    public static Transformer transformer;
    public static DocumentBuilderFactory factory,factory_o;
    public static Document d,o;
    public static NodeList nl;
    public static Element el;
    public static int regim=0;
    public static String OS_command;
    public static String result_command="";
    public static String name_element="";
    public static String SID ="orcl";
    public static String pwd ="oracle";
    public static String user="monit";
    public static String port ="1521";
    public static String connect_string ="";
    public static String host ="localhost";
    public static String connect_string1 = "jdbc:oracle:thin:";
    // public static InputSource scen = new InputSource();
    public static XMLType scen;
    // public static CLOB scen;
    public static OracleCallableStatement proc = null;
    public static String this_host ="host1";
    public static Connection conn;
    public static InputStream xmlStream;
    // public static XMLscen XmlType;
    public test_XMLType() {
    super();
    public static String GetCommand() {
    // reading XML scenary from moniroring server
    try {
    connect_string =connect_string1 + user + "/" + pwd + "@" + host + ":" + port + ":" + SID;
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    conn = DriverManager.getConnection(connect_string);
    OracleCallableStatement proc = (OracleCallableStatement)conn.prepareCall("select SCENARY from scenaries where host_name = ?");
    // OracleCallableStatement proc = (OracleCallableStatement)conn.prepareCall("select TEST from scenaries where host_name = ?");
    proc.setString(1, this_host);
    OracleResultSet rs = (OracleResultSet)proc.executeQuery();
    rs.next();
    System.out.println(rs.getOPAQUE("SCENARY").getSQLTypeName());
    scen = XMLType.createXML(rs.getOPAQUE("SCENARY"));
    // System.out.println(XMLType.createXML(rs.getOPAQUE("SCENARY")));
    // InputStream xmlStream = scen.getStream();
    // System.out.println(rs.getString("test"));
    proc.close();
    catch (Exception e) {
    e.printStackTrace();
    return "Ok";
    I got next error in JDeveloper runnig window
    E:\Middleware\jdk160_18\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\Application_test_XMLType\.adf;C:\JDeveloper\mywork\Application_test_XMLType\Client\classes;E:\app\sys\product\11.2.0\dbhome_2\oui\jlib\classes12.jar;E:\app\sys\product\11.2.0\dbhome_2\RDBMS\jlib\xdb.jar;E:\app\sys\product\11.2.0\dbhome_2\oui\jlib;E:\app\sys\product\11.2.0\dbhome_2\RDBMS\jlib -Djavax.net.ssl.trustStore=E:\Middleware\wlserver_10.3\server\lib\DemoTrust.jks client.test_XMLType
    SYS.XMLTYPE
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/binxml/BinXMLException
         at client.test_XMLType.GetCommand(test_XMLType.java:118)
         at client.test_XMLType.main(test_XMLType.java:138)
    Caused by: java.lang.ClassNotFoundException: oracle.xml.binxml.BinXMLException
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         ... 2 more
    Process exited with exit code 1.
    But using SQLDeveloper I get this field without any problems.
    Thanks in advance for reply.
    Andrii.

    Thanks for reply. A have added xmlparsev2.jar library and got next
    E:\Middleware\jdk160_18\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\Application_test_XMLType\.adf;C:\JDeveloper\mywork\Application_test_XMLType\Client\classes;E:\app\sys\product\11.2.0\dbhome_2\oui\jlib\classes12.jar;E:\app\sys\product\11.2.0\dbhome_2\RDBMS\jlib\xdb.jar;E:\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;E:\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;E:\app\sys\product\11.2.0\dbhome_2\oui\jlib;E:\app\sys\product\11.2.0\dbhome_2\RDBMS\jlib -Djavax.net.ssl.trustStore=E:\Middleware\wlserver_10.3\server\lib\DemoTrust.jks client.test_XMLType
    SYS.XMLTYPE
    Exception in thread "main" java.lang.NoSuchMethodError: oracle.jdbc.OracleConnection.physicalConnectionWithin()Loracle/jdbc/internal/OracleConnection;
         at oracle.xdb.XMLType.initConn(XMLType.java:3673)
         at oracle.xdb.XMLType.<init>(XMLType.java:1358)
         at oracle.xdb.XMLType.createXML(XMLType.java:821)
         at oracle.xdb.XMLType.createXML(XMLType.java:799)
         at client.test_XMLType.GetCommand(test_XMLType.java:118)
         at client.test_XMLType.main(test_XMLType.java:138)
    Process exited with exit code 1.

  • Register XML schema using dbms_xmlschema in Oracle 11g

    I have a xsd file located at C:\temp\test.xsd
    I need to register this schema to create a XMLType table for Object Relational XML Storage.
    How do I register the schema for relational storage?
    I do not seem to find any example on internet for registering the schema for relational storage.
    Any help would be highly appreciated.

    Thanks for help. The table is created now. But it created a CLOB table whereas I want a relational table with rows and columns. Is it because the schema was registered with SCHEMADOC as bfilename? How do I get the relational storage?
    BEGIN
       DBMS_XMLSCHEMA.registerSchema(
        SCHEMAURL=> 'TESTDEPT.XSD',
        SCHEMADOC=> bfilename('XML_DIR','TESTDEPT.XSD'),
        LOCAL=> TRUE,
        GENTYPES=> TRUE,
        GENTABLES=> FALSE,
        CSID=> nls_charset_id('AL32UTF8'));
    END;
    CREATE TABLE TESTDEPT OF XMLType
      XMLTYPE store AS OBJECT RELATIONAL
      XMLSCHEMA "TESTDEPT.XSD" ELEMENT "root";
    desc TESTDEPT;
      Name                           Null     Type                                                                                                                                                                                         
    SYS_NC_ROWINFO$                         XMLTYPE()        
    SELECT dbms_metadata.get_ddl('TABLE','TESTDEPT') from dual;
      DBMS_METADATA.GET_DDL('TABLE','TESTDEPT')                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(CLOB)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
      CREATE TABLE "DMUSER"."TESTDEPT" OF XMLTYPE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
      XMLSCHEMA "TESTDEPT.XSD" ELEMENT "root" ID 4090 PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
      TABLESPACE "USERS" 
    My database version:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production    
    PL/SQL Release 11.2.0.1.0 - Production                                          
    CORE 11.2.0.1.0 Production                                                        
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production                         
    NLSRTL Version 11.2.0.1.0 - Production

  • Can't install Data Guard using DBCA in Oracle 11g Release 2

    I have installed Oracle database 11g Release 2 successfully. I have installed Label Security using DBCA, now when I am installing Database Vault using DBCA, it gives message "ORA-01017: invalid username/password; logon denied" and exists back to DBCA.
    What step I am missing? please suggest.
    Regards and thx,

    Hi,
    I had the same issue too. I installed it on my desktop (server class option). Everything else including EM is working fine. However I got around the issue to an extent by manually running the catalog scripts for database vault. It should be located under $ORACLE_HOME/rdbms/admin. You have to run the script catmac.sql. There is a catch though. You need to go through the contents of the script and execute the other scripts manually by supplying username and passwords (yes, it sucks!!) but I don't find any help on metalink for this issue.
    Currently I am trying to create the realms but I am denied permission due to lack of "OPERATOR TARGET" privileges.
    If someone can lead me to the correct place where I can look for what is missing, it would be great.
    Thank you
    Kumar Ramalingam

  • Column Level Security Using VPD under oracle 11g

    Hi
    I am using an example from Oracle Database 10g: Advance Security -- Virtual Private Databases
    1. The Application Context -- that sets the session environment for the use is ok.
    2. The Logon Trigger that executes the above is ok. It had been tested.
    3. The Security Policy that returns a predicate after checking the output of the Application Context is ok.
    4. The security policy applied to the STOCK_TRX table is ok.
    5. Select and Insert from the database work.
    However, after dropping both the insert and select policy, I am having problem getting a select policy to work with column-level VPD. I will get the ORA-28104 -- input value for statement type is not valid and ORA-06512 at SYS.DBMS_RLS line 20. See code below
    begin
    DBMS_RLS.ADD_POLICY
    ('PRACTICE', 'STOCK_TRX', 'STOCK_TRX_SELECT_POLICY', 'PRACTICE', 'SECURITY_PACKAGE.STOCK_TRX_SELECT_SECURITY', 'PRICE');
    end;
    Note:
    PRICE is the sec_relevant_cols
    STOCK_TRX is the table
    Can you please help.
    Thx

    The syntax for row level security is not the same for columns level security. All the parameters to the DBMS_RLS.ADD_Policy() function should be preceded by the type of the parameter for:
    begin
    DBMS_RLS.ADD_POLICy(object_schema=>PRACTICE, ... sec_relevant_cols=>'PRICE);
    end;
    I did not know this before. I thought they were there in the example for explanatory reasons. I decided to answer the question for myself because I know others have the same interpretation.

  • Problems using and configuring Oracle 10gR2 database full-text search

    I am having problems trying to set up full-text indexing and search with Universal Content Management (UCM). I followed the Oracle Content Server Installation Guide for windows at [http://download-west.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/integrator/install_cserver_win_10en.pdf].
    What I did was:
    1. Modify E:\oracle\ucm\server\config\config.cfg by adding SearchIndexerEngineName=DATABASE.FULLTEXT to the end of the file.
    2. Restart the content server.
    3. Rebuild the search indexing using Repository Manager.
    However, I keep seeing the following error when I query by entering words in the "Full-Text Search" box.
    Unable to retrieve search results. Unable to retrieve search results. Unable to create result set for query 'SELECT IdcColl1.dID, dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.*
    FROM IdcColl1, DocMeta
    WHERE IdcColl1.dID=DocMeta.dID AND (((CONTAINS(dDocFullText,'test') > 0 ))) ORDER BY dInDate Desc'. ORA-20000: Oracle Text error:
    DRG-10599: column is not indexed
    Some web searches suggested the following (all of which I have tried but not resolved this problem).
    1. Publish the schema using Configuration Manager (applet) and then rebuild index
    2. Set the dDocFullText as a "zone field". This is not possible, because dDocFullText does not show up under the list of fields under "Database" or "DatabaseFullText" for the Search Engine drop down (when using Zone Fields Configuration).
    3. Reboot the server (did not work either).
    I logged onto the Oracle database and checked the IdcColl1 table. There is indeed, no index for the field, dDocFullText. There is only 1 index for the field, did. The field, dDocFullText, is a BLOB. The question is, if I am supposed to create an index manually for this field, how would I do it? A web search has not been fruitful in answering this question.
    Here are my server settings.
    For UCM:
    Operating System: Windows 2003 Enterprise
    UCM : 10gR3
    Memory: 1 GB
    Web Server: Apache 2.2.11
    For Oracle:
    Operating System: Windows 2003 Enterprise
    Oracle: 10gR2
    Memory: 1 GB
    Thanks.

    I found out what the problem was. The problem was that I had to create the role, stellent_role, as described in the installation manual. After I created this role and assigned the database user to this role, a restart of the Content Server services and collection rebuild of the index fixed the problem.
    However, I did notice one thing. I checked in 3 PDF files, and when I used Repository Manager to do a collection rebuild, I noticed that for Indexer Counters, the count for Full Text was 0 and the count for Meta Only was 3.
    Anyone have any ideas? Is there something else that I missed? From reading the installation manual, it was not clear how database full-text indexing/searching would handle PDF files.

  • Problems While Performing Switchover Oracle 11g

    Hi All,
    I am using Oracle 11.2.0.1.0 version.
    I have a Primary-Physical Standby setup(Test Environment). I am performing a switchover between them.
    I have followed the below steps:-
    ON Primary:-
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO STANDBY
    SQL> alter database commit to switchover to physical standby;
    Database altered.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 2054373376 bytes
    Fixed Size 2214856 bytes
    Variable Size 1174406200 bytes
    Database Buffers 872415232 bytes
    Redo Buffers 5337088 bytes
    Database mounted.
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO PRIMARY
    SQL> select database_role from v$database;
    DATABASE_ROLE
    PHYSICAL STANDBY
    On the other side I am trying to bring up the phyical standby database to primary:-
    First I checked the switchover_status on standby database.
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    SWITCHOVER PENDING
    SQL> alter database commit to switchover to primary;
    alter database commit to switchover to primary
    ERROR at line 1:
    ORA-16139: media recovery required
    Now I am in a situation where I have converted my primary to physical standby but physical standby-Primary is not happening..
    Please advice me on this. I have checked the archive log status for both the boxes before switchover and they were in sync....
    Your suggestions are required here.
    Regards,
    Arijit

    Hi ,
    With above approch there could be minor transaction loss & Need to rebuild stby , but you can make standby DB up as primary.
    With current senario , check if suggested sequence is generated at primary & try to register it on stby
    Also check if FAL_* is getting resolved
    It looks sync issue you should have rebooted both DB's before starting switchover as a best practise along with 2/3 switches
    Thanks,
    Ajay More
    http://moreajays.blogspot.com

  • Backup db using expdb/impdb (Oracle 11g Windows 2003)

    Hi Guys,
    I'm currently doing backups using expdb/impdb due to problems we have with BackupExec when I use RMAN. But what I want to find out is that would you call expdb/impdb a hot or a cold backup? Or should I say what happens when the user is trying to access the database while expdb/impdb is in progress?
    Thank you.

    expdp is not consider any form of backup. It's just an alternate way to export the data into dump files and import when required. You can not do any sort of recovery with expdp dumps.
    depends on number of CPU's you have and number of parallel threads you are using, users may experience spikes in the busy database.
    Regards,
    -Vijay

  • Problem regarding oracle 11g

    sir/mam
    i am facing a problem in installing the oracle 11g.. after installing the software. when i am going on command prompt then it is asking for user name and password. after then it is showing that connected to oracle. then when i am clicking on the desktop icon get started with oracle database 11g, it is opening a web page. i am not getting what to do after that..?????
    sir/mam please give me some advice.. its very urgent.
    thanks a lot..

    Hi,
    Reading Database Express Edition Getting Started Guide might help
    http://docs.oracle.com/cd/E17781_01/admin.112/e18585/toc.htm
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Problem while using XML with Oracle

    I have a problem using XML with oracle applications
    The process I am following
    1. Making a XML string.
    2. Parsing it to get a document
    3. Free the parser using xmlparser.freeparser
    4. Traversing through nodes .
    5. Freeing the document.
    The whole Process is executed in batch mode.
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")
    Can you please help me out to overcome this problem
    It's urgent
    I have
    Oracle version 8.1.7.0.0
    XML version 1.2
    OS Windows NT
    To resolve the problem I have increase shared memory size and java initialization parameters ,which seems OK
    Looking forward for your answer.

    Hello, Reena
    Your process flow seems to be correct in term of getting/freeing memory.
    Following error
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")may be caused by memory leaks in xdk or memory fragmentation(due to get/free memory cycle)
    To find out if this is an memory leak issue you could try to monitor V$SGASTAT from one session while running your batch process in another session.
    To prevent (or lower its impact) fragmentation issues try to PIN objects, and adjust java_pool_size and shared_pool_reserved_size.
    Anyway, counsult your Oracle DBA.
    Oracle version 8.1.7.0.0I think, you should apply database patch first of all. The latest one (8.1.7.4.x) could be accured from Metalink.

Maybe you are looking for

  • How to delete video podcast without using iTunes

    My Mac is G5 PPC, OSX 10.4.11, so cannot use iTunes to sync Ipad; so is there a way of deleting downloaded video podcasts from the iPad? When headphone is connected to the iPad, should the internal speaker not be automatically disconnected like on th

  • Two Undocumented Fixes I've Noticed in 7.2, and an Enhancement

    1. As described in the thread "EXS samples loading twice," double-clicking an .lso file in the Finder meant that Logic would load its EXS samples twice (not the case when selecting the file with the Open... command). This seems to be fixed in 7.2. (S

  • "poster frame" difficulties

    I open iWeb, build a page, set the poster frame, save -- go away, come back and the poster frame is gone -- all I have is a black space where it once was. What am I doing wrong and how do I correct it?

  • Create Customer Master from Vendor Master

    Is there a program that allows for batch creation of customers from vendors so that you don't have to rekey all the information? Thanks, CM

  • N70 should sync - "can't connect" HELP

    I have the latest Mac OS X and the latest iSync 2.3. It should be able to sync with Nokia N70, Apple's website confirms this. However, after I've paired the phone with my iMac, and try to add device to iSync, it finds it but says: "iSync cannot conne