Can I Specify an Oracle Hint for a Query

We are BW 3.1 Oracle 9.2.  We have a few InfoCube queries that would perform better if a full table scan on the fact table was done rather than using the system generated Star Transformation hint.
When use RSRT or other entry points to see the SQL and the Explain plan, I have the option of putting in an Oracle hint and generating another Explain Plan.
Is there any way to save the query with a different Oracle hint than the Star Transformation hint?

Klaus -
Thanks for responding.
It is only a handful of queries that this is an issue with.  Overall, we are certainly better off using the star transformation. 
Do you know the reasoning behind letting you specify a hint when running a query through RSRV if you can never actually specify those hints for actual production execution? Is the ability to add a hint anything that we might see in the future?
In looking into this a little more, I looked at an explain plan for a query on one of our transactional InfoCubes.  We are Oracle 9.2, and transactional Infocubes have B-tree indices rather than bitmap on the F fact table.  Presumably to better support the input of transactions.  I see in the explain plan that with the star transformation, the btree indices are converted to  bitmap, then a bitmap merge, then the result of that is converted back to a btree index to read the F fact table.  Without the star transformation, the query cost is half, so the ability to suppress the star transformation on F fact queries on transactional cubes would also be nice.
At another job, I used to use Brio to query a data warehouse and although Brio didn't have facility to specify a hint, you could define a calculated field in the query and actually enter the hint text as the calculation and as long as that field was the first to follow the Select stmt, it was recognized as an Oracle hint.  Maybe there could be some way to sneak a hint into the query.  It's not something you would want every query developer doing, but as long as someone knew when it was appropriate to override/surpress star transformation, it would be nice to be able to do.
John

Similar Messages

  • Where can i find the Oracle JDBC for Oracle RDBMS 8.1.7 ? Thanks.

    Where can i find the Oracle JDBC for Oracle RDBMS 8.1.7 ? Thanks.

    http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html

  • Where can i get personal oracle 7 for windows

    Where can i get personal oracle 7 for windows

    Thanks.
    I tried password like system/manager, scott/tiger, or manager , tiger, oracle, but still can't log on.
    Xiaowei

  • Can I use a OID rule for a Query SQL Lov of BIP?

    Hi. Can I use OID data (rules) for a query sql lov in BIP? Ex. filters users/store.
    Thank you.
    R.

    Hi,
    I didn't look at the example, but if you want to secure your application then you should use container managed security. Read this .
    Anyway, you could add this before return "good"; in your login_action()
    FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("username", user);Then, you can access this from anywhere in the application by using #{sessionScope.username}.
    Pedja

  • Use of an Oracle Hint for a WebI-Universe BEX based-Query  ?

    Hi,
    can I use an Oracle Optimizer Hint like /*+ PARALLEL(MyFacttable, 8) */
    for a WebI- ./. Universe- ./.  BEX based-Query ?
    Is this possible  ?
    If Yes: How and where to implement this  ?
    Thank You !
    Martin

    Hi,
    BusinessObjects only communictates with the MDX Interface by way of SAP's OLAP BAPI over RFC.
    Everything else, OLAP engine, Data Manager, etc etc Cube abstraction over a Relational schema is handled by the BW application.
    so No, BO can't "inject" any cleverness into BW processing architecture.
    Regards,
    H

  • Where can i find an oracle CLIENT for win98??

    I need an oracle client for win98 to access a 9i database, where
    can i find it?
    Best Regards
    Erik Rangel de Oliveira

    any oracle 8i client or oracle 8 client can connect to oracle 9i
    database if that helps.
    The clients can be obtained from the technet site.

  • Can't install Personal Oracle 8i for NT

    So that we may better diagnose DOWNLOAD problems, please provide the following information.
    - Server name NONE
    - Filename NT817 Personal.zip
    - Date/Time 2/7/2002
    - Browser + Version IE 5.5
    - O/S + Version NT 4.0
    - Error Msg NONE
    I downloaded and unzipped the above named file. When I try to run setup.exe, the cursor blinks to an hour glass for a milisecond and then nothing. Some advice I've had from others has been to:
    1. Check for a folder called c:\ProgramFiles\oracle\inventory\locks and make sure there
    is nothing in there. Folder does not exist.
    2. Make sure I have sufficient free space on drive c: to allow for the log files. I have approx 500mb free space.
    Any assistance would be most appreciated.
    Thanks,
    Scott

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Frannyoa:
    I have recently installed Oracle 8i for NT. I'm unable to connect to the database using the connect string :- Scott/tiger
    Error msg: protocol adapter error.
    Also can u install 8i for NT on win98/2000?
    Any suggestions welcome.
    Thanks in advance.
    [email protected]
    <HR></BLOCKQUOTE>
    Hi
    before connecting from sql plus or svrmgr set default instance. for eg. if you are on NT go to environment variable and set ORACLE_SID=TRIAL
    trial is my instance name
    shailesh
    null

  • Deploytool: Can't specify a JNDI name for RA

    Using j2eesdk1.4_beta2, it appears there is no way to specify a JNDI name for a Resource Adapter. Is there a default name I can use to look up my RA if I don't specify a name? The Deploy Tool help describes some tabbed panes appear to be missing from the appication. Is there a way to work around this problem until the final release comes out?

    Headache!... That's what is expecting you in the DeployTool.
    The deploytool generates invalid deployment descriptors for Resource Adaptors.
    As you mentioned, it doesn't allow you to select a ResourceAdaptor implementation. In my case, I'm using my own Connection and ConnectionFactory and it didn't allow me to choose an implementation class for either interface neither.
    I solved these problems by downloading XMLSpy and using the XML Schema to fill-in the gaps in the ra.xml descriptor. There I had also to include other mandatory elements that where not written by the deployTool, like: <display-name>
    <vendor-name>
    <eis-type>
    <resourceadapter-version>
    Regarding to the <<null>> error, it has to deal with an invalid sun-ra.xml. It's either empty or it's missing a mandatory element. I used again XML Spy here to give a JNDI to my adaptor.
    I thought I was through it but I still can't deploy on the server. When I try, I get the following error:
    <[INFO][j2eesdk1.4_beta2][][][12][javax.enterprise.system.tools.admin][03.november.2003 22:16:22:351 CET][ADM5604:Processing config change [Domain:add to xpath=/domain/applications
    childXPath = /domain/applications/connector-module[@name='SimpleRAR1']]]>
    <[INFO][j2eesdk1.4_beta2][][][12][javax.enterprise.system.tools.admin][03.november.2003 22:16:23:302 CET][ADM1041:Sent the event to instance:[ModuleDeployEvent -- deploy connector/SimpleRAR1]]>
    org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
    [.... 200 lines stack trace ....]
    <[WARNING][j2eesdk1.4_beta2][][][12][javax.enterprise.system.tools.admin][03.november.2003 22:16:24:043 CET][ADM5603:Event listener error [null]]>
    So far I haven't found a way to get solve this one. The <NAMESPACE_ERR> makes me think about the infamous 'locale' error of the deploytool, but I included the JVM parameters [USER_LANG=en,USER_REGION=US,USER_COUNTRY=US] in the server startup and it didn't change anything.
    If you get further than that, please let me know.
    -regards,
    Gerard.

  • How can I specify an area path for the work item created on build failure?

    In our department we are working with multiple build definitions for different parts of one Team project. We heavily use the Team Project feature. Teams are defined by area path nodes, so each team can only see it's area path. No one (except the admins)
    can see the root project node.
    When a build breaks, TFS generates a Bug. Unfortunately, this bug is assigned to the area path root node, so nobody can see the generated bug and act on it.
    We would prefer to specify the area path for the generated work item in the build definition (not template, but property of a build definition), as every build belongs exclusively to one team.
    I have found that you can populate fields of the generated work item by filling the "custom fields" of the "create work item" activity. But how do I set the area path as a parameter?
    Guenter

    Hi Cuenter, 
    Thanks for your post.
    You should set the value like below in that activity:
    New
    Dictionary(Of
    String,
    String)
    From {{"Area
    Path",
    "teamprojectname\areaname"}}
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can I specify a price list for an invoice other than the customers default?

    Can I specify a price list when I enter an invoice that will override the customers default price list?

    Hi Greg......
    You can change the Price List on Transaction level only through Form Setting.
    Open Invoice and Go to Form Setting and Document--> Table Tab and select the desired Price List....
    Regards,
    Rahul

  • How to write SQL hints for this query?

    The query is like:
    select * from foo, t
    where foo.name in
    (select name from bar
    where id in (
    select id from car
    where date < sysdate
    and foo.a = t.b;
    I want the innermostsubquery 'select id from car ...' to be executed first, and the subquery 'select name from bar ...' to be execute second, and the outermost query 'select * from foo,t ...' to be executed the last. How can I write the Oracle sql hints to force the order?
    Thanks.

    user553560
    You might be able to create a large set of hints to force the access path you want - but unless you really know what you are doing with hints, you may find that your solution is very unstable (it might be luck rather than correctness that let's it work to start with).
    The difficulty in this query is the double layer of IN subqueries, so if you can rewrite the query, you might try manually unnesting as follows:
    select
         t1.*. t.*
    from
              select     
                   distinct t2.name
              from     t2
              where     t2.id in (
                        select     t3.id
                             from     t3
                        where     t3.dated < sysdate
         )     v,
         t1,
         t
    where
         t1.name = v.name
    and     t1.a = t.bDepending on your indexing and statistics, you may find that a simple /*+ unnest */ hint in the first subquery will be sufficient to do this for your. Again depending on the statistics you may find that you have to put extra hints into the above to make Oracle use the join method and indexes you think appropriate.
    N.B. The first step (as others have noted) is to check that your statistics are good before you start manipulating the code or using hints.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk

  • How can I specify where to look for the server installation of the Oracle client?

    I assume changing the $ORACLE_HOME variable would get ORE to use 12.1.0.2 instead of 11.2.0.3, but I only want to change which Oracle R uses. How can I override the server's $ORACLE_HOME location when I'm connecting to the database from the client side?
    OS: Linux Mint 17 / Solaris 11.1
    R version: 3.1.2 (both)
    ORE version: 1.4.1 (both)

    On the server, the Oracle R Enterprise installation is tied to an Oracle Database installation.  Have you installed Oracle R Enterprise for both the 11.2.0.3 and 12.1.0.2 databases?
    If so, the client connect will be able to find the ORE server when you connect to the database using ore.connect:
        R> ore.connect(user = "username", sid = "database sid", host = "hostname/database server", password = "user password", all=TRUE).
    During the ORE installation on the server, we lay down software bits on the OS, install a schema into the database, plus add some libraries to $ORACLE_HOME.
    Sherry

  • Can you specify the allowable values for vertical range and offset for the NI 5112 PCI Digitizer?

    The NI 5112 manual indicates that the vertical range can be set from +/- 25mV to +/-25V in 10% steps. Can you explain exactly what this means? (For example, could you give me a series of allowable values.)
    Also, what are the allowable values for voltage offset?
    The reason for my question is: I am specifying the vertical configuration using the niScope_ConfigureVertical() function. The observed raw (8 bit) sampling does not appear to change at all for small changes in voltage range and offset. I would like to know where the hardware breakpoints are, so that I can apply correct scaling from bits to voltage.
    In addition, I have tried to use the niScope_CheckAt
    tributeViReal64() function to "check" a value before applying it to NISCOPE_ATTR_VERTICAL_RANGE or NISCOPE_ATTR_VERTICAL_OFFSET, but it fails in the linking step in Microsoft Dev. Studio. (niScope.lib & niscope_32.lib do not seem to contain any of the CheckAttribute functions that are listed in the NI-Scope function reference.)
    Thank you for your response.

    There is a nice reference at:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/38f18d418e2433ed8625690e006bbe94?OpenDocument
    which explains that allowable voltage ranges can be expressed by the equation:
    next_range_value = range_value * 1.1 starting at +/- 25 mV.
    When a range is specified that does not match this series, the device driver rounds UP to the next value.

  • Can I specify a timeout value for an RMI call?

    Is it possible to specify a timeout value when a client makes a remote
    RMI call to a WL
    EJB? If the server method hangs does the client call hang forever with it?
    - Rick Holland OO/Distributed Systems Consultant
    - ObjectAge Inc.
    - [email protected]
    "Logic is a wreath of pretty flowers, that smell bad"

    That's what I did to try this. weblogic.ejbc knows how to pass -dispatchPolicy to
    the weblogic.rmic, so in the RMI descriptor it creates:
    <method
    name="*"
    dispatch-policy="queueName"
    >
    </method>
    so, maybe there is a command-line option for the timeout as well. Anyway, extracting
    xxxRTD.xml and adding
    <method
    name="*"
    timeout="xxx"
    >
    </method>
    works just fine.
    Rick Holland <[email protected]> wrote:
    So all I have to do is build my EJB jar, extract the *RTD.xml file, hack
    it, stuff it back into the jar and deploy (all within my Ant script).
    Sounds fairly straight forward.
    Thanks again
    [email protected] wrote:
    It gets there from the server. If you look inside ejbc'ed ejb-jar you'll find
    RMI descriptors there (they are named like xxx.RTD.xml)
    Rick Holland <[email protected]> wrote:
    Thank you Dimitri, but I have one more dumb question, since I need these
    timeouts
    on the client side where does an RMI descriptor go? I have never used
    one of these.
    Thanks
    [email protected] wrote:
    AFAIK, you can specify it in the RMI descriptor :
    <rmi Name=".....">
    <cluster
         clusterable="true"
    </cluster>
    <method
         name="methodname"
         timeout="timeoutinmilliseconds"
    </method>
    </rmi>
    And, if there is timeout, method invocation will fail with exception like this:
    weblogic.rmi.extensions.RequestTimeoutException: RJVM response timed out after: '1000' milliseconds.
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
    at $Proxy2.testTimeout(Unknown Source)
    Rick Holland <[email protected]> wrote:
    Is it possible to specify a timeout value when a client makes a remote
    RMI call to a WL
    EJB? If the server method hangs does the client call hang forever with it?
    - Rick Holland OO/Distributed Systems Consultant
    - ObjectAge Inc.
    - [email protected]
    "Logic is a wreath of pretty flowers, that smell bad"
    - Rick Holland OO/Distributed Systems Consultant
    - ObjectAge Inc.
    - [email protected]
    "Logic is a wreath of pretty flowers, that smell bad"
    - Rick Holland OO/Distributed Systems Consultant
    - ObjectAge Inc.
    - [email protected]
    "Logic is a wreath of pretty flowers, that smell bad"
    Dimitri

  • How can I start the Oracle services for windows?

    I started the oracle services by order :
    ifs:
    1.tnslistener
    2.iasdb
    3.oid
    4.processmanager
    5.OEMwebsite
    mid:
    1.webcache
    2.discoverer
    3.processmanager
    Is the order correct?

    Hi Michael,
    I think, then, that the problem is one of permissions. What I've done on Windows 7 installations is to go to the InDesign application folder (in program files), select the InDesign.exe file, use the Context menu (right-click) to display the Properties panel, and then turn on the Run This Program as an Administrator option in the Privelege Level section of the Compatibility tab. Click the Change Settings for All Users button to apply the change (assuming that your current user profile is an Administrator).
    Let me know if that helps!
    Thanks,
    Ole

Maybe you are looking for