How to find better SQL log in OBI Answers?

While I have an error in making an OBI request in Answers page, the error message in the result tab is usually not very helpful, like:
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column: "Sales Facts Current Month"."Amount Sold (000) Current Month". (HY000)
SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Sales Facts Current Month"."Amount Sold (000) Current Month", "Sales Facts"."Amount Sold", Calendar."Calendar Month Desc", Calendar."Calendar Month Name", Products."Prod Category" FROM SH')}
SQL Issued: SELECT "Sales Facts Current Month"."Amount Sold (000) Current Month", "Sales Facts"."Amount Sold", Calendar."Calendar Month Desc", Calendar."Calendar Month Name", Products."Prod Category" FROM SHI then go to Session Monitor, and click the View Log link. By doing so, sometimes, I got the full sql statement. That is good and I can figure out the problems. Sometimes, I have things like:
-------------------- SQL Request:
SET VARIABLE QUERY_SRC_CD='Report',SAW_SRC_PATH='/shared/sh/Learn';SELECT Times."Calendar Month Name" saw_0, Times."Calendar Month Desc" saw_1, Products."Prod Category" saw_2, Salesfacts."Amount Sold" saw_3, REPORT_SUM(saw_3 BY saw_0, saw_1), REPORT_SUM(saw_3 BY ) FROM SH WHERE (TOPN(Times."Calendar Month Id",40) <= 40) AND (Channels."Channel Desc" = 'Direct Sales') ORDER BY saw_1, saw_0, saw_2
+++Administrator:13290000:1329000f:----2009/09/29 09:18:33
-------------------- General Query Info:
Repository: Star, Subject Area: SH, Presentation: SH
+++Administrator:13290000:1329000f:----2009/09/29 09:18:33
-------------------- Cache Hit on query:
Matching Query:     SET VARIABLE QUERY_SRC_CD='Report';SELECT Times."Calendar Month Name" saw_0, Times."Calendar Month Desc" saw_1, Products."Prod Category" saw_2, Salesfacts."Amount Sold" saw_3 FROM SH WHERE (TOPN(Times."Calendar Month Id",40) <= 40) AND (Channels."Channel Desc" = 'Direct Sales') ORDER BY saw_0, saw_1, saw_2
Created by:     AdministratorThis does not help as the selected tables are not fully spell out. It appear like that OBI find the sql in cache and did process the request fully.
Is there a way I can force OBI resend the request? Is there a way to get OBI log the full sql statement? That way I can copy the sql to SQL*Plus and find exactly the problem
Thanks.

Physical SQL is not visible as it hits the cache.
you can :
1) clear the physical cache from rpd and re-run the request.
or
2) copy the logical SQL, go to web Admin - issue SQL--paste the logical SQL there, then just change one parameter or two, so it does not hit the cache. E.g. change a filter to Feb from Jan...or just add a dummy column at the beginning as select 1 or select 'a' ....rest of the sql same.
this way you can avoid hitting the cache and see the sql (at the bottom of the results - view log)
make sure you have checked the presentation server cache option and set the log level to 4 or more to see details.
HTH

Similar Messages

  • How to find out sql server administrator account in sql server 2008 R2

    how to find out sql server administrator account in sql server 2008 R2
    adil

    there is any way to find out actual administrator
    because i forget that user i used to logon to server and installed sqlserver
    adil
    Hi adilahmed,
    According to your description, you forgot the account which was used to install SQL Server. SQL Server service account information is stored in Windows Registry database. You can get this information from Services Console or SQL Server Configuration.
    For example, to get account information from Services Console.
    1. Go to Start > Run > Services.msc
    2. Right Click on SQL Server Service, i.e. “SQL Server (InstanceName)” and go to properties
    3. The account information is available under Log On tab.
    Or you can get the information by using DMV and so on.
    SELECT servicename, service_account FROM   sys.dm_server_servicesGO
    If you now log in SQL Server by using sysadmin account, you can check all login names in security and find the original account to login.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to find the SQL Server Instances running across the given activer directory domain?

    How to find the SQL Server Instances running across the given activer directory domain?
    I have though of OSQL -L , Microsoft Assessment and Planning ( MAP ) tool and SQLPing3 (SQLSecurity) might help me.
    I would appreciate if there any other way of finding the SQL Servers / Instances running across the given active directory domain.
    Sivaprasad S
    http://sivasql.blogspot.com
    Please click the Mark as Answer button if a post solves your problem!

    Dear ,
    Very simple u find all instances through the customized sp which is get all details about inventory. Like i put the sp bellow. This is without any tool. 
    USE [master]
    GO
    /****** Object:  StoredProcedure [dbo].[DBStatus]    Script Date: 08-01-2015 19:46:11 By Damodar Patle Sr. DBA Mumbai India ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[DBStatus] 
    AS
    SELECT 
    SERVERPROPERTY('servername') AS ServerName,
    ConnectionProperty('local_net_address') AS 'local_net_address',
    ConnectionProperty('local_tcp_port') AS 'local_tcp_port',
    CONVERT(VARCHAR(25), @@VERSION) as  VERSIONSQL,
    SERVERPROPERTY('ErrorLogFileName') AS ErrorLogFilePath,
    database_id,
    CONVERT(VARCHAR(25), DB.name) AS DBName,
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'status')) AS [Status],
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'Recovery')) AS [Recovery_Model],
    create_date as DBCreate_Date, --physical_device_name,
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS DataFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS [Data MB],
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS LogFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS [Log MB],
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS MDF_File_Location,
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS  LDF_File_Location,
       user_access_desc
       FROM sys.databases DB
       ORDER BY dbName, [Log MB] DESC, NAME

  • Where to find the SQL log by crystal reports

    i want to watch the sql log by crystal report loading,but i don't know how to find it , somebody knows it? thanks advanced!

    Hi Wang,
    If you mean to look at the SQL query CR generates, then open the report in the CR Designer > Go to the Database option on the top > Click Show SQL.
    -Abhilash

  • 11g - how to enable the sql logging

    hi, experts,
    I cannot find the way to enable the sql logging (into nqquery.log)
    how to set it?

    I cannot find the way to enable the sql logging (into nqquery.log)The SQL logging can be set in the Administration tool >>Manage>>Security >>users and double click on the user and set the logging level . Best option is to use logging level=2
    http://www.artofbi.com/index.php/2009/07/obiee-logging-security-restrictions-and-levels/
    (OR) if you want to specify only for a single report and if you have the privileages as the Administrator then you can do at report level by going to
    Advance tab>> prefix section >> Set Variable LOGLEVEL=2;
    write it the same way because it sometimes acts case sensitive.Then save it.
    hope answered.
    Cheers,
    KK

  • How to find GUI SQL*Plus command tool in Oracle 8i (version 8.1.7)

    I had installed Oracel 8i Enterprise Edition (version 8.1.7) on my server machine (Windows NT 4.0), I'd like to use Oracle Navigator (GUI SQL*PLUS command tool), but I can not find it from the menu. I know Oracle Navigator is available in Oracle 7. Can anyone tell me where and how to use GUI SQL*PLUS command tool in Oracle 8i Enterprise Edition (version 8.1.7) ?
    thanks a lot.
    David Zhu

    Hi
    Oracle Navigator is part of Personal Oracle7 and Oracle Lite. I don't know is it available in 8i Personal Edition but I am sure that it is not part of Standard and Enterprise Edition.
    Regards
    null

  • How to find using SQL query application deployed on win 7 machines with SCCM 2012 server or user installed manually.

    Hi,
    how to find using SCCM SQL query,  application deployed on win 7 machines with SCCM 2012 server or user/technician installed manually. Please let me know.

    Thanks, is it not possible via any script also?
    Like Torsten said, how can you tell the difference between CM12 installed applications and locally installed? Once you can answer that, then you can write report.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • How to find 'Changes or LOGS on INFOCUBE'

    Dear Friends,
    How to find the changes on any INFOCUBE or ODS or MULTIPROVIDERS, like data loading, and any key figures, Chanractaeristics removed or added. Can we have any logs for the same. Pls help me.
    Thanks in Adavnace,
    DORA

    Hi Reddy,
    I did not find the log. Can you pls expand, how to do.
    Thanks in Adavance
    DORA

  • How to find which sql or process that is causing lots of swap space

    Hello,
    There is a lot of swap space going on constantly. The SGA is 18gigs and PGA is 2 gigs. The swap space is 19gigs. How to find which processes or sql statements that are using a lot of sga and paging? The database is 10.1.0.5. and the tool OEM 10g. Thank you in advance.

    v$sort_usage or v$temp_segusage give temporary tablespace usage.
    To get PGA memory by session, you could use insteadv$process.

  • How to find all sql ran in the database for particular time

    Hi All,
    i need to find all sql ran in the database between 7am to 9am on may 22 2012 , i can generate AWR but i think it shows only top sql but i need all sql during this time
    is any views in oracle to get this information
    Thanks

    i need to find all sql ran in the database between 7am to 9am on may 22 2012 , i can generate AWR but i think it shows only top sql but i need all sql during this time use below view to get detail.
    V$active_session_history
    dba_hist_active_sess_history

  • HT201303 How to find out my forgotton security questions answer

    How to find out my forgotton security questions answers

    Reset Security Questions
    Frequently asked questions about Apple ID
    Manage My Apple ID
    Or you can email iTunes Support at iTunes Store Support.
    If all else fails:
      1. Go to: Apple Express Lane;
      2. Under Product Categories choose iTunes;
      3. Then choose iTunes Store;
      4. Then choose Account Management;
      5. Now choose iTunes Store Security and answer the bullet questions, then click
          Continue;
      6. Sign in with your Apple ID and press Continue;
      7. Under Contact Options fill out the information and advise iTunes that you would
          like your security/challenge questions reset;
      8. Click Send/Continue.
    You should get a response within 24 hours by email.
    In the event you are unsuccessful then contact AppleCare - Contacting Apple for support and service.
    Another user had success doing the following:
    I got some help from an apple assistant on the phone. It is kind of round about way to get in.
    Here is what he said to do and it is working for me...
      a. on the device that is asking you for the security questions go to "settings", > "store" >
          tap the Apple ID and choose view"Apple ID" and sign in.
      b. Tap on payment information and add a credit/debit card of your preference then select
          "done", in the upper right corner
      c. sign out and back into iTunes on the device by going to "settings"> "store" > tap the
          Apple ID and choose "sign-out" > Tap "sign -in" > "use existing Apple ID" and you
          should be asked to verify your security code for the credit /debit card and NOT the
          security questions.
      d. At this time you can remove the card by going back in to edit the payment info and
          selecting "none" as the card type then saving the changes by selecting "done". You
          should now be able to use your iTunes store credit without answering the security
          questions.
    It's working for me ...I just have to put in my 3 digit security pin from the credit card I am using.
    Good Luck friends!

  • How to find square root, log recursively???

    I need to find the square root of a number entered recursively and log as well. Your help would be greatly appreciated. Thanks in advance!
    import java.io.*;
    /**Class provides recursive versions
    * of simple arithmetic operations.
    public class Ops2
         private static BufferedReader in = null;
         /**successor, return n + 1*/
         public static int suc(int n)
              return n + 1;
         /**predecessor, return n - 1*/
         public static int pre(int n)
              if (n == 0)
                   return 0;
              else
                   return n - 1;
         /**add two numbers entered*/
         public static int add(int n, int m)
              if (m == 0)
                   return n;
              else
                   return suc(add(n, pre(m)));
         /**subtract two numbers entered*/
         public static int sub(int n, int m)
              if (n < m)
                   return 0;
              else if (m == 0)
                   return n;
              else
                   return pre(sub(n, pre(m)));
         /**multiply two numbers entered*/
         public static int mult(int n, int m)
              if (m == 0)
                   return 0;
              else
                   return add(mult(n, pre(m)), n);
         /**divide two numbers entered*/
         public static int div(int n, int m)
              if (n < m)
                   return 0;
              else
                   return suc(div(sub(n, m), m));
         /**raise first number to second number*/
         public static int exp(int n, int m)
              if (m == 0)
                   return 1;
              else
                   return mult(exp(n, pre(m)), n);
         /**log of number entered*/
         public static int log(int n)
              if (n < 2)
                   return 0;
              else
                   return suc(log(div(n, 2)));
         /**square root of number entered*/
         public static int sqrt(int n)
              if (n == 0)
                   return 0;
              else
                   return sqrt(div(n, ));
         /**remainder of first number entered divided by second number*/
         public static int mod(int n, int m)
              if (n < m)
                   return 0;
              else
                   return mod(div(n, pre(m)), m);
         public static void prt(String s)
              System.out.print(s);
         public static void prtln(String s)
              System.out.println(s);
         public static void main(String [ ] args)
              prtln("Welcome to the amazing calculator");
              prtln("It can add, multiply and do powers for");
              prtln("naturals (including 0). Note that all the");
              prtln("HARDWARE does is add 1 or substract 1 to any number!!");
              in = new BufferedReader(new InputStreamReader ( System.in ) );
              int It;
              while ( (It = getOp()) >= 0)
                   prt("" + It + "\n");
            private static int getOp( )
            int first, second;
            String op;
            try
                System.out.println( "Enter operation:" );
                do
                    op = in.readLine( );
                } while( op.length( ) == 0 );
             System.out.println( "Enter first number: " );
                first = Integer.parseInt( in.readLine( ) );
                System.out.println( "Enter second number: " );
                second = Integer.parseInt( in.readLine( ) );
             prtln("");
             prt(first + " " + op + " " + second + " = ");
                switch( op.charAt( 0 ) )
                  case '+':
                    return add(first, second);
                  case '-':
                       return sub(first, second);
                  case '*':
                    return mult(first, second);
                  case '/':
                       return div(first, second);
                  case '^':
                    return exp(first, second);
                  case 'v':
                       return log(first);
                  case 'q':
                       return sqrt(first);
                  case '%':
                       return mod(first, second);
                  case 's':
                       return suc(first);
                  case 'p':
                       return pre(first);
                  default:
                    System.err.println( "Need +, *, or ^" );
                    return -1;
            catch( IOException e )
                System.err.println( e );
                return  0;
    }

    Hi,
    Is there any one to make a program for me in Turbo
    C++ for Dos, which can calculate the square root of
    any number without using the sqrt( ) or any ready
    made functions.
    The program should calculate the s.root of the number
    by a formula or procedure defined by the user
    (programmer).
    Thanks.This is a Java forum!
    If you want Java help:
    1. Start your own thread.
    2. Use code tags (above posting box) if you post code.
    3. No one will write the program for you. We will help by answering your questions and giving advice on how to fix problems in code you wrote.
    4. The formula you need to implement is given above by dizzy.

  • How to find the user logged on to machines in last 2 weeks,

    Hi All,
    I am running SCCM 2012 R2. I need your expert advice in a SQL query/sccm report.
    I have a list of about 1000 users. I need to find out the all the machines names that these user logged on to in last 2 weeks
    Hope you can help.
    Thanks
    Manish

    Hello,
    First, I don't this could be done with SCCM.
    If you have SCOM implement, it may help in this case. SCOM forum:
    https://social.technet.microsoft.com/Forums/systemcenter/en-US/home?category=systemcenteroperationsmanager
    In addition, logon information could be found in event log of DC. Audit the log with script could be another workaround.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to find number of logged in users on NW04s?

    Ah, the fantastic search on sdn!!!
    I'm sure this has been asked before but I can't find it... (either the question or the answer)
    We have a J2EE application on NW2004s and I want to find how many users are logged on to the system.
    (it's not EP)
    Any quick answers will be appreciated and awarded.
    thnx
    kev

    Hello,
    to get list of active user in J2EE start telnet
    telnet <host> <telnet port>
    log in as j2ee_admin, administrator or with any user with administrator priviledges.
    to get list of available server nodes use command LSC.
    You can choose any node by using jump command followed by node id.
    execute for each node following commands:
    add servlet_jsp
    http_sessions full
    List of telnet commands:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/4e/6e723964c11d45ad3aeca71482f084/frameset.htm
    Drabik Radovan

  • How to find auditing SQL Text query information

    Hi,
    I am using auditing:
    SQL>select object_name,action_name,sql_text from dba_audit_trail;
    UPDATE SIS_STUDENT_COURSES SET DENIAL_DATE = :B5 , LETTER_GRADE = :B2 WHERE SEMESTER = :B4 AND COURSE_NO = 4035 AND STUDENT_ID = :B3 AND NVL(LETTER_GRADE, 'x') NOT IN(:B2 , :B1 );In the above query, I am unable to understand the B5,B1,B2,B3 etc..
    as my understand its bind variables but the in actual database query is not using any bind variable.
    How can I find the exact SQL Text? I mean what exact sql statement was raised by database user.

    Hi JIC,
    the bind values are in the sql_bind column in dba_audit_trail, the binds you see look like being generated by your application,
    however they may be system generated bind values if parameter cursor_sharing is being used. It is not recommended to
    disable cursor sharing just to see the original sql statement in the audit records. It generally makes no sense to try to reconstruct
    the statement 'as if' no binds were being used.
    greetings,
    Harm ten Napel

Maybe you are looking for

  • Delivery date grayed out in Purchase order change

    Hello,     We have a request to change the delivery date in the PO. While I tried to update the delivery date with the fast change, it did not update due to the delivery date field is grayed out. Please let me know how to enable this field so that I

  • Rotate Image Created with createImage() ?

    I've been looking around online for a way to do this, but so far the only things I have found are 50+ lines of code. Surely there is a simple way to rotate an image created with the createImage() function? Here's some example code with all the tediou

  • Daily Show comes in after the free Web version online, why is that?

    Bought pass for Daily Show and Colbert Report, first 2 came in fine but now they are a day late. I can watch for free on the Comedy Central site right away. Seems a waste since its a current affairs show, why pay if it's downloading late?

  • Mapping Windows Drive to Image Directory

    Several months ago I came across a thread (or perhaps a HOWTO) that outlined the process for mapping a network drive to the image directory. Unfortunately I have not been able to find it. Can someone familiar with that post point me in the right dire

  • How to create 3 Front offices in winclient

    Hi I have to , create 3 front offices for Call Center Agent, Supervisor & their Manager. What steps I have to follow to make these 3 offices & Manager can access all the 3. Thanks, Sush