Getting control totals for all the objects

Hi All,
1. I want to get the control totals for all the tables along with table names in Oracle
the below I google and found, but I am not aware of xml in Oracle, I tested this on small scott db it works fine
select
table_name,
to_number(
extractvalue(
xmltype(
dbms_xmlgen.getxml('select count(*) c from '||table_name)
),'/ROWSET/ROW/C')) count
from user_tables order by 1is the above query correct?
2. I want all the view name
This I can get it from user_views ( but I want for entire database excluding system views and only user created views)
select view_name from user_objects3. I want all the sporc name( including the ones in the package and stand alone)
I am not sure how to get this.

Be aware of the statement "Some columns in these views contain statistics that are generated by the DBMS_STATS package or ANALYZE statement."
See this page specially "Columns marked with an asterisk (*) are populated only if you collect statistics on the table with the ANALYZE statement or the DBMS_STATS package."
http://download.oracle.com/docs/cd/E11882_01/server.112/e10820/statviews_2117.htm#REFRN20286
If your statistic is not updated, it can give you totally wrong impression.

Similar Messages

  • In new iphone 5 very first call getting busy tone for all the numbers

    in new iphone 5 very first call getting busy tone for all the numbers.

    my son had this problem.  I went to the apple store and they wiped out and restored the phone..  They said that was all they could do but that I should call our phone carrier and ask them.  I did.  They asked if in the top left side, next to battery power there was a icon of a half moon.  There was. They said to go in to settings and go to "Do not Disturb" and turn it off.  I did.....problem solved!!! Somehow "do not disturb" was turned on and that is what happens if it is!!
    I hope this helps.

  • Why didn't I get a receipt for all the purchased apps

    I got receipts for all the purchased music on iTunes but not the App Store.

    Hi jesus171996,
    The article below will show you how to review your account and report any issues to the iTunes Store.
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers
    http://support.apple.com/kb/ht2727
    Cheers,
    Judy

  • I have a user who has permissions on site A B C 's some libraries. How can I get a list for all the contents the user have permission for?

    The user has permissions on site A B, and C. within the sites, the user has permissions on some lists/libraries.
    how can i retrieve an entire list to see what the user has permissions on?
    thank you 
    I might be a newbie in some area. But I'm working hard. :)

    You can get the report using powershell, please check below posts
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5a3252bf-cb03-4488-9a0d-f4e0ce07d497/user-permissionsaccess-report-in-sharepoint-site
    http://reality-tech.com/2011/12/30/reporting-on-all-user-permissions-in-a-web-application/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • REST url to get titles and description for all the lists in HOST WEB.

    What should be the REST url to get specific prperties for all the list in host web for SharePoint Hosted Apps.

    Hi,
    We can use the REST URI below:
    http://myAppweburl/_api/web/lists?$select=Title,Description
    More information:
    How to: Complete basic operations using SharePoint 2013 REST endpoints
    http://msdn.microsoft.com/en-us/library/office/jj164022(v=office.15).aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to get all the objects in a  stack frame

    Hi, what I'm trying to do is get all the objects on the top of the stack and time stamp them.
    What I have is this:
    static void mearthScanStack(jvmtiEnv *env, jmethodID method, jthread thread){
           jobject obj;
           int i;
           jlong tag;
           jvmtiError err;
           jvmtiLocalVariableEntry *localVarTable;
           jint entryCount;
              err = (*env)->GetLocalVariableTable(env, method, &entryCount, &localVarTable);
              if(err == JVMTI_ERROR_ABSENT_INFORMATION || err == JVMTI_ERROR_NATIVE_METHOD){
                   return;
              check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get local variable table");
              for(i = 0; i < entryCount; i++){
                   if( (localVarTable.signature)[0] == 'L'){
                        err = (*env)->GetLocalObject(env,     thread, 0, localVarTable[i].slot, &obj);
         check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get local object");
                        err = (*env)->GetTag(env, obj, &tag);
                        check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get tag for local object");
                        timeStampObject(env, obj);
              (*env)->Deallocate(env, localVarTable);
    }To walk through, first I get the local object variable table, then I loop through each entry in the table. I check each entries signature to see if it is an object (starts with "L"), and if it is, I try get its tag, and time stamp it.
    This doesn't seem to work, however, because I get JVMTI_ERROR_INVALID_SLOT errors on the call to GetLocalObject. How can it be an invalid slot if I am getting the slot out of the local variable table?  Am I going about this the right way
    Additionally, when I get the the table, I'm ignoring the JVMTI_ERROR_ABSENT_INFORMATION error. I'm not exactly sure under what circustances this information is absent. Is there a way I could scan the stack frame even if it is not available (just probe through the slots maybe?)
    Any help is greatly appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I would think if you intanciate the XMLReference and use IIDXMLElement GetChildCount / GetNthChild would do what you are looking for.
    Ian

  • Getting DDL for all oracle objects

    I am working to get the DDL for all the oracle objects within my schema.
    Some how I got the DDL but I can't got the comments associated with the oracle tables.
    Shall I know what I am missing in using dbms_package I am currently using ..?
    Below is the sql I am using to get DDL
    SELECT dbms_metadata.get_ddl(replace(OBJECT_TYPE, ' ', '_'), OBJECT_NAME,OWNER)
    FROM DBA_OBJECTS
    WHERE OBJECT_TYPE in ('SEQUENCE',
    'PROCEDURE',
    --'DATABASE LINK',
    'PACKAGE',
    'PACKAGE BODY',
    'MATERIALIZED VIEW',
    'TABLE',
    'INDEX',
    'VIEW',
    'FUNCTION')
    AND
    OWNER = 'Schema_1';
    Can I know what needs to be changed to above sql to get comments on oracle tables along with their DDL.
    Any advise is highly appreciated.
    Thanks
    JP

    >
    I am still MISSING ';' after every sql and comments.
    >
    You only get what you ask for. If you want modifications you have to set the proper transform parameters.
    See DBMS_METADATA in the PL/SQL Packages and Types doc
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_metada.htm
    See SET_TRANSFORM_PARAM and SET_REMAP_PARAM Procedures and table 74-22 that list the parameters you can use
    Here are some examples from Java code that I use depending on flags that have been set
    -- set the transforms back to the defaults
            String defaultTransform   = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'DEFAULT'); END;";
    -- do not include referential constraints
            String ref_constraints    = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'REF_CONSTRAINTS', false); END;";
    -- do not include constraints
            String constraints        = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS', false); END;";
    -- do not include the schema prefix
            String noschema           = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'EMIT_SCHEMA', false); END;";
    -- make it look pretty
            String pretty             = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'PRETTY', true); END;";
    -- don't include the physical properties
            String physicalProperties = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'PHYSICAL_PROPERTIES', false); END;";
    -- don't include the segment attributes
            String segmentAttributes  = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SEGMENT_ATTRIBUTES', false); END;";
    -- include a sql terminator for each statement
            String sqlterminator      = "BEGIN DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR', true); END;";The last one is what you are looking for.

  • I purchased a student subscription to Creative Cloud. I got the confirming email. When I attempted to install the aps, kept getting a 30-day trial for all the aps. In the case of Photoshop, it was expired. How do I activate my Creative Cloud?

    I purchased a student subscription to Creative Cloud. I got the confirming email. When I attempted to install the aps, kept getting a 30-day trial for all the aps. In the case of Photoshop, it was expired. How do I activate my Creative Cloud?

    ChristinaW1111 for information on how to resolve the connection error preventing the active membership from authorizing then please see Sign in, activation, or connection errors | CS5.5 and later.  If you have any questions regarding the steps listed within the document you are welcome to update this discussion.

  • I have been offered cc 2014 for 29.99 and its says contact the support team to see if I qualify - trying to get to the support team option by telephone just seems to send me in a loop - getting pretty disgusted with all the rigmarole just to get a somethi

    I have been offered cc 2014 for 29.99 and its says contact the support team to see if I qualify - trying to get to the support team option by telephone just seems to send me in a loop - getting pretty disgusted with all the rigmarole just to get a something

    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • To get all the objects that are used inside the class

    Hi All,
    All i wanna know is to get all the objects that are used inside the class.
    Ex :
    Class A{
    Emp e;
    public add(Dept d){
    e.deptid = d.deptId;
    in this class i have two objects, one Emp obj and another Dept object.
    I wanna get the details abt this class Emp and Dept by simply parsing the file and by not loading this class in JVM.
    Could any pls hel me out.??
    thx.

    I wanna get the details abt this class Emp and Dept
    by simply parsing the file and by not loading this
    class in JVM.Your problem statement is vague and the constraint is IMO hypothetical.

  • My iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    my iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    I encountered a similar problem when finally (and with much regret) I was obliged to migrate my MobileMe to iCloud last month.
    Many years of iCal history vanished without trace during this automated transition by Apple and iCloud then kindly synched the resulting vacuum back to iCal on my Mac.
    Fortunately, iCloud wasn’t able to decimate iCal on my other Macs because (1) they are still running Snow and (2) I had switched them off as a precaution.  Good job I did.
    My solution was to export my iCal data on one of those other Macs to a backup file – then I imported that backup file into my Lion-updated Mac’s iCal. That restored all the iCloud-deleted iCal data back on to my Mac and this was promptly synched automatically to my Calendar on iCloud.  So now it’s all there and showing.
    Perhaps you could do something similar?  In the meantime, be very careful not to let iCloud’s amnesia get synched to your iPhone (and other devices).
    Experience has taught me never to trust an “upgrade” until it is proven to be working correctly and always to keep in reserve another Mac with a properly-functioning system and all synching to it switched off...

  • Get all the object at runtime

    Hi all,
    I have the form that show all the .fmx file within specific directory (e.g : c:\forms).
    Is there anyway to list all the objects in selected .fmx ?
    Say, test.fmx have :
    * Block A :
    - Item A1
    - Item A2
    * Block B :
    - Item B1
    - Item B2
    Regards,
    Fendy

    use API.

  • How to copy a database with all the objects and relationship but with no data

    Hello Experts
    I am here for your advise as usual, I  want to create a copy of my current database from an existing one on SQL Server 2008r2 Standard Edition, here is what I need, I want all the objects including any relationship between the objects and I do
    not need any data. I have some idea for using the general script in SSMS, but I still need you expertise advise please, thank you kindly for your help.
    Regards

    One option is to run BACKUP/RESTORE, once you have restored you run:
    SELECT 'ALTER TABLE ' + quotename(s.name) + '.' + quotename(o.name) +
           ' DISABLE TRIGGER ALL '
    FROM   sys.schemas s
    JOIN   sys.objects o ON o.schema_id = s.schema_id
    WHERE  o.type = 'U'
      AND  EXISTS (SELECT *
                   FROM   sys.triggers tr
                   WHERE  tr.parent_id = o.object_id)
    Copy result and paste into a query window do to run. Next:
    SELECT 'DELETE ' + quotename(s.name) + '.' + quotename(o.name)
    FROM   sys.schemas s
    JOIN   sys.objects o ON o.schema_id = s.schema_id
    WHERE  o.type = 'U'
    Run this result until you don't get any more errors.
    Run the first query again, but change DISABLE to ENABLE.
    This is more long-winding than scripting, particularly if you have lots of data. But you know that you will not make any changes whatsoever to the schema.
    The scripting in SSMS generally does it right, I believe, but some items are not scripted by default. If you run BACKUP/RESTORE, you know that you get a faithful copy.
    Of course, the best way is to keep your code under version control and take the version control system as your ultimate truth.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How do I find out all the objects I use in my application.

    As I am creating my documentation, I realized it would be helpful to know all the objects that my application uses ( tables, views, packages etc). Is there a way to find that out i.e. any script or simple alternative etc ?
    Thanks, folks!

    I am on version 3.0.1.00.08 and am trying to figure this out for this version.The navigation path is different but the report is available somewhere.
    Also, is there a way to get the sql from all the pages out ?What do you mean?
    Scott

  • Recordcount for all the tables in my user

    How I will get recordcount for all the tables in my user
    with a single query??
    Plz help.
    Thanx in advance.

    Not possible. As there can be any number of tables with any names, this requires dynamic SQL.
    SQL given to the Oracle SQL Engine cannot be dynamic ito scope and references - it must be static. For example, one cannot do this:
    SELECT count(*) FROM :table
    For the SQL Engine to parse the SQL, determine if it is valid, determine the scope and security, determine an execution plan, it needs to know the actual object names. Objects like tables and columns and functions cannot be variable.
    You will therefore need to write a user function (in PL/SQL) that dynamically creates a [SELECT COUNT] SQL for a table, execute that SQL and return the row count - and then use SQL to iterate through USER_TABLES for example and sum the results of this function.
    Note that object tables are not listed in USER_TABLES - thus a more comprehensive list of all table objects in your schema can be found in USER_OBJECTS.

Maybe you are looking for

  • Apple Expert "thinks" MacBook AL Late '08 has FW!

    *Hello, all friends experiencing FWW (FireWire Withdrawal)* You'll have to have a valid MacBook (Late '08) serial number to do this: Log into "Connect with an Apple Expert" and either click your already-registered MacBook or enter its serial number,

  • How do I get a website to open on firefox from my email?

    I have Internet Explorer. I just downloaded Firefox. An online store that I shop at regularly sends me emails. When I click on their link from my email it takes me to their site through Internet Explorer. How do I get the link from my email to open t

  • How do I get my music from my iphone into itunes library

    I have tried everything I can see to get my music from my iphone to my itunes library? I've just got a new iphone 4 and want all my music put onto my new phone but again I don't know what else to do.

  • How to remove Database Files and Backup from ASM

    Hi All, Oracle Database 11.2.0.3 OEL 5.7 We have a host for restore purposes. We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes. I have a autom

  • Problem authorizing iPhone to get new music.

    Hi, I'm not sure if this is just a weird iTunes bug or what. When I tried to put new music on my iPhone, I got a message that it wasn't authorized for this computer, so it wouldn't sync anything from my library onto my phone. So I went to the iTunes