Schema size?

How to identify the size of schema in a database. I want to know the size of 5 schema alone in a database and there are some more schema also in the db.
PS: I would appreciate a query that can relate the size of schema to the schema name and not the owner and segment alone.

SELECT   owner, SUM (BYTES) / 1024 / 1024 "Size (MB)" FROM dba_segments
   WHERE owner IN ('list of schemas') GROUP BY owner;

Similar Messages

  • How to find the Schema size

    Hi,
    How to find the size of the schema in a daabase.
    Thanks,
    Mahi

    Mahi,
    One more option, though not so clean would be use Data Pump and its estimate file size option for the schema. The estimate would tell you the info about the size of the schema.
    HTH
    Aman....

  • XML schema size restrictions

    I was wondering what size restrictions there are on XML schemas? I'm developing a schema that has just raised the following error on registration.
    ERROR at line 1:
    ORA-31084: error while creating table "CAS"."swift564357_TAB" for element "swift564"
    ORA-01792: maximum number of columns in a table or view is 1000
    ORA-02310: exceeded maximum number of allowable columns in table
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 151
    ORA-06512: at line 828
    On removing a few elements from the schema it registers fine, but querying the generated table swift564xxx_TAB there is only ever one column, typed with an ADT that itself only has 5 elements. In fact there doesn't seem to be, on the face of it, any type that has more than 20-30 elements. Where does this error come from then?
    Unfortunately the schema exceeds the 20k limit on postings. I can split it up and post it in two parts if this would help.
    Thanks
    Marc

    Each attribute in the ADT and each attribute of attributes which are an ADT count as one column
    Here's a snippet from the next version of the doc that may help...
    3-20 Oracle XML DB Developer’s Guide, Rel. 1(10.1) Beta 2 Draft
    A number of issues can arise when working with large, complex XML Schemas.
    Sometimes the error "ORA-01792: maximum number of columns in a table or view
    is 1000" will be ecountered when registering an XML Schema or creating a table
    based on a global element defined by an XML Schema. This error occurs when an
    attempt is made to create an XMLType table or column based on a global element
    and the global element is defined as a complexType that contains a very large
    number of element and attribute definitions.
    The errors only occurs when creating an XMLType table or column that uses object
    relational storage. When object relational storage is selected the XMLType is
    persisted as a SQL Type. When a table or column is based on a SQL Type, each
    Registering an XML Schema with Oracle XML DB
    attribute defined by the Type counts as a column in the underlying table. If the SQL
    Type contains attributes that are based on other SQL Types, the attributes defined
    by those Types also count as columns in the underlying table. If the total number of
    attributes in all the SQL types exceeds the Oracle limits of 1000 columns in a table
    the storage table cannot be created.
    This means that as the total number of elements and attributes defined by a
    complexType approaches 1000, it is no longer possible to create a single Table that
    can manage the SQL Objects generated when an instance of the Type is stored in the
    database.
    In order to resolve this problem it is necessary to reduce the total number of
    attributes in the SQL Types that are used create the storage tables. Looking at the
    schema there are two approaches that can be used to achieve this:
    The first approach uses a ’top-down’ technique that uses multiple XMLType
    tables to manage the XML documents. This technique reduces the number of
    SQL attributes in the SQL Type heirarchy for a given storage table. As long as
    none of the tables need manage more than 1000 attributes the problem is
    resolved.
    The second approach uses a ’bottom-up’ technique that reduces the number of
    SQL attributes in the SQL Type herirarchy collapsing some of elements and
    attributes defined by the XMLSchema so that they are stored as a single CLOB.
    Both techniques rely on annotating the XML Schema to define how a particular
    complexType will stored in the database.
    In the case of the top down techniqueby the annotations SQLInline="false" and
    defaultTable are used to force some sub-elements within the XML Document to
    be stored as rows in a seperate XMLType table. Oracle XML DB maitains the
    relationship between the two tables using a REF of XMLType Good candidates
    for this approach are XML Schemas that define a choice where each element
    within the choice is defined as a complexType, or where the XML Schema
    defines an element based on a complexType that contains a very large number
    of element and attribute definitions.
    The bottom up technique involves reducing the total number of attributes in the
    SQL object types by choosing to store some of the lower level complexTypes as
    CLOBs, rather than objects. This is acieved by annotating the complexType or
    the usage of the complexType with SQLType="CLOB".
    Which technique is best depends on the application, and the kind of queries and
    updates that need to be performed against the data.

  • Impdp := Estimate schema size

    I have compressed dump of one schema of 4 GB. Now i wanted to import it . can anyone please tell me that how much space i should reserve for importing dump file.
    Thanks in advance ..

    You should be able to get it from the dump file. This is what you need to do if you are importing the complete dumpfile(s):
    impdp user/password directory=your_dir dumpfile=your_dump.dmp master_only=y keep_master=y jobname=est_size
    sqlplus user/password
    select sum(dump_orig_length) from est_size where process_order > 0 and duplicate = 0 and object_type = 'TABLE_DATA'
    If you only want some of the dumpfile, then
    add your filters to the impdp command, like schemas=foo, or tables=foo.tab1, or whatever... then
    select sum(dump_orig_length) from est_size where process_order > 0 and duplicate = 0 and object_type = 'TABLE_DATA' and processing_state != 'X';
    This will give you the uncompressed size of the data that was exported.
    when you are done
    sql> drop table user.est_size;
    Hope this helps.
    Dean

  • Restrict schema size

    Hi everyone,
    Just wondering if there is a way in HANA to restrict the size (memory allowance) of a particular schema? We have some users that can create objects but want to be able to set a limit on the size of the tables they can create.
    Regards,
    Mark.

    As schema is an object namespace and not a ownership construct, size limitations based on the schema doesn't make really make sense.
    Beyond that, SAP HANA currently (SPS8) does not provide options to limit the amount of data storage on a user base.
    - Lars

  • Find Schema size

    I am trying to find out how big my Schema is in Oracle 9i.
    This SQL seems to give the total amount of space that I have used in my Schema?SELECT tablespace_name, owner
    Sum(bytes)/1024/1024 AS total_size_mb
    FROM dba_segments
    WHERE owner = MYSCHEMANAMEHow do I find the total size of what I can use in my Schema?

    See USER_TS_QUOTAS and DBA_TS_QUOTAS

  • Help needed to find the schema/application data size

    Hi,
    Would i request you to help me to measure schema size/(APEX)application data size.
    I've 3 applications running on same schema and now i want to move one application to new server, new schema,
    Now i need to know how much space is required for this application to host on the new server, so i should find the application size and application data size in the current server, your hep is appreciated. thanks in advance.
    Regards

    Hi,
    Would i request you to help me to measure schema size/(APEX)application data size.
    I've 3 applications running on same schema and now i want to move one application to new server, new schema,
    Now i need to know how much space is required for this application to host on the new server, so i should find the application size and application data size in the current server, your hep is appreciated. thanks in advance.
    Regards

  • Sudden Increase in database size

    Hi all,
    I have noticed sudden increase in sys schema size, after making queries on DBA_TABLESPCAES, DBA_DATA_FILE,
    DBA_EXTENTS,DBA_SEGMENTS.
    Does it means Oracle has generated lot of data after queries to these views ?
    It's very urgent .
    Please reply.

    Hi,
    Is any application accessing this database? If yes, then did you confirm with the application contact whether any heavy changes have taken place in the application/database? I think that an increase of 300M is not huge but normal/acceptable. However, it is a factor of the actual database size. What is you database size?
    Regards.

  • Schema Copy/replicate in Same database....

    Hello - I have a requirement to copy a schema in same database - with different name. What will be my best options other than export/import.
    Schema name: PROD
    Schema Size: 120GB
    Tablespace: All data of PROD is in PROD_D tablespace only
    New Schema name will be: NPROD
    Thanks in advance

    hi,
    If you're worried about the dump size, you may generate it and get a 20Gb size file...
    follow instructions from link Compressed dump
    ... if your schema has only tables, you may use CTAS
    Regards
    Ignacio
    http://oracledisect.blogspot.com

  • How to calculate the HFM Cube size in SQL Server-2005

    Hi
    How to calculate the HFM Cube size in SQL Server-2005 ?
    Below query used for Oracle. Then what is query for SQL Server?
    SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'FINANCIAL_%' and owner='HFM';
    SUM(BYTES/1024/1024)
    SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'HSV FINANCIAL%' and owner='HFM';
    SUM(BYTES/1024/1024)
    Regards
    Smilee

    What is your objective? The subcube in HFM is a concept which applies to the application tier - not so much to the database tier. The size of the subcube is the unique number of data strips (data values for January - December inclusive, for example) for the given entity, currency triplet or Parent.Child node. You have to account for parent accounts and customs which don't exist in the database but are generated in RAM in the application tier.
    So, if your objective is to find the largest subcubes, you could do this by querying the database and counting the number of records per entity/value (DCE tables) or parent.child entity combination (DCN tables). I'm not versed in SQL, but I think the script below would just tell you the schema size and not the subcube sizes.
    Check out Accelatis.com for a third party software product that can do this for you. The feature is called the Subcube Analyzer and was written by the same team that wrote HFM, so they ought to know how this works :-)
    --chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Size of schma with relation to tablespaces

    How to identify the size of schema in a database. I want to know the size of 5 schema alone in a database and there are some more schema also in the db.
    PS: It would be great if query can relate the size of schema to the schema name and not the owner and segment alone.

    Please clarify, If owner = Schema,
    I have the login credentials (TNS entry details) to login into a particular schema.
    When I log in SQL PLUS I am able to connect to the schema and view the schema objects however,
    when I query the DBA_Segments in sys user with owner = "the corresponding schema name" I don't get any records.
    Can I not get all the schema size by logging into sys user as sysdba and issue the below query ???
    SELECT s.owner,SUM (s.BYTES) / (1024 * 1024) SIZE_IN_MB
    FROM dba_segments s
    GROUP BY s.owner
    The above query doesn't return the size of schema for all users i am able to login in sql plus. Can you please clarify?

  • Cloning Schema within same database in DG environment

    Hi guys,
    I have a Production database with Data Guard configured (2 physical standbys, one same DC, 2nd other DC). I need to clone a schema (size approx. 380GB) within the same database, ofcourse creating cloned schema with a new name.
    Example:
    ======
    Primary DB: wflprd
    Standby 1: wflprddr1
    Standby 2: wflprddr2
    Source Schema: PegaRules - Size 380 GB
    Desitnation Schema: NewSchema within same database
    what are possible options available? expdp/impdp?
    regards,
    Anjum

    I believe my question is not understood correctly or may be I put the question incorrectly.
    I understand expdp/impdp or exp/imp works but is this the only solution in case of large schema sizes and data guard in place.
    log_archive_dest_1 = LOCATION=/u03/orarch/wflprd, valid_for=(ONLINE_LOGFILE,ALL_ROLES)
    log_archive_dest_2 string service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=baswflprddatz02)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=wflprddr1_XPT)(INSTANCE_NAME=wflprddr1)(SERVER=dedicated)))", ARCH SYNC NO AFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="wflprddr1" register net_timeout=180 valid_for=(online_logfile,primary_role)
    log_archive_dest_3 string service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=actwfldredatz01)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=wflprddr2_XPT)(INSTANCE_NAME=wflprddr2)(SERVER=dedicated)))", ARCH SYNC NO AFFIRM delay=1440 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="wflprddr2" register net_timeout=180 valid_for=(online_logfile,primary_role)
    Objective: We have one big schema containing data of three different customers. We are segregating that big schema into different schemas, one for each customer. So, once schema is cloned within same database, irrelavent data is cleaned.
    regards,
    Anjum

  • 11g schema move from warehouse - compress on the fly...

    friends and oracle gurus,
    DB: Oracle 11.2
    OS: Linux
    Schema size: 25G
    I am trying to figure out best strategy to MOVE schema from warehouse to different database (11g) in compressed format on the fly... don't want to export first then compress and move files which is older way...
    basically data should always be compressed during expdp n impdp...
    so far I can think of below....
    1. Lock user on warehouse
    2. Expdp user with expdp parameter compress=all
    3. Import user
    4. drop user from warehouse
    I think it's as simple as this but...
    Just wondering am I missing any key element for compress part?
    Do we need special oracle license to use compress option?
    any other tips or steps??

    khallas301 wrote:
    friends and oracle gurus,
    DB: Oracle 11.2
    OS: Linux
    Schema size: 25G
    I am trying to figure out best strategy to MOVE schema from warehouse to different database (11g) in compressed format on the fly... don't want to export first then compress and move files which is older way...
    basically data should always be compressed during expdp n impdp...
    so far I can think of below....
    1. Lock user on warehouse
    2. Expdp user with expdp parameter compress=all
    3. Import user
    4. drop user from warehouse
    I think it's as simple as this but...
    Just wondering am I missing any key element for compress part?
    Do we need special oracle license to use compress option?
    any other tips or steps??I think compress=all will require advanced compression option (I am not licensing expert but wouldn't hurt to check) , but then again, why don't you want to compress after dump is generated? 25gb is peanuts, and i bet out of it most will be index segments, which wont occupy more than few bytes in the dumpfile (metadata compression is possible).
    Or as some might suggest, use network link and be done with it.
    Raj

  • Size of connect string

    Is there any limit on the length of the connect string?
    Thanks
    Fiaz

    Hi Sarvani
    Database Name: select name from v$database . Although you need select privs on the dictionary. select global_name from global_name may or may not give you what you're after. If you substring up to the first "." it should be right. Can't think of any other way.
    Connect string: This is a client issue. From the database we can't know that. We can find the SID from v$instance or the registered service names using select value from v$parameter where name = 'service_names' but again you'll need select privs. You also need the listener port and there is not way of finding it from inside the DB. select local_listener from v$parameter will tell you your local listener but you'd have to query the listener (lsnrctl status) to find it's listen port. If you want to get really adventerous you could guess at it. select hostname,instance_name from v$instance and guess at 1521 or 1522 for the port. This won't work well for RAC.
    Size: Schema size or application size?

  • Cursor disappears on macbook pro windows 8.1

    I have a MacBook Pro running Windows 8.1.  Over the past few weeks, while doing work (email, Word, Powerpoint  - basic office work), the cursor would disappear.  I would need to restart the computer for the cursor to reappear.  Today, the cursor has disappeared and I can't get it back with a restart.  I have read many posts on disappearing cursors but none seem to fix my problem.  All other functions (as far as I can tell) are functioning.  I am using the trackpad.  All features work except for the ability to see the cursor.  I have tried the following:
    1. Restart
    2. Power off / on
    3. Looking for additional microsoft updates and updating.
    4. Removing updates that have installed in the past 5 days
    5. Removing update KB2919355 (It wouldn't let me so it reinstalled it)
    6. Mouse settings - I tried changing scheme, size etc - no change.  I was able to select within Mouse Properties - Press CNTRL to see Mouse - this works.  When I press the control button - it shows me a target of where the cursor is but it doesn't show the cursor - WORKAROUND.
    7. Added a mouse - it connected, made a sound as it connected but same situation as cursor - functional but can't see the cursor
    8. Went to MSconfig and tried booting in Diagnostic set up - CURSOR REAPPEARED - but no idea which app is causing the problem.
    9. I went back to MS Config and did normal mode - cursor disappeared at restart  and disabled all the start up apps and restarted - still no cursor.
    10. I pressed all the FN+F1, f2,f3 etc. - no change
    11. I checked to make sure I was only using 1 screen (and not extending my screen).
    I have an appointment at the Genius bar on Monday but there has to be an easy fix to this.  Any ideas?

    Additional Info - after working on this problem for 4 hours, I shut my laptop in frustration and took a break.  1 hour later I opened my mac and the cursor had magically returned.  No restart, no power on/off - nothing.  Frustration.  If anyone else has had this happen and has actually fixed the problem let me know. I'm sure it will reoccur.

Maybe you are looking for

  • Exit Code: 6 when trying to install Premier Cs6

    Hi all, I've been trying to figure this out for a long time now and it's really to the point where I've tried everything.  I'm trying to install the Demo of Premier CS6, with the hopes of then purchasing a license..but I wanted to get it installed an

  • Planned order and purchase req

    Hi, I have created a planned order and a pur req for a product in APO The ava date for the plnd order is 28.02.2011 and same for the Pur req The GR processing time was earlier 3 days when the proposals were generated . Now I  see that the user has ch

  • How to process the PDF files at one time

    Hello, I'm using WebDynpro for ABAP and Adobe Interactive Forms as offline forms. I collect PDF files from received e-mails. I want them to be taken in at one time. (for example, system job read PDF files and create data in ERP, or I upload the files

  • .3g2 files won't play in any media player

    Hello. Ever since we updated to OS X Mavericks, any old .3g2 files won't play in any media player on our iMac. When we go to play them, they play button in QuickTime just flashes from pause to play and then back to pause and and nothing happens. I'm

  • Where to find additional data controls as shown in the WebCenter Dev Guide

    From this book " [Oracle® Fusion Middleware Developer's Guide for Oracle WebCenter 11g Release 1 (11.1.1)|http://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/webcenter.1111/e10148/jpsdg_svc_intro.htm#JPSDG7276] ", it shows the following Data