11g and SDATA sections

Considering the new features of Oracle Text in 11g I have the following issue: given table T with columns A, B, C and FTS I need to do a grouping like SELECT b, COUNT(*) FROM t WHERE CONTAINS(FTS, 'X', 1)>0 GROUP BY b. Of course B is added to SDATA section using FILTER BY clause.
Direct query against the index such as "WHERE CONTAINS(FTS, 'X AND SDATA(B=1)', 1)>0" give good results since it doesn't touch the table at all. But the earlier GROUP BY forces Oracle to access the b value by rowid.
Is there a way to make Oracle use the data in SDATA only for such GROUP BY?
Thanks,
Pete

Hi Pete
You can use the following hint and give it a try
/*+ domain_index_filter(table_name index_name) */
The above will try to push down the filter by predicate
Additionally, to push down the order by predicate use the following hint in the query
/*+ domain_index_sort */
Regards

Similar Messages

  • 11g and SDATA (CTXSYS.CONTEXT)

    Considering the new features of Oracle Text in 11g I have the following issue: given table T with columns A, B, C and FTS I need to do a grouping like SELECT b, COUNT(*) FROM t WHERE CONTAINS(FTS, 'X', 1)>0 GROUP BY b. Of course B is added to SDATA section using FILTER BY clause.
    Direct query against the index such as "WHERE CONTAINS(FTS, 'X AND SDATA(B=1)', 1)>0" give good results since it doesn't touch the table at all. But the earlier GROUP BY forces Oracle to access the b value by rowid.
    Is there a way to make Oracle use the data in SDATA only for such GROUP BY?
    Thanks,
    Pete

    You mean this?
    SELECT b, COUNT(*)
    FROM t
    WHERE CONTAINS(FTS, 'X', 1)>0
    AND b=1
    GROUP BY bWhich would be the same as:
    SELECT 1 as b, COUNT(*)
    FROM t
    WHERE CONTAINS(FTS, 'X', 1)>0
    AND b=1Edited by: Toon Koppelaars on Oct 13, 2009 3:21 PM

  • SDATA Section with mutiple occurrence in one document

    Hello,
    in a user defined datastore I create the following xml document:
    <name>Huber</name><vname>Astrid</vname><pcb>1006498200</pcb><pcb>8553001101</pcb><pcb>8553002201</pcb>
    begin
    ctx_ddl.create_preference(preference_name=>'name_store',object_name=>'USER_DATASTORE');
    ctx_ddl.set_attribute (preference_name=>'name_store',attribute_name=>'procedure',attribute_value=>'names_proc');
    ctx_ddl.create_section_group ('name_sg', 'basic_section_group');
    ctx_ddl.add_field_section ('name_sg', 'name', 'name');
    ctx_ddl.add_field_section ('name_sg', 'vname', 'vname');
    ctx_ddl.add_sdata_section ('name_sg', 'pcb', 'pcb', 'varchar2');
    end;
    The field PCB is used in an SDATA section. When I query the table I get a result for
    select * from tbl0100person where contains(name1,'huber within name and astrid within vname and sdata (pcb=''8553002201'')')>0;
    but not for the other two values 8553001101 and 1006498200 of pcb. It seems that a SDATA section only uses the last occurrence of pcb in the document.
    Is there another possibility to index all three values of pcb?

    According to:
    http://docs.oracle.com/database/121/CCREF/cddlpkg.htm#CCREF2103
    "SDATA are single-occurrence only. If multiple instances of an SDATA tag are encountered in a single document, then later instances supersede the value set by earlier instances. This means that the last occurrence of an SDATA tag takes effect."
    As a workaround, you could make the pcb another field section, instead of sdata section, as shown below, adapting some code from your other thread.
    SCOTT@orcl12c> CREATE TABLE tbl0100anschrift -- an
      2    (persno    NUMBER,
      3      plz    VARCHAR2(15),
      4      ort    VARCHAR2(15),
      5      str    VARCHAR2(15))
      6  /
    Table created.
    SCOTT@orcl12c> INSERT INTO tbl0100anschrift VALUES (1, '', '', '')
      2  /
    1 row created.
    SCOTT@orcl12c> CREATE TABLE tbl0100person -- pers
      2    (persno    NUMBER,
      3      name1    VARCHAR2(15),
      4      name3    VARCHAR2(15))
      5  /
    Table created.
    SCOTT@orcl12c> INSERT INTO tbl0100person VALUES (1, 'Huber', 'Astrid')
      2  /
    1 row created.
    SCOTT@orcl12c> CREATE TABLE tbl2000pcbperson -- pp
      2    (persno    NUMBER,
      3      pcbid    NUMBER)
      4  /
    Table created.
    SCOTT@orcl12c> INSERT ALL
      2  INTO tbl2000pcbperson VALUES (1, 8553002201)
      3  INTO tbl2000pcbperson VALUES (1, 8553001101)
      4  INTO tbl2000pcbperson VALUES (1, 1006498200)
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    SCOTT@orcl12c> CREATE OR REPLACE PROCEDURE names_proc (p_rid  IN rowid,p_clob IN OUT nocopy clob) IS
      2  l_adresse VARCHAR2(4000);
      3  l_name VARCHAR2(200);
      4  l_pcbid VARCHAR2(4000);
      5  l_persno VARCHAR2(32);
      6  l_xmlDoc VARCHAR2(8200);
      7  BEGIN
      8  SELECT name,
      9        LISTAGG(pcb,'') WITHIN GROUP(ORDER BY pcb),
    10        LISTAGG(plz,'') WITHIN GROUP(ORDER BY plz) ||
    11        LISTAGG(ort,'') WITHIN GROUP(ORDER BY ort) ||
    12        LISTAGG(str,'') WITHIN GROUP(ORDER BY str)
    13      INTO l_name,l_pcbid,l_adresse
    14      FROM(
    15          SELECT '<name>'||name1||'</name><vname>'||name3||'/vname>' as name,
    16            DECODE( LAG(plz,1,0) OVER (ORDER BY plz),plz,NULL,'<plz>'||plz||'</plz>'  ) AS plz,
    17            DECODE( LAG(ort,1,0) OVER (ORDER BY ort),ort,NULL,'<ort>'||ort||'</ort>'  ) AS ort,
    18            DECODE( LAG(str,1,0) OVER (ORDER BY str),str,NULL,'<str>'||str||'</str>'  ) AS str,
    19            DECODE( LAG(pp.pcbid,1,0) OVER (ORDER BY pp.pcbid),pp.pcbid,NULL,'<pcb>'||pp.pcbid||'</pcb>'  ) AS pcb
    20          FROM tbl0100anschrift an,
    21            tbl0100person pers,
    22            tbl2000pcbperson pp
    23          WHERE pers.persno=an.persno
    24            AND pers.rowid=p_rid
    25            AND pers.persno=pp.persno
    26            AND an.persno=pp.persno
    27          ) adr
    28      WHERE plz || ort || str ||pcb IS NOT NULL
    29  GROUP BY name;
    30    --
    31    l_xmlDoc:=l_name||l_adresse||l_pcbid;
    32    DBMS_LOB.WRITEAPPEND (p_clob,length(l_xmlDoc),l_xmlDoc);
    33  END;
    34  /
    Procedure created.
    SCOTT@orcl12c> SHOW ERRORS
    No errors.
    SCOTT@orcl12c> DECLARE
      2    v_clob  CLOB;
      3  BEGIN
      4    FOR r IN (SELECT ROWID rid FROM tbl0100person) LOOP
      5      DBMS_LOB.CREATETEMPORARY (v_clob, TRUE);
      6      names_proc (r.rid, v_clob);
      7      DBMS_OUTPUT.PUT_LINE (v_clob);
      8      DBMS_LOB.FREETEMPORARY (v_clob);
      9    END LOOP;
    10  END;
    11  /
    <name>Huber</name><vname>Astrid/vname><plz></plz><ort></ort><str></str><pcb>1006
    498200</pcb><pcb>8553001101</pcb><pcb>8553002201</pcb>
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> begin
      2    ctx_ddl.create_preference(preference_name=>'name_store',object_name=>'USER_DATASTORE');
      3    ctx_ddl.set_attribute
      4      (preference_name=>'name_store',
      5        attribute_name=>'procedure',
      6        attribute_value=>'names_proc');
      7    ctx_ddl.create_section_group ('name_sg', 'basic_section_group');
      8    ctx_ddl.add_field_section ('name_sg', 'name', 'name');
      9    ctx_ddl.add_field_section ('name_sg', 'vname', 'vname');
    10    ctx_ddl.add_field_section ('name_sg', 'pcb', 'pcb');
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX name_ix1 ON tbl0100person (name1)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE    name_store
      5      SECTION GROUP    name_sg')
      6  /
    Index created.
    SCOTT@orcl12c> SELECT token_text FROM dr$name_ix1$i
      2  /
    TOKEN_TEXT
    1006498200
    8553001101
    8553002201
    ASTRID
    HUBER
    VNAME
    6 rows selected.
    SCOTT@orcl12c> select * from tbl0100person
      2  where  contains
      3            (name1,
      4            'huber within name and astrid within vname and 8553002201 within pcb')>0
      5  /
        PERSNO NAME1          NAME3
            1 Huber          Astrid
    1 row selected.
    SCOTT@orcl12c> select * from tbl0100person
      2  where  contains
      3            (name1,
      4            'huber within name and astrid within vname and 8553001101 within pcb')>0
      5  /
        PERSNO NAME1          NAME3
            1 Huber          Astrid
    1 row selected.
    SCOTT@orcl12c> select * from tbl0100person
      2  where  contains
      3            (name1,
      4            'huber within name and astrid within vname and 1006498200 within pcb')>0
      5  /
        PERSNO NAME1          NAME3
            1 Huber          Astrid
    1 row selected.

  • Oracle 11g R2 - AWR Section UnOptimized Read Reqs / Optimized Read Reqs

    Hello guys,
    using Oracle 11g R2 more and more i have checked out the new AWR and its sections.
    I have found some section lke this
    SQL ordered by Physical Reads (UnOptimized)DB/Inst: SID/sid  Snaps: 20296-202
    -> UnOptimized Read Reqs = Physical Read Reqts - Optimized Read Reqs
    -> %Opt   - Optimized Reads as percentage of SQL Read Requests
    -> %Total - UnOptimized Read Reqs as a percentage of Total UnOptimized Read Reqs
    -> Total Physical Read Requests:         151,508
    -> Captured SQL account for   25.3% of Total
    -> Total UnOptimized Read Requests:         151,508
    -> Captured SQL account for   25.3% of Total
    -> Total Optimized Read Requests:               1
    -> Captured SQL account for    0.0% of TotalWhat the heck is "Optimized Read Reqs" and "UnOptimized Read Reqs"? These terms are used very often right now in AWR of Oracle 11g R2.
    Does anyone know what this term means and how it is defined? Don't find any information on web and documentation.
    Thanks guys!

    Hello,
    If my guess is close than "Buffer Hit" (Instance Efficiency Percentages) could be as low as 0% from this report.No it isn't ... check it here:
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                Buffer Nowait %:   99.96       Redo NoWait %:  100.00
                Buffer  Hit   %:   99.50    In-memory Sort %:  100.00
                Library Hit   %:   99.09        Soft Parse %:   89.55
             Execute to Parse %:   95.93         Latch Hit %:   98.93
    Parse CPU to Parse Elapsd %:   68.68     % Non-Parse CPU:   98.81Sometimes i wonder why oracle introduces such new terms / measurements without documenting it.
    Regards

  • Help linking oracle 11g and joomla 1.6

    Hello
    I am currently working on a project which uses Joomla 1.6 and MySQL 5.15. We now need to migrate the DB from MySQL to Oracle 11g R2 and I would like some help in finding a driver between Oracle 11g and Joomla 1.6. If anybody has worked with and successfully connected these two could you please help me out.
    Could really do with the help as I need to complete the project soon.
    Thanks
    Bharat
    Edited by: 842910 on Mar 8, 2011 11:10 PM

    Hey there...
    Well.... It sort of all depends on how Joomla is connecting to the database. Are they using a pre-built framework like PDO or Zend ?
    If they are it should be a a relatively easy task to move it to Oracle. If not then you will have to alter their DB layer and replace a lot of the mySQL calls with Oracle calls and add a few. For example MySQL does not parse a statement prior to execution but Oracle does eg:
    $oraDB = oci_connect([parms]);
    $query = oci_parse($OraDB,'select 'a' from dual');
    // If you are binding variables it would go between the parse and execute areas and it is mostly the same as doing
    // it with MySQL
    oci_execute($query);
    $data = oci_fetch_assoc($query);The instant client and the full client do things very differently and connections to the DB server are done differently so you will need to understand those differences and code accordingly.
    The OCI_8 php libraries are well established and documented. They must be installed on the server on which Joomla is running.
    If your machine is setup correctly this is as simple as:
    %pecl install oci8
    pecl will take care of pretty much everything including dealing with 32 -v- 64 bit and all you need do is make an entry in the php extension section letting it know the OCI libraries are installed. If not it is a bit more complicated.
    The software along with the instructions ca be found here: http://pecl.php.net/package/oci8
    You must have either the instant client or the regular Oracle client installed on the server on which Joomla is running.
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.htmlhttp://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
    After you accept the license agreement click on "See All" and you will see both the instant client and the full client for the version you require.
    It is extremely un-wise to attempt to run any version of oracle on the machine running joomla / Apache. If you do so, then you stand a better then even chance of failure as Oracle does not like to share resources.
    Make sure you read the install instructions for the oracle client and pay very close attention to things like environment settings and permissions issues on the php server as these are some of the most common problems. Once the client is installed and the oci libraries are installed things should run very smoothly. The whole php to Oracle chain is very fast and the fact that the db server is remote from the web server will not be an issue as long as the links are fast.
    If you have problems get back to us and we will do the best we can to help you sort things out.
    - FG

  • What is up with the Help and Support Section for Business Catalyst?

    It has been very difficult for my customers and myself to access the help and support section of the site for Business Catalyst issues as we are constantly diverted to non-related Abode issues. The portal for support on Business Catalyst issue needs to be ISOLATED from ADOBE's main support section. It is bad enough that there are so many issues to deal with, but to add all the issues for all the applications is simply impossible to decipher and discover a solution.
    Before the Adobe integration on the Cloud services it was much more simpler, wiith a much more efficient and cleaner layout, now every page looks like its generated by a bot that doesn't understand what I am looking for. Even the actual URL of the page is hidden so I can't even book mark it without opening the frame in a new window. My clients will not know how to do that.
    Simplify plesase!
    Teejay

    Teejay,
    Yes we are looking into this very thing and hope to improve this very soon.  Not only making things a bit clearer but also a central location for all your BC support needs. 
    Kind regards,
    -Sidney

  • Upgrade ERP database 11g and ATG7 with SSO integation

    Please let us know how to Perform Upgrade ERP database 11g and ATG7 with SSO integation .
    Regards .

    We have completed to upgrade ERP database from 9.2.0.6 to 11.2.0.1 and also apply ATG 7 on Test instance.
    And user finish testing , there is no issue after upgrade and application can work as normal.
    On Test instance we didn't implement Single Sign On
    But on Production we have Single Sign ON.
    Now we plan to upgrade on Production instance. But we afraid that we will found any issue on Production relate to SSO. Becase we don't have a chance to test it.
    My question is:
    Are there any spacial step we need to do if we have implemented SSO After upgrade DB 11g and ATG 7?

  • Oracle 11g and iSeries ODBC 32/64bit version???

    Hi folks,
    I've some questions....
    I need setup a new server with Oracle db 11g and from this db i need setup a DBLINK to an IBM iSeries (AS/400) server. I've some doubts about the 32/64 bit version to use.
    My idea is:
    Oracle Linux 64bit
    Oracle Database 11g 64bit
    Oracle Gateway 11g 64bit
    IBM i Access ODBC driver 64bit ( maybe 7.1 version?!?!?!)
    Do you think I'll be able to achieve my goal with this configuration?
    Else where can you suggest me a valid and wonrking configuration?
    Thank you very much!!!!
    bye bye

    Emilio,
    That combination of products should work, as long as the ODBC driver is 64-bit and satisfies the ODBC driver criteria listed in the documentation.
    If you have access to My Oracle Support have a look at this note -
    Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX)
    Regards,
    Mike

  • I am having trouble with iMessage being activated. It has worked up until yesterday and now won't activate and is saying no address in the send and receive section. My number is there but not ticked. Any suggestions on how to fix this?

    I am having trouble with iMessage being activated. It has worked up until yesterday and now won't activate and is saying no address in the send and receive section. My number is there but not ticked. Any suggestions on how to fix this? I have shut down my phone, but still no luck!

    iMessage and FaceTime went down yesterday for some people. Mine is still down. My iMessage is saying the same thing about being activated. Sounds like you are still down too. Ignore the status page that says everything is fine - it lies.

  • How To Bypass Header and Footer Section in Excel Output

    I have a Requirement like this
    I need to have the report output in the below three formats
    PDF,EXCEL,HTML
    But when we see the ouput in EXcel it should not have the Footer and Header Scetion ,
    remaining two output formats (PDF,HTML) must have the Footer and Header Section.
    Any one having any idea about this issue.
    Thanks in Advance.
    Have a Nice day.
    Edited by: user9274800 on Mar 1, 2011 9:13 AM

    Generally, one template can not create nice output in all formats. In your case, you would need a format parameter to suppress headers/footers if it's value is 'EXCEL'. The problem is (I wish someone would correct me on this) that we can not refer the standard parameter already there and have to create another, user-defined parameter.

  • Scheduling a report in OBIEE 11g and BI Publisher

    HI Everyone,
    I have a report. Now i want to schedule this report on monday, tuesday for first week, and monday , tuesday, wednesday for second week , monday, tuesday, wednesday for third week.... etc., like this i want to schedule. Can anyone please help me how This i have to implement for a report in OBIEE 11g, And another report , i have to schedule in the same manner in BI Publisher. Please help me out .,.,.,.
    Regards
    ....

    Hi Everyone,
    I dint get the proper answer to schedule a report which i want it exactly. Let me explain clearly.., Take a month of march, if a schedule a report, it has to schedule like, iin 1st week of march it has to deliver for first two days, in 2nd week, it has to deliver for first three days etc.,.,.,.
    Regards...

  • Obiee 11g and custom j2ee app using the same cookie name

    Hi,
    I wrote a same j2ee web application. i'am using authentification through a realm configured in the web.xml.
    This web app is deployed in the same weblogic than obiee 11g. What i want to do is to embed my application in a dashboard using an iframe tag, and use the same login from analytics to my custom web app.
    In this article http://docs.oracle.com/cd/E11035_01/wls100/security/thin_client.html#wp1039551, it is said that by default, all web apps in the sames weblogic server are using the same cookie name so that they share authentification between them. However, i have read in the web that analytics in obiee 11g is using a cookie with the name "ORA_BIPS_NQID".
    In the weblogic.xml of my custom application, i set the cookie-name parameter to ORA_BIPS_NQID. However, in the dashbord, it still prompt for authentification to my custom web app.
    How can we share authentification between analytics and a custom web app in the same weblogic ?
    NB : I dont want to pass the username et password through the url.
    Thanks.

    By default, if you don't specify a cookie-name in the weblogic.xml configuration file, the weblogic server create a cookie named JSESSIONID for your application. For exemple, if two applications use the default configuration, both of them will use the same cookie name which is JSESSIONID. In this case, when you log in the first application, your are automaticaly logged in the second application with the same credentials. I have already test this kind of integration and it works perfectly. You only need that the two applications are deployed in the same weblogic server.
    Now, i want to have the same behaviour between obiee 11g and my custom application deployed in the same weblogic server. I read somewhere in the web that obiee 11g presentation service (analytics) is configured with a cookie-name value = "ORA_BIPS_NQID". So in the weblogic.xml configuration file of my web app, i specify a cookie-name value = "ORA_BIPS_NQID" to have the same cookie-name between the two application. But, it still not work. It prompt for authentification in the dashboards.
    I now, that such an integration is possible, because the other bi applications (mapviewer, bipublisher,...) are actually other web applications. However when using, for exemple, maps in dashbords, the mapviwer application automaticaly user the credentials of the user connected in analytics.

  • Few questions about OWB migration 10g---- 11g and UIODs

    I am curretly migrating OWB repository from 10g to 11g.
    Both repositories are on the same database.
    We just have one single Project in our Repository. It is actually(preinstalled) MY_PROJECT renamed into something else. So it has the UOID of the "default" MY_PROJECT but of course, physical and business names are different.
    Because we renamed MY_PROJECT, complications occured when we first tried to do the repository upgrade the recommended way, with repository assistant. During the upgrade processes , the error came that the objects with same UOIDs but different names exist.
    Obviously, MY_PROJECT from the 10g repository collided with the new, preinstalled, MY_PROJECT in the (almost) empty 11g repository/workspace.
    Also, MY_PROJECT in 11g workspace has exactly the same UOID as the one created in 10g repository.
    I was told by Oracle support that this was a bug-but they do not see it as high priority, so we had to do workaround --the migration of the repository on 11g.
    Now my first Question: Was it completely insane to use MY_PROJECT for your actual ongoing Project? We never had any other problem with this constallation.I also noticed in forums that people indeed use MY_PROJECT for their work.
    The second question: Has anybody , ever, seen the same problem, when trying to upgrade to 11g ?
    The migration procedure is as follows:
    -install 11g Workspace with Repository Assistant
    -Export locations and data from 10g repository
    -Import locations and data in 11g repository- thé update option -matching on UOID..so we do not get problem with MY_PROJECT
    -register locations in11g repository
    -deploy all mappings and workflows
    Now, this all works fine..and our new 11g repository runs without problem..
    I am still puzzled by few things :
    New 11g repository is almost empty apart from MY_PROJECT and DEFAULT_CONFIGURATION. Now, MY_PROJECT in 11g has the same UOID as in oracle 10. But DAFAULT_CONFIGURATION in 11g has different UOID from DAFAULT_CONFIGURATION in 10g. It is always the same UIOD for every new 11g installation (I've upgraded repository on many databases).
    Now 3rd question: Is there any particular reason why DEFAULT_CONFIGURATION  has different UOID in 11g and MY_PROJECT hast the same UOID ? Is there any logic behind it -that I fail to grasp ?
    Another thing. I said that I am importing complete Project in the new repository with update option with matching on UIOD. I should get a problem with DAFAULT_CONFIGURATION, I thought, since it is in the full export of the Project and DEFAULT_CONFIGURATION has different UOID than in 11g repository.
    But I did not get the problem at all.Default Configuration was simply skipped during the import - visible from the import log.
    Therefore 4th question : Why didnät OWB try to import DEAFULT_CONFIG? Is it "internal" object and as such cant't be changed ?
    The reason I am so obsessed with UOIDs is that we have automated release procedure (between development, test and production repositores) which is based on comparing UOIDs.
    Therefore a s slight trace of concearn on my side, because the DEAFULT CONFIG now has different UOIDs than before. But on the other side, we just propagate mappings and workflows between repositories - I do not see why the default config should matter here .
    Thank very much in advance for any answers/suggestions/ideas and comments!
    Edited by: Reggy on 27.01.2012 07:12
    Edited by: Reggy on 27.01.2012 07:12

    I am curretly migrating OWB repository from 10g to 11g.
    Both repositories are on the same database.
    We just have one single Project in our Repository. It is actually(preinstalled) MY_PROJECT renamed into something else. So it has the UOID of the "default" MY_PROJECT but of course, physical and business names are different.
    Because we renamed MY_PROJECT, complications occured when we first tried to do the repository upgrade the recommended way, with repository assistant. During the upgrade processes , the error came that the objects with same UOIDs but different names exist.
    Obviously, MY_PROJECT from the 10g repository collided with the new, preinstalled, MY_PROJECT in the (almost) empty 11g repository/workspace.
    Also, MY_PROJECT in 11g workspace has exactly the same UOID as the one created in 10g repository.
    I was told by Oracle support that this was a bug-but they do not see it as high priority, so we had to do workaround --the migration of the repository on 11g.
    Now my first Question: Was it completely insane to use MY_PROJECT for your actual ongoing Project? We never had any other problem with this constallation.I also noticed in forums that people indeed use MY_PROJECT for their work.
    The second question: Has anybody , ever, seen the same problem, when trying to upgrade to 11g ?
    The migration procedure is as follows:
    -install 11g Workspace with Repository Assistant
    -Export locations and data from 10g repository
    -Import locations and data in 11g repository- thé update option -matching on UOID..so we do not get problem with MY_PROJECT
    -register locations in11g repository
    -deploy all mappings and workflows
    Now, this all works fine..and our new 11g repository runs without problem..
    I am still puzzled by few things :
    New 11g repository is almost empty apart from MY_PROJECT and DEFAULT_CONFIGURATION. Now, MY_PROJECT in 11g has the same UOID as in oracle 10. But DAFAULT_CONFIGURATION in 11g has different UOID from DAFAULT_CONFIGURATION in 10g. It is always the same UIOD for every new 11g installation (I've upgraded repository on many databases).
    Now 3rd question: Is there any particular reason why DEFAULT_CONFIGURATION  has different UOID in 11g and MY_PROJECT hast the same UOID ? Is there any logic behind it -that I fail to grasp ?
    Another thing. I said that I am importing complete Project in the new repository with update option with matching on UIOD. I should get a problem with DAFAULT_CONFIGURATION, I thought, since it is in the full export of the Project and DEFAULT_CONFIGURATION has different UOID than in 11g repository.
    But I did not get the problem at all.Default Configuration was simply skipped during the import - visible from the import log.
    Therefore 4th question : Why didnät OWB try to import DEAFULT_CONFIG? Is it "internal" object and as such cant't be changed ?
    The reason I am so obsessed with UOIDs is that we have automated release procedure (between development, test and production repositores) which is based on comparing UOIDs.
    Therefore a s slight trace of concearn on my side, because the DEAFULT CONFIG now has different UOIDs than before. But on the other side, we just propagate mappings and workflows between repositories - I do not see why the default config should matter here .
    Thank very much in advance for any answers/suggestions/ideas and comments!
    Edited by: Reggy on 27.01.2012 07:12
    Edited by: Reggy on 27.01.2012 07:12

  • ODBC connectivity between Oracle 11G and MSSQL Server on Solaris 10

    When we were running in 10G, I was able to successfully configure hsodbc using unixODBC and freeTDS to allow for an ODBC connection between Oracle and MSSQL Server.
    A few weeks ago we upgraded to 11G and I've been struggling to get the connectivity (dg4odbc) working.
    In our 10g environment unixODBC and freeTDS were compiled as 32-bit. I have recompiled them as 64-bit and switched over to an 11G listener and I am getting the following error:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    here are my configuration files:
    /usr/local/unixODBC/etc[PPRD]> more odbc.ini
    [ODBC Data Sources]
    identipass = MS SQL Server
    [identipass]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    Setup = /usr/local/freetds/lib/libtdsodbc.so
    Description = MS SQL Server
    Trace = 1
    TraceFile = /export/home/oracle/ODBC/odbc.trace
    Server = stormwind
    QuoteID = Yes
    AnsiNPW = No
    Database = identipass
    Port = 1433
    TDS_Version = 8.0
    [Default]
    Driver = /usr/local/freetds/lib/libtdsodbc.so
    /usr/local/unixODBC/etc[PPRD]> more odbcinst.ini
    [TDS]
    Description=FreeTDS driver
    Driver=/usr/local/freetds/lib/libtdsodbc.so
    Setup=/usr/local/freetds/lib/libtdsodbc.so
    Trace=Yes
    TraceFile=/tmp/freetds.log
    FileUsage=1
    UsageCount=2
    tnsnames.ora
    identipass =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = localhost)(PORT = 1522))
    (CONNECT_DATA =
    (SID = identipass)
    (HS = OK)
    listener.ora
    LISTENERODBC =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENERODBC=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=identipass)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1)
    (ENV="LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/hs/lib")
    (PROGRAM=dg4odbc)
    And finally, output from the trace file:
    /u01/app/oracle/product/11.2.0/db_1/hs/log[PPRD]> more identipass_agt_1381.trc
    Oracle Corporation --- THURSDAY NOV 18 2010 16:00:16.010
    Heterogeneous Agent Release
    11.2.0.1.0
    Oracle Corporation --- THURSDAY NOV 18 2010 16:00:16.008
    Version 11.2.0.1.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "Debug"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "AL32UTF8"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "TRUE"
    HOSGIP returned value of "FALSE" for HS_FDS_SUPPORT_STATISTICS
    Parameter HS_FDS_QUOTE_IDENTIFIER is not set
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    Default value of 64 assumed for HS_FDS_SQLLEN_INTERPRETATION
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLSt
    atistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    Exiting hgosdip, rc=0
    ORACLE_SID is "identipass"
    Product-Info:
    Port Rls/Upd:1/0 PrdStat:0
    Agent:Oracle Database Gateway for ODBC
    Facility:hsa
    Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:identipass
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=873
    HOCXU_DRV_NCHAR=873
    HOCXU_DB_CSET=873
    HOCXU_SEM_VER=112000
    Entered hgolofn at 2010/11/18-16:00:16
    HOSGIP for "HS_FDS_SHAREABLE_NAME" returned "/usr/local/unixODBC/lib/libodbc.so"
    Entered hgolofns at 2010/11/18-16:00:16
    symbol_peflctx=0x7a715450
    hoaerr:0
    Exiting hgolofns at 2010/11/18-16:00:16
    Exiting hgolofn, rc=0 at 2010/11/18-16:00:16
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    Invalid value of 64 given for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2010/11/18-16:00:16
    Entered hgolgon at 2010/11/18-16:00:16
    reco:0, name:identipass, tflag:0
    Entered hgosuec at 2010/11/18-16:00:16
    Exiting hgosuec, rc=0 at 2010/11/18-16:00:16
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using identipass as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2010/11/18-16:00:16
    HS_FDS_CONNECT_INFO = "identipass"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2010/11/18-16:00:16
    dsn:identipass, name:identipass
    optn:
    Entered hgocip at 2010/11/18-16:00:16
    dsn:identipass
    Exiting hgocip, rc=0 at 2010/11/18-16:00:16
    Exiting hgogenconstr, rc=0 at 2010/11/18-16:00:16
    Entered hgopoer at 2010/11/18-16:00:16
    hgopoer, line 233: got native error 0 and sqlstate ; message follows...
    Exiting hgopoer, rc=0 at 2010/11/18-16:00:16
    hgocont, line 2753: calling SqlDriverConnect got sqlstate
    Exiting hgocont, rc=28500 at 2010/11/18-16:00:16 with error ptr FILE:hgocont.c LINE:2772 ID:Something other than invalid authoriza
    tion
    Exiting hgolgon, rc=28500 at 2010/11/18-16:00:16 with error ptr FILE:hgolgon.c LINE:781 ID:Calling hgocont
    Entered hgoexit at 2010/11/18-16:00:16
    Exiting hgoexit, rc=0
    Can anyone help me see what I'm missing?

    Thank you for your response.
    I modified the envs LD_LIBRARY_PATH parameter in my SID_LIST_LISTENERODBC to be:
    (ENV="LD_LIBRARY_PATH=/usr/local/freetds/lib:/usr/local/unixODBC/lib:/u01/app/oracle/product/11.2.0/db_1/lib:/
    u01/app/oracle/product/11.2.0/db_1/hs/lib")
    and bounced the listener, but I'm still getting the same error.
    I do not have a lib64 directory in my Freetds installation, but all the files in the lib directory are 64-bit.
    Here is a listing of my DG4ODBC init file:
    /u01/app/oracle/product/11.2.0/db_1/hs/admin[PPRD]> more initidentipass.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = identipass
    #HS_FDS_TRACE_LEVEL = 0
    HS_FDS_TRACE_LEVEL = Debug
    HS_FDS_SHAREABLE_NAME = /usr/local/unixODBC/lib/libodbc.so
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_LANGUAGE=AMERICAN.AMERICA.WE8ISO8859P15
    # ODBC specific environment variables
    set ODBCINI=/usr/local/unixODBC/etc/odbc.ini
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    Thanks for your help with this!
    Catina

  • Oracle 11g and PRO*C :  pre-compile errors only with 11g !

    Hi !
    I didn't find a forum specific to pro*c, so here i am.
    I've downloaded Oracle 11g and recompiled our applications using pro*c
    We currently precompiling without any problem our sources against Oracle 7, 8, 9, 10.
    With Oracle 11g, it doesn't work !
    every EXEC SQL followed by a command works.
    every EXEC SQL followed by a query generates the same error.
    Example :
    char *oracle_date_courante()
         static char buf[SIZE_ORADATE+1];
         EXEC SQL SELECT sysdate into :buf from DUAL;
         if(ORA_SQLERROR())
              oracle_error("sélection date courante");
              buf[0]=0;
         return buf;
    PRO*C output :
    Erreur Ó la ligne 105, colonne 2 dans le fichier src\oracle.pc
    EXEC SQL
    .1
    PLS-S-00000, SQL Statement ignored
    erreur sÚmantique Ó la ligne 105, colonne 2, fichier src\oracle.pc:
    EXEC SQL
    .1
    PCC-S-02346, PL/SQL a trouvÚ des erreurs sÚmantiques
    So, we investigated... And found that thoses errors come when we use the option sqlcheck=semantics.
    If we use an inferiour check level, it works but because we use PL/SQL keywords, pro*c prints errors and wants us to provide the 'semantics' sqlcheck level !
    So, it's a vicious circle !
    Any ideas ?
    Thanks...
    Vincent

    Adding the option common_parser=yes removes the errors !
    But brings errors linked to the PL/SQL parser such like
    CSF-S-00000, ORA-06544: PL/SQL : erreur interne, arguments : [55916], [], [], []
    1>, [], [], [], []
    1>ORA-06553: PLS-801: erreur interne [55916]
    Really vicious..and still not precompiling !
    By the way : Server is 10.2.0.1... and i guess thoses errors are normal since the common parser is not available in this version...
    So bye bye option common_parser and i'm back to my orignals errors.
    Message was edited by:
    Vicenzo

Maybe you are looking for