SQL query can be executed through TOAD but not through Discoverer

Hallo, everybody:
Got another problem. A SQL query can be executed through TOAD, but when I want to execute it by a worksheet of Discoverer Plus, it always shows there is no data.
PS: I copied this query from Discoverer Plus to TOAD, which means, this query is generated through the Discoverer. Does anybody know about how could it be?
Thank you.
Geng

Hi,
If you are able to get data in TOAD with the same user credential as that of Discoverer Plus then it will implies an issue with Discoverer.
Else it is privilege issue , your TOAD user has select privilege to the base objects (tables/views etc) where as your Disoverer used does not.
Compare the privileges granted to these 2 users and you can narrow done to the issue .
Thanks,
Sutirtha

Similar Messages

  • SQL Query if or case omit fields but not line.

    I have the below SQL Query my goal is to not show Aging or Storage Date if QTY is greater than 0. 
    I know I can omit the line but I still want to show just not those two fields is this possible?
    Select sl.SKU, sl.LOC, (editdate) AS "Storage Date", CAST(sysdate-editdate AS DECIMAL(10,2)) AS Aging, sl.QTY, sl.QTYALLOCATED
    From skuxloc sl
    Where sl.SKU in ('315A6112-29','315A6112-33')
    This is what I'm looking for:
    Work Smarter Not Harder

    Are you working with OracleSQL, There is no sysdate in SQL Server.
    Select sl.SKU, sl.LOC,
    case when sl.QTY =0 then '' else editdate end AS 'Storage Date',
    case when sl.QTY =0 then '' else CAST(sysdate-editdate AS DECIMAL(10,2)) END
    AS Aging,
    sl.QTY, sl.QTYALLOCATED
    From skuxloc sl
    Where sl.SKU in ('315A6112-29','315A6112-33')
    If you are working with Oracle, You can try decode.
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions040.htm
    http://www.dba-oracle.com/t_decode_function.htm
    --Prashanth

  • Sql query to identify transports in dev but not in prod

    I use sqlplus to select fields from saperp.e070v so I can compare transports in prod with those in qa. The purpose is to identify those transports that I need to run when I H-copy prod to QA. I'm using this where clause (TRFUNCTION='K' OR TRFUNCTION='W') . Should I look at TRSTATUS? I'd appreciate any recommendations or ideas. I do not have access to ABAP.

    Thanks Markus.
    Here are the distinct codes I found. Are there any ot these That I need to be concerned about? Is there a Key/Legend for these?
    SQL> select distinct trstatus from saperp.e070v;
    T
    R
    D
    O
    SQL> select distinct trfunction from saperp.e070v;
    T
    W
    R
    P
    K
    D
    Q
    M
    T
    X
    F
    S
    T
    G
    12 rows selected.
    SQL> describe saperp.e070v;
    Name                                      Null?    Type
    TRKORR                                    NOT NULL VARCHAR2(20)
    TRFUNCTION                                NOT NULL VARCHAR2(1)
    TRSTATUS                                  NOT NULL VARCHAR2(1)
    TARSYSTEM                                 NOT NULL VARCHAR2(10)
    AS4USER                                   NOT NULL VARCHAR2(12)
    AS4DATE                                   NOT NULL VARCHAR2(8)
    AS4TIME                                   NOT NULL VARCHAR2(6)
    STRKORR                                   NOT NULL VARCHAR2(20)
    LANGU                                     NOT NULL VARCHAR2(1)
    AS4TEXT                                   NOT NULL VARCHAR2(60)
    CLIENT                                    NOT NULL VARCHAR2(3)
    SQL>
    F
    S
    T
    G
    12 rows selected.
    SQL> describe saperp.e070v;
    Name                                      Null?    Type
    TRKORR                                    NOT NULL VARCHAR2(20)
    TRFUNCTION                                NOT NULL VARCHAR2(1)
    TRSTATUS                                  NOT NULL VARCHAR2(1)
    TARSYSTEM                                 NOT NULL VARCHAR2(10)
    AS4USER                                   NOT NULL VARCHAR2(12)
    AS4DATE                                   NOT NULL VARCHAR2(8)
    AS4TIME                                   NOT NULL VARCHAR2(6)
    STRKORR                                   NOT NULL VARCHAR2(20)
    LANGU                                     NOT NULL VARCHAR2(1)
    AS4TEXT                                   NOT NULL VARCHAR2(60)
    CLIENT                                    NOT NULL VARCHAR2(3)
    SQL>

  • Query can run in Oracle 10g but very slow in 11g

    Hi,
    We've just migrated to Oracle 11g and we noticed that some of our view are very slow (it takes seconds in 10g and takes 30 minutes in 11g), and the tables are using the local table.
    Do any of you face the same issue?
    This is our query:
    SELECT
    A.wellbore
    ,a.depth center
    ,d.MD maxbc
    ,d.XDELT xbc
    ,d.YDELT ybc
    ,e.MD minac
    ,e.XDELT xac
    ,e.YDELT yac
    from
    table_A d,table_A e, table_B a
    where a.wellbore = d.WELLBORE (+)
    and a.wellbore = e.WELLBORE(+)
    and d.MD = (select max(MD) from table_A b where b.MD < a.depth and
    d.wellBORE = b.wellBORE)
    and e.md = (select min(md) from table_A c where c.MD > a.depth and
    e.wellBORE = c.wellBORE);

    Thanks I will move to the correct one..
    Rafi,
    Build the Indexes and it is still slow. I am querying from a view from another database, which is in 10g instances.
    Moved: Query can run in Oracle 10g but very slow in 11g
    Edited by: 924400 on Apr 1, 2012 6:03 PM
    Edited by: 924400 on Apr 1, 2012 6:26 PM

  • Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • On imac 10.6.8 using current version of Aperture.  How can I access the Aperture Library  on my external hard drive that I use with time machine for backup?  I can only access the application but not the library..

    On imac 10.6.8 using current version of Aperture.  How can I access the Aperture Library  on my external hard drive that I use with time machine for backup?  I can only access the application but not the library..

    Go into Time Machine (the program not the bundle on the extrnal disk) and using Time Machine's browser go to the Folder where the library lives. You could look in the library bundle in Time Machine but that won't really tell you much,
    If you want to make sure it truely has backed up your library you will need to restore it and open the restored library with Aperture.
    If all this still has you confused you need to read up on Time Machine in order to get a feel for how it works, for what it is doing and for how to restore files from it.

  • Why can I sync a movie but not TV shows on my nano (7th gen)?

    I am using iTunes 11.0 and can sync a movie (Miracle on 34th Street) to my new ipod nano 7th gen but when I try a TV Show (a Planet Earth HD episode) or even a brief video clip taken with my camara I am told that such an action is not permitted on this ipod.  So why can I sync a movie but not TV shows on my nano (7th gen)?  Thank you.

    Before you can sync video files, it must be converted into a format compatible with ipod.  If you can’t sync a video convert it by doing the following:
    In iTunes, select the video you want to convert. Do one of the following then sync again after:
    1) Choose File > Create New Version > Create iPod or iPhone Version.
    2) Choose File > Create New Version > Create iPad or Apple TV Version.
    I hope this works.

  • LR 5.6 on Mac desktop all of a sudden will not read any card from any reader but will work on my laptop. I can work on previous images but not import new ones. Even if I create a catalog on laptop and import to my desktop on a thumb drive, the images are

    LR 5.6 on Mac desktop all of a sudden will not read any card from any reader but will work on my laptop. I can work on previous images but not import new ones. Even if I create a catalog on laptop and import to my desktop on a thumb drive, the images are only accessible as long as the thumb drive is inserted.

    Sounds like you may need to repair the Disk Permissions on your drive where your images are stored.

  • TS1702 help, are you having the same problem? iPad 2 calendar, can't get the month of March, can get days in March, but not month view. Any suggestions, thank u.

    help, are you having the same problem? iPad 2 calendar, can't get the month of March, can get days in March, but not month view. Any suggestions, thank u.

    Hi melbernai - not sure if you've solved this problem yet. I had the exact same problem recently with my 2nd Gen iPod Nano. I solved it yesterday by simply updating iTunes to the most recent version, after which I could get rid of the register screen. The only other thing I needed to do to add my custom playlists was select "Manually manage music" on the screen for my iPod, since it had been in an automatic synching mode since the problem occurred.

  • Is there a way to repeat an activity in the calendar monthly on the same day, i.e., the 2nd Wednesday of each month?  I can repeat on the date but not the day of the month.

    Is there a way to repeat an activity in the calendar monthly on the same day, i.e., the 2nd Wednesday of each month?  ( I can repeat on the date but not the day of the month.)

    Not with the stock calendars app.

  • I am at capacity How can I free up space but not delete music

    My Ipad is at 55.4 gb used 24 gb in music alone. 2.7 gb available so can't do anything  Ipad shuts itself down and won't let me open mail, use facebook, safari.How can I free up space but not delete songs in library   

    Unless you are attempting to download a sizable file, 2.7 GB should be more than enough to continue fucntioning. Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray BEFORE doing the reset.

  • My ipad is freez...it only show a home screen. but i can turn off my ipad but not shut down...and i went to my computer and i go to itune. i try to restart my ipad but it say turn off your.find my iphone..but i cant my ipad is freezing.can help me plz.

    my ipad is freez...it only show a fome screen. but i can turn off my ipad but not shut down...and i went to my computer and i go to itune. i try to restart my ipad but it say turn off your.find my iphone..but i cant my ipad is freezing.can help me plz.

    Have you tried to reset it? Hold down the sleep and home keys for about 20 seconds and see if you can get it to reboot.

  • My ipad is freez...it only show a fome screen. but i can turn off my ipad but not shut down...and i went to my computer and i go to itune. i try to restart my ipad but it say turn off your.find my iphone..but i cant my ipad is freezing.can help me plz.

    my ipad is freez...it only show a fome screen. but i can turn off my ipad but not shut down...and i went to my computer and i go to itune. i try to restart my ipad but it say turn off your.find my iphone..but i cant my ipad is freezing.can help me plz.plz help me.................thx u

    Option 1
    Try force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You need to be patient and repeat the above many times to recover your iPad

  • Why can I receive text messages but not send?

    Why can I receive text messages but not send. This has been happening for about 10 hours.

    Thanks for the response. Must be smart phones. My daughter has a dumb phone and she can send out. I tried deleting my text messages on the Verizon website, but they won’t delete. It must be on their end. Chat line was busy forever, until they shut it down.
    Jennifer

  • ¿Dear Sirs, I can create with "Photoshop Elements 12", a PDF file of several pages?. I can create a "pdf" file, but not of several pages. Thank you

    ¿Dear Sirs,
    I can create with "Photoshop Elements 12", a PDF file of several pages?.
    I can create a "pdf" file, but not of several pages.
    Thank you
    Valentín Uriarte

    This is the Photoshop Elements forum.
    If you are using Acrobat, ask Here:
    Acrobat

Maybe you are looking for

  • How to save Jobs with different priority level in a Queue?

    Hi, Friends, I have a set of Job (see below) objects. I would make a queue: if they have the save priority level, first in and first out. this is easy to do by ArrayList. however, If they have different priority level, I would like make the Jobs with

  • HP Laserjet 2840 not recognized

    I have a HP Color LaserJet 2840 All-in-One Printer connected to my HP Pavilion d4790y CTO Desktop PC. Frequently when I go to print something from the web or Word, no printer icon appears and nothing prints. When I open the printers folder, there is

  • I have PIXMA MG5320 and I am running Win 8. Software cd does not install. I want to scan, but havin

    I have PIXMA MG5320  and I am running Win 8. Software cd does not install. I want to scan, but having trouble. I insert USB stick into USB port on the printer. I select SCAn and then select USB.  I select  " <i>" key. I do not find any data on the US

  • Error Message iPhone cannot be synced, not enough access privileges

    I have a dual boot WinXP Pro & Vista Ultimate laptop (ThinkPad X60) on separate HDDs. Have loaded iTunes 8.02 on both drives in both OS's. No problem synching my iPhone in iTunes in WinXP. However, in Vista, I can back up, but cannot synch, the iPhon

  • Skype on Panasonic P50VT20B no longer able to log ...

    I've had skype working fine on my TV since I first got it over 3 years ago with the official Panasonic camera, then the other day I checked and it wasn't logged in so re-enetered my account details and then it came up with the "Cannot sync contact li