How to list all available tables for user "karl"

How can I list all available tables (=table names) for user "karl"?
Nice to have would be if (after each table name in another column of each row) the number of data rows in this table can be listed similar to:
TABLE NUM ROWS
TESTA 12
TESTB 3455
ANOTHERTAB 234
How can I do this?

from Laurent Schneider
http://laurentschneider.com/wordpress/2007/04/how-do-i-store-the-counts-of-all-tables.html
SQL> select
  2    table_name,
  3    to_number(
  4      extractvalue(
  5        xmltype(
  6 dbms_xmlgen.getxml('select count(*) c from '||table_name))
  7        ,'/ROWSET/ROW/C')) count
  8  from user_tables;
TABLE_NAME                      COUNT
DEPT                                4
EMP                                14
BONUS                               0
SALGRADE                            5

Similar Messages

  • How to view all available Infotypes for HR ?

    Hi All,
    I want to view all available infotypes for HR in SAP GUI.
    What is the transaction code for this?
    OR
    What are the steps to carry out?
    Thanks.

    Hi Tiruna,
    Click-->
    http://help.sap.com/saphelp_erp2005/helpdata/en/a0/524035634df01ee10000009b38f889/frameset.htm
    You wii see all what you need.
    Good kuck, Massimo

  • How to list all the Fields for an Active Directory Object

    How do I list all the fields that an Active Directory object contains? I know the most common ones, but would like to enumerate through all the fields and obtain the type of fields and their values...

    Here is my complete code - I only put snippets so that the post was not too huge...
    Option Explicit
    Const ADS_SCOPE_SUBTREE = 2
    Const ForReading = 1, ForWriting = 2, ForAppending = 8
    Dim adoCommand, adoConnection, adoRecordSet
    Dim dtmDate, dtmValue
    Dim j
    Dim lngBias, lngBiasKey, lngHigh, lngLow, lngValue
    Dim objADObject, objClass, objDate, objFile, objFSO, objRootDSE, objShell
    Dim pathToScript
    Dim strAdsPath, strConfig, strDNSDomain, strHex, strItem, strProperty, strValue
    Dim strFilter, strQuery
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("Wscript.Shell")
    pathToScript = objShell.CurrentDirectory
    Set objFile = objFSO.CreateTextFile(pathToScript & "\TestAD.csv")
    ' Determine Time Zone bias in local registry.
    ' This bias changes with Daylight Savings Time.
    lngBiasKey = objShell.RegRead("HKLM\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias")
    If (UCase(TypeName(lngBiasKey)) = "LONG") Then
    lngBias = lngBiasKey
    ElseIf (UCase(TypeName(lngBiasKey)) = "VARIANT()") Then
    lngBias = 0
    For j = 0 To UBound(lngBiasKey)
    lngBias = lngBias + (lngBiasKey(j) * 256^j)
    Next
    End If
    ' Determine configuration context and DNS domain from RootDSE object.
    Set objRootDSE = GetObject("LDAP://RootDSE")
    strConfig = objRootDSE.Get("configurationNamingContext")
    strDNSDomain = objRootDSE.Get("defaultNamingContext")
    Set adoCommand = CreateObject("ADODB.Command")
    Set adoConnection = CreateObject("ADODB.Connection")
    adoConnection.Provider = "ADsDSOObject"
    adoConnection.Open "Active Directory Provider"
    adoCommand.ActiveConnection = adoConnection
    adoCommand.CommandText = "SELECT * FROM 'LDAP://" & strDNSDomain & "'WHERE objectClass=user'"
    adoCommand.Properties("Page Size") = 1000
    adoCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
    Set adoRecordSet = adoCommand.Execute
    Set adoRecordSet = adoCommand.Execute
    adoRecordSet.MoveFirst
    Do Until adoRecordSet.EOF
    strAdsPath = adoRecordSet.Fields("ADsPath").Value
    ' Bind to Active Directory object specified.
    Set objADObject = GetObject(strAdsPath)
    Set objClass = GetObject(objADObject.Schema)
    ' Write which object is grabbed from AD
    objFile.Write(Replace(strAdsPath, ",", ";;;"))
    ' Enumerate mandatory object properties.
    For Each strProperty In objClass.MandatoryProperties
    On Error Resume Next
    strValue = objADObject.Get(strProperty)
    If (Err.Number = 0) Then
    On Error GoTo 0
    If (TypeName(strValue) = "String") Or (TypeName(strValue) = "Long") Or (TypeName(strValue) = "Date") Then
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
    ElseIf (TypeName(strValue) = "Byte()") Then
    strHex = OctetToHexStr(strValue)
    objFile.Write("," & strProperty & "|||" & CStr(strHex))
    ElseIf (TypeName(strValue) = "Variant()") Then
    For Each strItem In strValue
    On Error Resume Next
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
    If (Err.Number <> 0) Then
    On Error GoTo 0
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    On Error GoTo 0
    Next
    ElseIf (TypeName(strValue) = "Boolean") Then
    objFile.Write("," & strProperty & "|||" & CBool(strValue))
    Else
    objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
    End If
    Else
    Err.Clear
    sColl = objADObject.GetEx(strProperty)
    If (Err.Number = 0) Then
    For Each strItem In sColl
    objFile.Write("," & strProperty & "|||" & CStr(strItem))
    If (Err.Number <> 0) Then
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    Next
    On Error GoTo 0
    Else
    Err.Clear
    Set objDate = objADObject.Get(strProperty)
    If (Err.Number = 0) Then
    lngHigh = objDate.HighPart
    If (Err.Number = 0) Then
    lngLow = objDate.LowPart
    If (lngLow < 0) Then
    lngHigh = lngHigh + 1
    End If
    lngValue = (lngHigh * (2 ^ 32)) + lngLow
    If (lngValue > 120000000000000000) Then
    dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
    On Error Resume Next
    dtmDate = CDate(dtmValue)
    If (Err.Number <> 0) Then
    objFile.Write("," & strProperty & "|||<Never>")
    Else
    objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
    End If
    Else
    objFile.Write("," & strProperty & "|||" & FormatNumber(lngValue, 0))
    End If
    Else
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    Else
    On Error GoTo 0
    objFile.Write("," & strProperty)
    End If
    On Error GoTo 0
    End If
    End If
    Next
    ' Enumerate optional object properties.
    For Each strProperty In objClass.OptionalProperties
    On Error Resume Next
    strValue = objADObject.Get(strProperty)
    If (Err.Number = 0) Then
    On Error GoTo 0
    If (TypeName(strValue) = "String") Then
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
    ElseIf (TypeName(strValue) = "Long") Then
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
    ElseIf (TypeName(strValue) = "Date") Then
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
    ElseIf (TypeName(strValue) = "Byte()") Then
    strHex = OctetToHexStr(strValue)
    objFile.Write("," & strProperty & "|||" & CStr(strHex))
    ElseIf (TypeName(strValue) = "Variant()") Then
    For Each strItem In strValue
    On Error Resume Next
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
    If (Err.Number <> 0) Then
    On Error GoTo 0
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    On Error GoTo 0
    Next
    ElseIf (TypeName(strValue) = "Boolean") Then
    objFile.Write("," & strProperty & "|||" & CBool(strValue))
    Else
    objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
    End If
    Else
    Err.Clear
    sColl = objADObject.GetEx(strProperty)
    If (Err.Number = 0) Then
    For Each strItem In sColl
    objFile.Write("," & strProperty & "|||" & CStr(strItem))
    If (Err.Number <> 0) Then
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    Next
    On Error GoTo 0
    Else
    Err.Clear
    Set objDate = objADObject.Get(strProperty)
    If (Err.Number = 0) Then
    lngHigh = objDate.HighPart
    If (Err.Number = 0) Then
    lngLow = objDate.LowPart
    If (lngLow < 0) Then
    lngHigh = lngHigh + 1
    End If
    lngValue = (lngHigh * (2 ^ 32)) + lngLow
    If (lngValue > 120000000000000000) Then
    dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
    On Error Resume Next
    dtmDate = CDate(dtmValue)
    If (Err.Number <> 0) Then
    objFile.Write("," & strProperty & "|||<Never>")
    Else
    objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
    End If
    Else
    objFile.Write("," & strProperty & "|||" & lngValue)
    End If
    Else
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    Else
    On Error GoTo 0
    objFile.Write("," & strProperty & "||| ")
    End If
    On Error GoTo 0
    End If
    End If
    Next
    objFile.WriteLine("")
    adoRecordSet.MoveNext
    Loop
    objFile.Close
    ' Function to convert OctetString (Byte Array) to a hex string.
    Function OctetToHexStr(arrbytOctet)
    Dim k
    OctetToHexStr = ""
    For k = 1 To Lenb(arrbytOctet)
    OctetToHexStr = OctetToHexStr _
    & Right("0" & Hex(Ascb(Midb(arrbytOctet, k, 1))), 2)
    Next
    End Function
    I have been able to obtain all the Computer, Contact, Group and OU objects without issue with this code...

  • How to List All SAP Messages For my Company

    Currently, I can only see those messages in my Inbox.   How can I see all messages submitted to SAP for ALL of my user's????

    If you are referring to messages posted on SDN then you will now and forever only see your own there is no link to a group.
    If you are referring to the SAP Service Marketplace I believe it's based on your permissions, in my previous life as a Basis Admin I saw all the messages for all the users but many of the developers could only see their own. Not sure how much has changed since 2004 though.

  • How to list all available backup sets

    Hi,
    we are using Oracle 11gR2. there is an requirement to list all avilable backup sets through shell scripts, we have retention period of 15days.
    below query gives me list of backup files but it was difficult to know which files was require for "catalog backuppiece"
    DBMS_RCVMAN.SETDATABASE(null,null,null,1536975101,null);
    SELECT PKEY,FNAME ,BS_COMPLETION_TIME
    FROM RMAN.RC_BACKUP_FILES
    where
    file_type='PIECE'
    AND
    STATUS = 'AVAILABLE';Backup sets looks below on Disk. all files starting with *"db11g_c-"* are required for catalog backuppiece.
    we like to know is there another better way to get this information. we want to list only those files required for cataloging.
    -rw-r-----   1 oracle   asmadmin     38M Sep 30 02:30 backup_ADB_DB_30092010_25lp5hle_1_1_69
    -rw-r-----   1 oracle   asmadmin    285M Sep 30 02:32 backup_ADB_DB_30092010_26lp5hm7_1_1_70
    -rw-r-----   1 oracle   asmadmin    145K Sep 30 02:32 backup_ADB_DB_30092010_27lp5hpr_1_1_71
    -rw-r-----   1 oracle   asmadmin    9.4M Sep 30 02:32 db11g_c-1536975101-20100930-00
    -rw-r-----   1 oracle   asmadmin     38M Oct  1 02:30 backup_ADB_DB_01102010_29lpaqdi_1_1_73
    -rw-r-----   1 oracle   asmadmin    286M Oct  1 02:32 backup_ADB_DB_01102010_2alpaqeb_1_1_74
    -rw-r-----   1 oracle   asmadmin    125K Oct  1 02:32 backup_ADB_DB_01102010_2blpaqi9_1_1_75
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  1 02:32 db11g_c-1536975101-20101001-00
    -rw-r-----   1 oracle   asmadmin     38M Oct  2 02:30 backup_ADB_DB_02102010_2dlpdepj_1_1_77
    -rw-r-----   1 oracle   asmadmin    287M Oct  2 02:32 backup_ADB_DB_02102010_2elpdeqd_1_1_78
    -rw-r-----   1 oracle   asmadmin    169K Oct  2 02:32 backup_ADB_DB_02102010_2flpdeub_1_1_79
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  2 02:32 db11g_c-1536975101-20101002-00
    -rw-r-----   1 oracle   asmadmin     48M Oct  3 02:30 backup_ADB_DB_03102010_2hlpg35h_1_1_81
    -rw-r-----   1 oracle   asmadmin    288M Oct  3 02:32 backup_ADB_DB_03102010_2ilpg36l_1_1_82
    -rw-r-----   1 oracle   asmadmin    123K Oct  3 02:32 backup_ADB_DB_03102010_2jlpg3aj_1_1_83
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  3 02:32 db11g_c-1536975101-20101003-00
    -rw-r-----   1 oracle   asmadmin     48M Oct  4 02:30 backup_ADB_DB_04102010_2llpinhk_1_1_85
    -rw-r-----   1 oracle   asmadmin    290M Oct  4 02:32 backup_ADB_DB_04102010_2mlpinio_1_1_86
    -rw-r-----   1 oracle   asmadmin    177K Oct  4 02:32 backup_ADB_DB_04102010_2nlpinmc_1_1_87
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 02:32 db11g_c-1536975101-20101004-00
    -rw-r-----   1 oracle   asmadmin    2.9M Oct  4 05:26 backup_ADB_DB_04102010_2plpj1s3_1_1_89
    -rw-r-----   1 oracle   asmadmin    289M Oct  4 05:28 backup_ADB_DB_04102010_2qlpj1s4_1_1_90
    -rw-r-----   1 oracle   asmadmin     13K Oct  4 05:28 backup_ADB_DB_04102010_2rlpj1vp_1_1_91
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 05:28 db11g_c-1536975101-20101004-01
    -rw-r-----   1 oracle   asmadmin    7.0K Oct  4 05:29 backup_ADB_DB_04102010_2tlpj21q_1_1_93
    -rw-r-----   1 oracle   asmadmin    3.0K Oct  4 05:29 backup_ADB_DB_04102010_2vlpj223_1_1_95
    -rw-r-----   1 oracle   asmadmin    289M Oct  4 05:36 backup_ADB_DB_04102010_2ulpj21r_1_1_94
    -rw-r-----   1 oracle   asmadmin    150K Oct  4 05:37 backup_ADB_DB_04102010_31lpj2gv_1_1_97
    -rw-r-----   1 oracle   asmadmin    289M Oct  4 05:37 backup_ADB_DB_04102010_30lpj22h_1_1_96
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 05:37 db11g_c-1536975101-20101004-02
    -rw-r-----   1 oracle   asmadmin    8.0K Oct  4 05:37 backup_ADB_DB_04102010_33lpj2h7_1_1_99
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 05:38 db11g_c-1536975101-20101004-03
    -rw-r-----   1 oracle   asmadmin    2.8M Oct  4 08:00 backup_ADB_DB_04102010_36lpjase_1_1_102
    -rw-r-----   1 oracle   asmadmin    290M Oct  4 08:02 backup_ADB_DB_04102010_37lpjasi_1_1_103
    -rw-r-----   1 oracle   asmadmin    270K Oct  4 08:02 backup_ADB_DB_04102010_38lpjb0g_1_1_104
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 08:02 db11g_c-1536975101-20101004-04
    -rw-r-----   1 oracle   asmadmin    215K Oct  4 08:14 backup_ADB_DB_04102010_3alpjbnl_1_1_106
    -rw-r-----   1 oracle   asmadmin    291M Oct  4 08:16 backup_ADB_DB_04102010_3blpjbnm_1_1_107
    -rw-r-----   1 oracle   asmadmin    110K Oct  4 08:16 backup_ADB_DB_04102010_3clpjbrl_1_1_108
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 08:16 db11g_c-1536975101-20101004-05
    -rw-r-----   1 oracle   asmadmin     34M Oct  5 02:30 backup_ADB_DB_05102010_3elplbtg_1_1_110
    -rw-r-----   1 oracle   asmadmin    291M Oct  5 02:32 backup_ADB_DB_05102010_3flplbu0_1_1_111
    -rw-r-----   1 oracle   asmadmin     27K Oct  5 02:32 backup_ADB_DB_05102010_3glplc1a_1_1_112
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  5 02:32 db11g_c-1536975101-20101005-00
    -rw-r-----   1 oracle   asmadmin     33M Oct  6 02:30 backup_ADB_DB_06102010_3ilpo09f_1_1_114
    -rw-r-----   1 oracle   asmadmin    291M Oct  6 02:32 backup_ADB_DB_06102010_3jlpo09u_1_1_115
    -rw-r-----   1 oracle   asmadmin     22K Oct  6 02:32 backup_ADB_DB_06102010_3klpo0dt_1_1_116
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  6 02:32 db11g_c-1536975101-20101006-00Edited by: Sachin B on Oct 6, 2010 2:50 AM

    i got the solution :)
    EXEC DBMS_RCVMAN.SETDATABASE(null,null,null,1536975101,null);
    SELECT PKEY,FNAME ,BS_COMPLETION_TIME
    FROM RMAN.RC_BACKUP_FILES
    where
    file_type='PIECE'
    AND
    STATUS = 'AVAILABLE'
    AND
    BS_KEY IN
    (SELECT BS_KEY FROM RC_BACKUP_SET where db_id='1536975101' AND CONTROLFILE_INCLUDED='BACKUP');

  • How to list all available classes?

    Hi *,
    Is there a possibility to list all the classes available to the JVM? I would like to have a list like this:
    java.lang.String
    java.util.Vector
    and so on.
    koem

    Good joke, but that is not what I meant :)
    I would like to get all the class-names at runtime. Because this list depends on the classpath it can be different with every invocation of the my program.

  • How to occupy all available space for a table

    I have a page fragment as shown below.
    Panel Group Layout - Scroll
    - Panel Header
    --- query component
    --- spacer
    --- Panel Collection
    ---- ADF Readonly Table
    I put this region in a jspx file like this
    Panel Stretch Layout
    - center contains region
    Obviously table does not occupy all the available space as there is no AutoHeightRows setting on table, and Panel Group Layout and Panel Header will not stretch it's children. It seems like there is no option to achieve this with ADF layout components.
    Chandresh

    Chandresh,
    For a faster response either reply in one of the pattern threads or, if the question does not apply specifically to one of the functional patterns, the post to the JDeveloper and ADF forum.
    It is not clear exactly what your question is. However, if I guess correctly, something like the following is desired?
    Remove Panel Group Layout - Scroll from the fragment. Add the Panel Stretch Layout as the outer layout component of the fragment. When a Named Criteria Data Control is dropped into the Top facet of the Panel Stretch Layout, a Panel Group Layout and Panel Header are added automatically.
    For the top facet of the Panel Stretch Layout, set the height to something that will show all of the search fields. This depends on the number of columns you have. Set the other facets to auto.
    Add the Panel Collection containing the table to the Center facet of the Panel Stretch Layout.
    Add the fragment to a taskflow.xml file and that file to the jspx file as desired. That should get close to what you want.

  • How to display all available data for KFs from different Cubes

    Hi,
    I am using a MultiProvider that consists of two InfoCubes. KF1 uses Cube1, KF2 uses Cube2 - characteristic Country exists in both cubes. I have the following data:
    KF1 - Country 1: 5
    KF1 - Country 3: 8
    KF1 - Country 4: 10
    KF2 - Coutnry 1: 9
    KF2 - Country 2: 7
    KF2 - Country 5: 3
    I have a query that uses Country as a drilldown characteristic (ROWS) and displays the values of KF1 and KF2 (COLUMNS) for each Country. However, instead of seeing data for Countries 1-5 I only see data where I have results for KF1 (Countries 1,3 and 4). The value for Country 1 for KF2 shows up correctly in the corresponding row, but Countries 2+5 aren't displayed for KF2. If I change the Access Type for Result Values from "Posted Values" to "Master Data" I get the correct result. However this is not feasible in the final setting due to the amount of data that has to be handled (MasterData setting will lead to crashes of the query due to maximum number of cells exceeded).
    Are there any other options to force the query to display values for all characteristic values where I have data for any KF?
    Thanks a lot for your help!
    Best regards,
    David

    As it turned out the issue was due to 2 restrictions on KPI2:
    1) Restriction to InfoProvider "Cube 2"
    2) Constant selection on two characteristics that have filters on a global level but which should not affect the display of the data for KF2
    Removing (1)+(2) provided the desired result.

  • How to list all the rows from the table VBAK

    Friends ,
    How to list all the rows from the table VBAK.select query and the output list is appreciated.

    Hi,
    IF you want to select all the rows for VBAK-
    Write-
    Data:itab type table of VBAK,
           wa like line of itab.
    SELECT * FROM VBAK into table itab.
    Itab is the internal table with type VBAK.
    Loop at itab into wa.
    Write: wa-field1,
    endloop.

  • Sunone Messaging Server 6.1--How to list all mail user's last login time

    hi,i want to know how to list all the mail user's last login time.
    There are more than 100000 mailbox accounts on our mail server,
    i want to know which account is not used for more than 2 or 3 years.
    thanks.

    http://wikis.sun.com/display/CommSuite/imsconnutil
    Somchai.

  • How to activate all inactive objects for current user

    Hi
    How to activate all inactive objects for current user ...
    ... I have found a (long winded) way to do this:
    - Environment / Inactive Objects
    - Add to Worklist
    - Display Worklist
    - Select All
    - Activate
    this will open a dialog titled "Inactive Objects for <username>"
    which has the exact functionality I need ... but I can't figure out how to get to this dialog directly - without so many intermediate steps
    the SAP docs repeatedly mention the ability to activate the inactive worklist - but do not mention how
    does anybody know the TCode for this dialog?
    thanks
    ps does the term "mass activation" apply to importing change requests rather than development activation?
    Edited by: FireBean500 on Jun 4, 2010 11:07 PM

    No other way. But usually it's far more simple as all objects are already in our own worklist.
    I wonder why your objects are not already in your worklist, as everytime you create or maintain an object, it is added to your worklist.

  • How to find all the tables associated for a particular transaction

    Hi-
    May I know how to find all the tables, related(foreign key) tables for a transaction within SAP GUI?
    Up to my technical knowledge, this can be achieved by looking database diagrams from DB level. But that would be for entire database as a whole. What I'm expecting is to see transaction level relative tables that too from SAP GUI. Please share the possibilities if any.
    Regards
    Sekhar

    Dear Micky Oestreich
    May be we possess expertise or high level experience, it should not show up in our way of communication. Every professional starts with the basic stuff to learn. When the question is raised in such minimum polite way, the same level of courtesy is expected in return. If you felt my question was basic, you might have refused it gently. If you are in good mood or bad mood it doesn't matters.
    Hi Vengal Rao
    Thanks for your response. It helped me.
    Regards
    Sekhar

  • Urgent: How to list all alias for a server throw DNS query?

    Hi
    Is there anyone know how to list all alias for a server by asking the network DNS. Is that possible?
    It doesn't work with InetAddress it return a single result.
    Best regard

    InetAddress will not get you the aliases, but you can certainly find all the different IP addresses for a specific host name using the getAllByName() method.
    You won't be able to get the aliases since those IP addresses (assuming there are more than 1) will all be cached as mapping to the name you passed to the getAllByName() method and you can't clear the map cache until the JVM exits.
    So your best hope is to get a list of IP's and either exit your app and restart with a new mode, or save them to a file for another app to read.

  • How to list all logged in users in Weblogic?

    Dear All,
    I want to list all the logged in users in weblogic since we have assigned each user a separate login.
    Right now, weblogic console shows if any user is making any changes. However, I want to list all users logged in even if they are in idle state.
    I have also looked in domainRuntime location using WLST but couldn't find any info.
    Please suggest.
    Thanks,
    Karan

    Hi,
    can you try with this JMX code.
    import javax.naming.*;
    import javax.management.MBeanInfo;
    import weblogic.jndi.Environment;
    import weblogic.management.runtime.ServerRuntimeMBean;
    import weblogic.security.providers.authentication.DefaultAuthenticatorMBean;
    import weblogic.management.security.authentication.UserReaderMBean;
    import weblogic.management.security.authentication.GroupReaderMBean;
    import weblogic.management.MBeanHome;
    import weblogic.management.WebLogicMBean;
    import weblogic.management.tools.Info;
    import weblogic.management.Helper;
    import weblogic.management.security.authentication.*;
    public class ListUsersAndGroups
    public static void main(String[] args)
    MBeanHome home = null;
    try
    Environment env = new Environment();
    env.setProviderUrl(“t3://localhost:7001?);
    env.setSecurityPrincipal(“weblogic”);
    env.setSecurityCredentials(“weblogic”);
    Context ctx = env.getInitialContext();
    home = (MBeanHome)ctx.lookup(“weblogic.management.adminhome”);
    weblogic.management.security.RealmMBean rmBean = home.getActiveDomain().getSecurityConfiguration().getDefaultRealm();
    AuthenticationProviderMBean[] authenticationBeans = rmBean.getAuthenticationProviders();
    DefaultAuthenticatorMBean defaultAuthenticationMBean = (DefaultAuthenticatorMBean)authenticationBeans[0];
    UserReaderMBean userReaderMBean = (UserReaderMBean)defaultAuthenticationMBean;
    GroupReaderMBean groupReaderMBean = (GroupReaderMBean)defaultAuthenticationMBean;
    String userCurName = userReaderMBean.listUsers(“*”, 100);
    while (userReaderMBean.haveCurrent(userCurName) )
    String user = userReaderMBean.getCurrentName(userCurName);
    System.out.println(“\n User: ” + user);
    userReaderMBean.advance(userCurName);
    String cursorName = groupReaderMBean.listGroups(“*”, 100);
    while (groupReaderMBean.haveCurrent(cursorName) )
    String group = groupReaderMBean.getCurrentName(cursorName);
    System.out.println(“\n Group: ” + group);
    groupReaderMBean.advance(cursorName);
    catch (Exception e)
    e.printStackTrace();
    Regards,
    Kal

  • HT3354 how can i use one table for reference to another

    how can i use a table for a referance to another eg when i type a word in a cell, i will like it to match the word with another table then return the information in the cell i am using

    you can use vlookup() (or any of the lookup family of functions) to locate an item based on a key value:
    Here is an example of something you can do with two tables:
    The table on the right is title "Data" and stores a list of names with age and favorite color.
    The table on the left uses the value in the first column to lookup up information in the table Data
    in the table on the left:
    B2=IFERROR(A2&" is " & VLOOKUP(A2, Data :: A:D, 2, 0)&" years old and likes the color "& VLOOKUP(A2, Data :: A:D, 3, 0), "NOT FOUND")
    I know this look complicated.  so I'll break it up into smalled pieces:
    first the "&" is called the concatenate operator and joins two strings.  like this:
    a string is a set of characters between double quotes.
    so "string 1" & "string 2" becomes "string 1string2"  or "Sam " & "Jones" becomes "Sam Jones"
    you can use cell references instead of strings directly in which case the concatenation is performed on the contents of the cells.
    so if cell A1 contains "Hi " and the cell A2 contains "There"  then A1 & A2 will result in "Hi There"
    so you could add the formula
    A3=A1 & A2
    this is short hand for select cell A3 then type everything including the A3 so that A3 contains "=A1 & A2" (omit the double quote)
    OK.  So the formula I provided concatenates several items together:
    it concatenates A2, then the string " is " then a formula, then the string " years old and likes the color " then a formula
    the two formulas (highlighted in blue) perform a lookup of the value in cell A2 in columns A thru D of the table named "Data".  If if finds the value in cell A2 in the first column of the lookup range in the table Data (column A) then it returns the value from the same row but in the second or third column.
    all that is in a function calld iserror() to trap the condition where the calue you enter in A2 does not exist in the table Data:
    You will find the Numbers users guide and function reference helpful.  You can download then from Apple here:
    http://support.apple.com/manuals/#productivitysoftware

Maybe you are looking for

  • F110  - payment on vendor open items as of a prior week

    Hello, I am trying to run F110 to pay vendor 1000's open items as of jan 2nd. Can anyone please tell me what how can I restrict the F110 to pick open items as of Jan 2nd? Do i enter it in the "docs entered upto" field? I have tried that and that does

  • Video or wmv file attachments

    I am unable to open or view many emails that have video or wmv attachments. I understand that Safari may not be the vehicle to enable this? Id there another browser that I should download?

  • JMenu and JTabbedPane questions

    Hello I got 2 questions : 1) Is it possible to change the icon of JMenu when the mouse cursor is on it ? setRolloverIcon function doesnt work in this case, like it does for the JButton. 2) When I create my application I got 1 JTabbedPane object visib

  • Un Expected Error (-208)

    what does the unexpected error (-208) mean?? i havent modded my ipod in any way. how do i fix it? it happened as i was trying to import a different folder of pics than the one i already had loaded (in my Itunes, ipod options) and now ipod wont update

  • TS3694 I waited about an hour to download IOS 7 and at the very end, it said An unknown error occured (6). What is this "unknown" error?

    So basically I waited about an hour for itunes to update my iPhone to IOS 7 and it is currently frozen because it had an (error 6) right at the end up the update. What do I do now? Why is it not updating?