Query to determine the no. of objects per object_type for a give

Hi,
Below is the query i m using to determine the no. of objects per object_type for a given owner in DBA_RECYCLEBIN.
SELECT count(OBJECT_NAME),TYPE from DBA_RECYCLEBIN
groupby TYPE
having OWNER='FRPDWSO';
ERROR at line 1:
ORA-00933: SQL command not properly endedI guess i m making a very silly mistake here, can anyone please help me solve this issue

Oracle GROUP BY HAVING can be used to limit the returned rows after the grouping. With Oracle GROUP BY HAVING, the HAVING clause is applied after the GROUP BY has taken place.
Oracle GROUP BY HAVING will group values that have a particular value. Oracle GROUP BY HAVING can be used in conjunction with other logical functions such as MIN, MAX, COUNT, and SUM.

Similar Messages

  • Reader Hive query - Cannot deserialize the current JSON object

    Hi all,
    I am trying to run a Reader module in MLStudio with a Hive query but it fails with Error 0000: Internal error.
    In the output log I see this error:
    [ModuleOutput] DllModuleHost Error: 1 : Program::Main encountered fatal exception: Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 0000: Internal error ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'Newtonsoft.Json.Linq.JToken' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
    [ModuleOutput] To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
    [ModuleOutput] Path 'FileStatus.length', line 3, position 14.
    But I don't see any configuration to change any JSON settings.
    What am I doing wrong? Can anyone help me?
    Thanks,
    Csaba
    PS: Using the Hive Editor I can select from my table without any problems.

    Can you let us know if you are still encountering this error? It doesn't look the error is due to user error.

  • Determine the fax number or EMAIL address for pur docs

    Hi,
    I am trying to send pur doc via fax or EMAIL.
    I have created specific  message types for that purpose.
    The fax is created and sent to the default fax number / EMAIL address.
    I want the message to be sent to the same vendor but to other fax number or EMAIL address.
    I do not want to create a spereate partner for that purpose. I want to add fax number or EMAIL number to the address detail of the vendor and I want to mark it as the fax number for the pur docs.
    In the UE/BADI I want to be able to determine the fax number / EMAIL address.
    Does any one know any BADI/UE enabeling me doing so?
    Best regards
    Shlomo Assouline

    Dear Ramesh,
    This is a known issue. What I am looking for is the place in which I can decide which one of the EMAIL/FAX that exists in the vendor master data to use.
    As you probably know A vendor can have more than one EMAIL/FAX but only one of them is signed as the default one. The EMAIL/FAX used as standard is the standard one.
    Best regards
    Shlomo Assouline

  • How to determine the time duration of each job for a particular report

    Hi guys,
    I am facing a very interesting problem which I want to share with all of you-hoping to get some input from you
    enlightened fellas :).
    I have vendor and vendor sub-range maintained in one custom table. For each vendor I have got article site combination maintained in another table. The thing is I have to execute this program in background. Now for each vendor I may have only 1 article or multiple articles. So if I schedule the job for 60 min. say then for 1 article the time alloted will be too big and for multiple articles the time alloted may prove to be too small. Another thing from a functional point of view is a vendor which has 1 article today may have more articles added to his name tomorrow (if the customer likes his product the company may buy more from him). So the point is we have to dynamically adjust the time alloted for each job.
    I could not find any utility in ABAP which can do this.
    Can any of you please help me?
    Thanks a lot !
    Hasso.
    Edited by: Hasso14 on Apr 28, 2011 3:06 PM

    Exaactly-only I want to find the best time needed to finish for an article or multiple articles i.e I do not know how many articles will be available for each vendor beforehand before doing a select on the 2 tables. But once I know the number (maybe 1 or more than 1) I want to allot the best time for that article/lot of articles(maybe JOB_OPEN  technique ?).Also the number of articles may vary over time so the algorithm should take care of that too.-quite a tricky prob :)-I would request the others to see this reply which I think will clarify their doubts.
    Edited by: Hasso14 on Apr 28, 2011 9:03 PM

  • Query to determine the driver version on a client

    Hi,
    I am trying to query what wireless driver/firmware is installed on a client and I don't see an existing report for this. I have tried the SQL query below but it does not seem to be valid. Does anyone know of a way to get this information? I have read somewhere
    that it may involve sending a registry setting to the client via policy so that this can be reported but I was hoping that there is an easier way?
    TIA
    SELECT SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
    FROM SMS_R_System
    JOIN SMS_G_System_NETWORK_DRIVERS ON SMS_R_System.ResourceID = SMS_G_System_NETWORK_DRIVERS.ResourceID

    You will need a MOF Customization for this :
    http://blogs.technet.com/b/configmgr_geek_speak/archive/2013/11/10/inventorying-and-reporting-network-adapter-driver-details-and-how-to-report-only-the-wireless-type-in-configuration-manager-2012.aspx
    Benoit Lecours | Blog: System Center Dudes

  • Write a query to get the users those are not appliyed for the exam?

    hi frz i have two tables like User,UserHistory
    User table contains clmns--Uid,Uname
    UserHistory contain columns--Uid,Course,Status.
    so i want to write a query to find out those are not applied for the particlur course i want to found only those records from the two tables...

    Hello,
    The SQL Server forums are over here:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?&lt;=\G.{2})'|%{if($_){[char][int]&quot;0x$_&quot;}})

  • How to determine the system color and set them for my app?

    Hi,
    I'd like to set the colors of my application to the system's colors. Especially the backgrounds of my JPanels, JButtons and so on should look like in the operating system. If you change the systems color scheme, my application looks really wierd with it's grey canvas an components and the border and menu of the window is displayed in the system's colors.
    any idea??
    koem

    The UIManager only seems to have control over
    awt-controls. All swing controls are not listed, when
    you try this:
            UIDefaults defaults =
    UIManager.getLookAndFeelDefaults();
    for(Iterator i = defaults.keySet().iterator();
    ator(); i.hasNext();)
    String name = (String)i.next();
    System.out.println(name);
    }It would be nice to have it set globally somewhere in
    the program.
    koemActually, the truth is quite the opposite, the UIManager only has control over swing components.
    There are many ways you can set these globally. You can sublcass your own look and feel, use the system look and feel, call UIDefaults.put() etc.
    Graeme

  • What's the max RAM size per slot for 5k iMac

    Is it 8 X4=32 or 16 X4=64G?
    Planning to buy the 5k retina iMac but want to upgrade the RAMs by myself to save some $$$
    Thanks!

    max ax ram according to the Apple spec sheets is 32 GB. That's 4x8 GB

  • Determine max differences between times per day

    What is the simplest query to determine the max time between date fields per day? In other words we have records being entered all the time to a certain table. I want to watch that table to measure the max time at the end of the day between each record that was entered. I then want to go back historically and look at what the average for max times was.

    Test data:
    CREATE TABLE test274 AS
    WITH src AS(
    SELECT '10/19/2010 3:23:53 PM' dta from dual union all
    SELECT '10/19/2010 3:28:04 PM' from dual union all
    SELECT '10/19/2010 3:28:12 PM' from dual union all
    SELECT '10/19/2010 3:40:46 PM' from dual union all
    SELECT '10/19/2010 3:50:22 PM' from dual union all
    SELECT '10/19/2010 3:55:17 PM' from dual union all
    SELECT '10/19/2010 3:58:49 PM' from dual union all
    SELECT '10/19/2010 4:00:06 PM' from dual union all
    SELECT '10/19/2010 4:00:06 PM' from dual union all
    SELECT '10/19/2010 4:00:06 PM' from dual union all
    SELECT '10/19/2010 4:08:00 PM' from dual union all
    SELECT '10/19/2010 4:08:24 PM' from dual union all
    SELECT '10/19/2010 4:09:05 PM' from dual union all
    SELECT '10/19/2010 4:11:16 PM' from dual union all
    SELECT '10/19/2010 4:19:36 PM' from dual union all
    SELECT '10/19/2010 4:29:32 PM' from dual union all
    SELECT '10/19/2010 4:34:05 PM' from dual union all
    SELECT '10/19/2010 4:47:33 PM' from dual union all
    SELECT '10/19/2010 4:47:33 PM' from dual union all
    SELECT '10/19/2010 4:48:07 PM' from dual union all
    SELECT '10/19/2010 4:49:55 PM' from dual union all
    SELECT '10/19/2010 4:55:44 PM' from dual union all
    SELECT '10/19/2010 5:01:20 PM' from dual union all
    SELECT '10/19/2010 5:13:42 PM' from dual union all
    SELECT '10/19/2010 5:13:42 PM' from dual union all
    SELECT '10/19/2010 5:16:31 PM' from dual union all
    SELECT '10/19/2010 5:21:28 PM' from dual union all
    SELECT '10/19/2010 6:44:38 PM' from dual union all
    SELECT '10/19/2010 6:46:54 PM' from dual union all
    SELECT '10/19/2010 6:48:54 PM' from dual union all
    SELECT '10/19/2010 7:04:23 PM' from dual union all
    SELECT '10/19/2010 7:13:43 PM' from dual union all
    SELECT '10/19/2010 7:53:18 PM' from dual union all
    SELECT '10/19/2010 11:42:29 PM' from dual union all
    SELECT '10/20/2010 7:32:32 AM' from dual union all
    SELECT '10/20/2010 7:57:51 AM' from dual union all
    SELECT '10/20/2010 8:02:38 AM' from dual union all
    SELECT '10/20/2010 8:22:32 AM' from dual union all
    SELECT '10/20/2010 8:25:29 AM' from dual union all
    SELECT '10/20/2010 8:37:51 AM' from dual union all
    SELECT '10/20/2010 8:37:51 AM' from dual union all
    SELECT '10/20/2010 9:18:40 AM' from dual union all
    SELECT '10/20/2010 9:37:21 AM' from dual union all
    SELECT '10/20/2010 9:41:30 AM' from dual union all
    SELECT '10/20/2010 10:07:21 AM' from dual union all
    SELECT '10/20/2010 10:24:51 AM' from dual union all
    SELECT '10/20/2010 10:37:48 AM' from dual union all
    SELECT '10/20/2010 10:42:35 AM' from dual union all
    SELECT '10/20/2010 11:02:45 AM' from dual union all
    SELECT '10/20/2010 11:02:54 AM' from dual union all
    SELECT '10/20/2010 11:07:10 AM' from dual union all
    SELECT '10/20/2010 11:29:08 AM' from dual union all
    SELECT '10/20/2010 11:29:31 AM' from dual union all
    SELECT '10/20/2010 11:42:30 AM' from dual union all
    SELECT '10/20/2010 11:42:30 AM' from dual union all
    SELECT '10/20/2010 11:46:49 AM' from dual union all
    SELECT '10/20/2010 11:58:00 AM' from dual union all
    SELECT '10/20/2010 12:17:43 PM' from dual union all
    SELECT '10/20/2010 12:20:56 PM' from dual union all
    SELECT '10/20/2010 1:24:48 PM' from dual union all
    SELECT '10/20/2010 1:32:38 PM' from dual union all
    SELECT '10/20/2010 1:38:35 PM' from dual union all
    SELECT '10/20/2010 1:41:23 PM' from dual union all
    SELECT '10/20/2010 2:09:40 pm' from dual union all
    select '10/20/2010 2:20:29 PM' from dual
    select to_date( dta, 'mm/dd/yyyy hh:mi:ss am', 'nls_date_language = american' ) dta
    from src
    ;You didn't mention your Oracle version, so this query was tested on Oracle 11.2:
    SELECT trunc(dta) dta,
           NVL( max( diff ), numtodsinterval( 0, 'day' ) ) maxdiff
    FROM (
        SELECT dta,
               numtodsinterval(
                    dta - ( lag( dta) over ( partition by trunc(dta) order by dta )),
                    'day'
               ) diff
        FROM test274
    GROUP BY trunc(dta)
    DTA                       MAXDIFF    
    2010/10/19                0 3:49:11.0
    2010/10/20                0 1:3:52.0

  • How to find the number of records per months  in cube

    Hi,
      how to find the number of records per months for my all cubes?
      Can i use the ListCube transaction to find totl number f records per cube monthwise ?
    Jimmy

    Hi,
    Here is a program to generate no of records and list of ODS and Cubes in Active version.Schedule this program in background and create a cube to load this information and schedule to the data from the file generated by the program. Schedule this all per you requirement.
    1.Copy the code into your Z<programname> from Se38.
    2.change the FILENAME in CALL FUNCTION 'GUI_DOWNLOAD' in the program to the location from where you can pick the information to load data to cube(eg Application server).
    3.Save program.
    4.Schedule the program in background as required
    5.Create cube with infoobjects to hold no of records and Infoprovider name
    6.Load this cube based on event after the program job is done.
    Hence you can report on this cube to see no of records in  CUBE or ODS in your box.
    Please find the code below.
    Cheers,
    Kavitha Kamesh.
    types: begin of itabs ,
          tabname type dd02l-tabname,
          end of itabs.
    data: itab type itabs occurs 0 with header line.
    data: counter type i.
    data: begin of itab1 occurs 0,
    tabname type dd02l-tabname,
    counter type i,
    end of itab1.
    DATA: ITABTABNAME TYPE STRING.
    DATA: LENGTH TYPE I.
    DATA: OBJECT(30).
    data: str(6) type c.
    select  tabname from dd02l into table itab where ( tabname LIKE  '/BIC/F%' or tabname LIKE  '/BIC/A%00' )
    and TABCLASS = 'TRANSP' and AS4LOCAL = 'A'.
    loop at itab.
      select count(*) from (itab-tabname) into counter.
      str = itab-tabname.
      if str = '/BIC/F'.
    LENGTH  = STRLEN( ITAB-TABNAME ).
      SHIFT  itab-tabname BY 6 PLACES LEFT.
    ELSEIf  str = '/BIC/A'.
      SHIFT  itab-tabname BY 6 PLACES LEFT.
      LENGTH  = STRLEN( ITAB-TABNAME ).
    LENGTH = LENGTH - 2.
    endif.
      itab1-tabname = itab-tabname(LENGTH).
      append itab1.
      itab1-counter = counter.
      clear itab-tabname.
      clear:  COUNTER.
    endloop.
    *********** itab1
    loop at itab1.
    write:/ itab1-tabname, itab1-counter.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                    =
        FILENAME                        = 'c:records.xls'
        FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
        WRITE_FIELD_SEPARATOR           = ','
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *   WK1_N_FORMAT                    = ' '
    *   WK1_N_SIZE                      = ' '
    *   WK1_T_FORMAT                    = ' '
    *   WK1_T_SIZE                      = ' '
    * IMPORTING
    *   FILELENGTH                      =
      TABLES
        DATA_TAB                        = itab1
    *   FIELDNAMES                      =
    * EXCEPTIONS
    *   FILE_WRITE_ERROR                = 1
    *   NO_BATCH                        = 2
    *   GUI_REFUSE_FILETRANSFER         = 3
    *   INVALID_TYPE                    = 4
    *   NO_AUTHORITY                    = 5
    *   UNKNOWN_ERROR                   = 6
    *   HEADER_NOT_ALLOWED              = 7
    *   SEPARATOR_NOT_ALLOWED           = 8
    *   FILESIZE_NOT_ALLOWED            = 9
    *   HEADER_TOO_LONG                 = 10
    *   DP_ERROR_CREATE                 = 11
    *   DP_ERROR_SEND                   = 12
    *   DP_ERROR_WRITE                  = 13
    *   UNKNOWN_DP_ERROR                = 14
    *   ACCESS_DENIED                   = 15
    *   DP_OUT_OF_MEMORY                = 16
    *   DISK_FULL                       = 17
    *   DP_TIMEOUT                      = 18
    *   FILE_NOT_FOUND                  = 19
    *   DATAPROVIDER_EXCEPTION          = 20
    *   CONTROL_FLUSH_ERROR             = 21
    *   OTHERS                          = 22
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to determine the correct moment when Word has finished to write to a docx file

    Hello,
    we are currently passing a document to Microsoft Word for editing and want to take back the changed/saved document when editing is finished. But it seems we have issues to determine the correct moment when Word has for sure saved all changes and
    it is save to take back the file.
    To pass the document to Word we use ShellExecuteEx with the file name. Then we use the Running Objects Table and a File Moniker to wait for the file to be closed.
    Sample code:
    HRESULT hRes = S_OK; 
    CComPtr<IMoniker> spIMoniker; 
    CComPtr<IRunningObjectTable> pRT; 
    hRes = GetRunningObjectTable(0, &pRT); 
    if (FAILED(hRes))
       TWTHROW1(TWERR_ANY_ERROR, hRes, _T("GetRunningObjectTable failed."));
    hRes = ::CreateFileMoniker(m_strTempFilename.AllocSysString(), &spIMoniker);
    if (FAILED(hRes))
       TWTHROW1(TWERR_ANY_ERROR, hRes, _T("CreateFileMoniker failed."));
    while (S_OK == pRT->IsRunning(spIMoniker) && !m_bShutdown)
       Sleep(500);
       continue;
    So we wait for the file to be removed from the Running Objects Table and additionally wait until we can get exclusive access to the file before we take over the changed file. But still it seems to happen that we take the file too early. Hence it
    seems the file is removed from the Running Objects Table by Microsoft Word before saving the file has completed.
    Is this behaviour of Microsoft Word by design? What is the best practice to identify the moment in time when writing the file has completed. Some other applications like Winzip seem to do the same thing.
    Thanks,
    Wolfgang

    Hi WolfGang,
    Thanks for posting in MSDN forum.
    Based on the description, you are developing application with Windows API. I would like to move it to
    General Windows Desktop Development Issues forum.
    The reason why we recommend posting appropriately is you will get the mostqualified pool of respondents, and other partners who read the forums regularly can either share their knowledge
    or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    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.

  • How do I programmatically determine the cursor legend refnum?

    I am determining the controls and such of a front panel programmatically as I have a need to be able to modify panels quickly without the manual editing necessary. I need to know how to determine the refnum of a cursor legend for a waveform or XY graph in a programmatic fashion rather than by creating a reference node.

    That is a good question. The cursor legend reference is not returned if you get a list of all the object references. The graph is, so you can get its reference and get the cursor legend reference from it. You probably only need to look at the ones with a visible property set to true.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to find the text id & object name to be used with read_text  ?

    Hi All
    how to determine the text id & object name associated with PO to be used with FM read_text  ?
    Regards
    Jaman

    Hi,
    For PO there will be Header Texts and Item texts.
    For header texts just Take the PO number as TDNAME.
    for Item texts Conactenate the PO number and Item Number and use as TDNAME.
    in ME23N Go to any text.Double click on it
    It will take you to text editor.
    GOTO-> header
    it will display the TEXT  ID,TEXTNAME,LANG  and TEXT OBJECT etc
    Similarly for every  text you will find and use;
    Regards,
    Anji

  • Determine the read/unread status of a message in a users inbox

    Is there any way to see the current status of a read/unread message attribute. The email is confidential and the user is not supposed to see it. The sender wants assurance that the email was not read. He wont accept a screen shot as the email could always
    be marked as unread.  I have tried MSMAPI but the attribute doesn't seem to be listed, though I cant determine the Hex code meaning. Thanks for any leads.

    "read"
    is just a flag on the message (PR_MESSAGE_FLAGS), it can be changed and it cannot guarantee you if the message was actually read. Confidential mail should be encrypted or IRM-protected, so you can blame the sender as much as the recipient.

  • Need  the query to calculate the time taken to excute it.

    hi all,
    i need the query to calculate the time taken to excute it.
    for ex:
    select * from emp;
    how much time it will take to give o/p
    Thanks in advance
    satya

    Just to add to what was said - the execution can each time be DIFFERENT as the factors that governs performance are NOT CONSTANT.
    If Oracle has no idea how long the query is going to take before executing it, then how can you and your code know?
    Oracle's CBO estimates the cost (expense) of the query. This is an indication of how expensive a query is - and the more expensive the query, the more resources need to be used, the longer the query will take. The less expensive the query, the fewer resources it need, the faster it will take.
    And that is it. How fast or how slow? Oracle does not know. How much faster a query with a cost of 10,000 versus a query with a cost of 1? Oracle does not know.
    Why? Because the platform is not constant. Just what data is at this exact moment in the db buffer cache? Just how much CPU capacity is available for the new few seconds? Just what will the sustained throughput be of the I/O subsystem and channels for the next minute? Just how many memory pages need to be swapped between cache and memory? Etc. etc.
    All these factors change every single second. So forget about attempting to accurately calculate up-front the time it will take for a query. IT IS NOT POSSIBLE.

Maybe you are looking for