How to drop unused schema

How to drop unused schema
give ur suggestion
Thanks

Robert Geier wrote:
If you are sure it is unused, export the schema to disk (using exp, expdp), then drop it.
drop user xxx cascade;
If you are not sure, then you may want to audit to confirm it is not used, and maybe lock the schema for a month before you drop it.Of course locking the schema (actually, locking the user account that owns the schema) doesn't prevent the objects in the schema from being used, it just prevents the owner of the schema from connecting. In a lot (should I say "most"?) systems, the application schemas are owned by "users" that are already locked, because there is never any intent for that user account to actually connect. So trying to determine if a schema is used by locking the owning account and seeing who screams is not going prove much of anything.

Similar Messages

  • How to drop a schema and load another one?

    I have an interruption during installing the central instance of a SAP Netweaver 04s System. After I restarted the installation I found this message in the Log file.
    <b>ERROR 2006-08-16 16:17:04</b>
    CJS-30109 The Java load in database PDV/liesc1ddbw01 has already been configured. <p> SOLUTION: Drop the schema and load it with a new load before running this installation.
    <b>ERROR 2006-08-16 16:17:04</b>
    CJS-30109  The Java load in database PDV/liesc1ddbw01 has already been configured. <p> SOLUTION: Drop the schema and load it with a new load before running this installation.
    <b>ERROR 2006-08-16 16:17:04</b>
    FCO-00011  The step getJavaLoadType with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|10|0|getJavaLoadType was executed with status ERROR.
    QUESTION: How to drop a schema and load another one?

    Hello,
    I got the similar error....but i did reinstall from o.s. and done the installation again...it was worked successfully..
    if you find out alternate solution for that ...please let us know..
    Regards,

  • How to drop a schema?

    Hi,
    I need to drop a schema un oracle.
    can you please provide query and your suggestions?
    Thanks
    Sathya

    SQL> create user muz identified by muz;
    User created.
    SQL> grant connect,resource to muz;
    Grant succeeded.
    SQL> conn muz/muz;
    Connected.
    SQL> create table test(a number);
    Table created.
    SQL> select * from tab;
    TNAME TABTYPE CLUSTERID
    TEST TABLE
    SQL> disc
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn system/oracle
    Connected.
    SQL> drop user muz cascade;
    User dropped.

  • How to unregister/drop a schema

    I want to delete/ unregister a schema.How can I do the same?
    Currently I'm using isValidSchema for validating a xml with a given schema.
    I think this function register the schema.
    When I use the function isValidaSchema with the same URL and same schema, ti throws me ORA-31085 error that the same URL cannot be registered again with the given schema.
    IS there any way to drop the schema or unregister the schema so that the same URL can be validated again with the same schema.
    Regards
    Garima

    I'm talking about the XML schemas.
    Following function is throwing Message : [ORACLE ERROR : [ORA-31085: schema "XDh1jUheYAR5PgNAgAILJCxg==" already registered[/b] error
    ROCEDURE validateXmlSchema(inp_xmlMsg IN VARCHAR2,
    out_isValidDoc IN OUT NUMBER,
    inp_xmlSchema IN OUT VARCHAR2,
    inp_xmlUrl IN OUT VARCHAR2)IS
    xmldoc XMLType;
    res number;
    -- result boolean;
    BEGIN
    dbms_xmlSchema.deleteSchema(inp_xmlSchema,4);
    xmldoc := XMLtype(inp_xmlMsg);
    res := xmldoc.isSchemaValid(inp_xmlSchema);
    IF (xmldoc.isSchemaValid = 1) THEN
    out_isValidDoc := 1;
    ELSE
    out_isValidDoc := 0;
    END IF;
    END validateXmlSchema;
    Why is the delete schema throwing that error?

  • How to re-create dropped default schemas

    Can any one please tell how to re-create schemas that are by default created when database is installed.
    All the default schemas other then SYSTEM, SYS, PUBLIC, DBSNMP were dropped.
    Now it is required to re-create them. where can I find the script to re-create them.
    Thanks in adv.

    Not the demo schemas but the ones that are used by oracle server (system) for activities like - taking export, supporting sql plus, or user connect, etc. etc.
    Schemas like DMSYS, OUTLN, etc. etc.

  • How to drop MDS and BIPLATFORM schemas

    Hi,
    I am trying to drop the MDS and BIPLATFORM shemas using the rcu utility but I get the following error:
    RCU-6083:Failed - Check prerequisites requirement for selected component:MDS
    Please refer to RCU log at D:\Downloads\OBIEE11g64bit\rcuHome\rcu\log\logdir.2012-10-25_14-49\rcu.log for details.
    The schema owner 'DEV1_MDS' is connected to the database. Please disconnect and try again.
    RCU-6092:Component Selection validation failed. Please refer to log at D:\Downloads\OBIEE11g64bit\rcuHome\rcu\log\logdir.2012-10-25_14-49\rcu.log for details.
    I kill the session using 'alter system disconnect session '9,171' immediate;' but somehow a new session gets created automatically.
    How do I drop the schemas?
    Regards.

    Hi,
    Go to your RCU downloaded file located path and launch rcu.bat then you can drop it
    let say mine,
    E:\Software\OBIEE111160\ofm_rcu_win_11.1.1.6.0_disk1_1of1\rcuHome\BIN\rcu.bat
    Note: Refer Section,6.4.5 Dropping Oracle BI Schemas
    http://docs.oracle.com/cd/E23943_01/bi.1111/e10539/c6_deinstall.htm#CIHIIGAD
    Better go through obiee11g installation/de-install oracle documentation.
    Thanks
    Deva
    Edited by: Devarasu on Oct 25, 2012 5:30 PM

  • How i can drop whole schema with the datafiles

    I have a one schema and i would like to drop that schema as well the datafiles. so i can get the space. can someone tell me the nice way and safe way to drop.
    Thanks

    Don't drop a datafile unless you're droping Tablespace.
    see below Asktom's thread ...
    http://asktom.oracle.com/pls/ask/f?p=4950:8:14682619195071629452::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:515222144417

  • Drop unused stored procedures

    hi,
    i need to drop unused stored procedures from our Oracle9i database.
    How do I check and confirm that the stored procedures are no longer used by the application?
    Our application is using jsp, servlet and ejb. Some stored procedures might also be called from other stored procedures, triggers and PRO*C programs.
    best regards,
    dayang

    You are snookered in the absence of adequate documentation.
    Some stored procedures might also be called from other stored procedures, triggers and PRO*C programsThat's the easy bit - you can find which database objects use other database objects using the USER/ALL/DBA_DEPENDENCIES views. But programs outside the database? No chance.
    If you want to make yourself unpopular yoy could invalidate every single stored procedure and see who screams but that's not user friendly - besides some packages might only be used once a quarter, once a year even - financial routines are the obvious example.
    If you have logging in place you might try switching it on, but I suspect you don't have that.
    In short, if you don't know who's using a package you are better off leaving it in your schema. Just make a note for yourself to properly document your next system.
    Cheers, APC

  • How to reorganize applsys schema in oracle apps

    Dear Guru's,
    Can any one suggest how to Re-Organize Applsys schema in oracle application .
    The tablespace which is related to Applsys has nearly 15GB of free space. I need to resize it. Oracle has suggested to follow 303709.1. But it donsn't helped out.
    I am planning to 1) take an export of applsys schema 2) Drop applsys schema 3) Recreate new same tablespace with new appropriate storages & 4) import back the applsys scheam.
    Is it the appropriate method? I need the solution from some one who faced and resloved this issue. No theoritical solutions please.
    Naveen

    If you have the disk space you could create another tablespace and use the alter table move command to move the objects into it. See note 110246.1. I have used this method for other tablespaces (not applsys though). Depending on what version of the rdbms you are on there may be some limitations when it comes to lobs and nested datatypes/tables.

  • Drop a schema

    Hi,
    if I drop a user his objects ( and his schema) will removed ? Otherwise how to remove a schema ? Does we have drop schema schemaname ?
    Many thanks.

    Hi [email protected] ,
    we know that schema=user and user=schema , so if You remove user from your db, and if You use cascade option, all of his objects will be removed.
    Of course, there is no drop schema schemaname command.
    Cheers

  • How to recreate MDSYS schema.

    We installed Oracle Xe 10.2 on Windows Xp (850 client). Mdsys schema was dropped after Xe install. How to recreate MDSYS schemas without reinstall XE?

    I ran this script successfully with some error. But there was some invalid objects. After create mdsys I tested two sql. First sql wasn't ran. Second sql was ran successfully. I thing this method incorrect. I think, I will re-install XE edition.
    Thank you your support...
    SELECT c.IL_ADI, SDO_GEOM.SDO_CENTROID(c.geoloc, m.diminfo)
    FROM il_v113 c, user_sdo_geom_metadata m
    WHERE m.table_name = 'IL_V113';
    SELECT M.* FROM IL_V113 M WHERE SDO_RELATE(M.GEOLOC, sdo_geometry(2001,8307,sdo_point_type(28.8110549178336,41.1581182896854,null),null,null), 'mask=ANYINTERACT') = 'TRUE'

  • How to delete unused audio files in a project?

    Hi guys,
    The question is fairly simple:
    How to delete unused audio files in a project?
    I can't manage to find the answer in the manual,... all I could find is how to delete audio outside used regions!
    But in the projects I use, I have loads of outtakes which I don't use in the project anymore, and now, I would like to delete them of the audio folder to save space on the HD.
    Can Logic select automatically the takes in the audio files folder which are not used in the project and delete them??
    Because there is hundreds of audio files per project, and +/- 50 projects, I just can't do it manually.
    Thanks,
    Fred

    Whoops! Yes, I knew that but a cow flew by... Sorry!
    The procedure I follow is to do what I described then Save as Project, creating a project folder. That way only the required audio is saved to the folder and I delete all temporary stuff. However, if you have folders with shared material, it's much harder and would require you to go through all your projects doing Save as Project before you could delete your old working folder.
    When doing day to day work, best practice is to create a new folder and only use Save as Project when you're working on stuff. Shared material (eg sample libraries etc) can go elsewhere and you can get Logic to copy those to the project folder automatically.
    Otherwise, Shift-Backspace in the Audio window, as you rightly say
    Pete

  • How to get the schema in a windows machine?

    In Active Directory, we can see the schema using AD schema snap-in.The following link gives the step to be done to view AD schema :
    http://technet.microsoft.com/en-us/library/cc732110.aspx
    Similar to this how can we see the schema of local users and groups of a local windows machine?

    Hi,
    >>
    Similar to this how can we see the schema of a local windows machine?
    As far as I know, the schema is the Active Directory component that defines all the objects and attributes that the directory service uses to store
    data. The physical structure of the schema consists of the object definitions. The schema itself is stored in the directory.
    Regarding Schema, the following articles can be referred to for more information.
    How the Active Directory Schema Works
    http://technet.microsoft.com/en-us/library/cc773309(v=WS.10).aspx
    Schema
    http://technet.microsoft.com/en-us/library/cc756876(v=WS.10).aspx
    Best regards,
    Frank Shen

  • How to set db schema in fact tables

    Hi!
    I have one mapping with one table(table1) pointing to one fact table (fact1).
    This fact table has two dimensions located in two different schemas. I already deployed those dimensions and tables and its ok.
    My problem is: when I open the mapping editor and ask to generate the mapping to create the package to populate the fact table,
    I can see why I can not deploy it (PL/SQL: ORA-00942: table or view does not exist).
    My query is: SELECT (fields) FROM schema.table1, table2 ,table3 WHERE....
    I cant set the schema property from my table (table1), but I cant´t do the same with the table2 and table3 (both tables related to dimensions). i don´t have this option!
    I don´t understand why this happen because both dimensions are ok. They are in two different modules and the locations are ok too.
    I understand that the mapping needs the dimension keys to populated the fact table, but I really don´t know how to set this schema property. If i can´t do that,
    i don´t know how to "fix" this problem. If a can´t set this schema property, how can I deploy this mapping whitout this???!!!!
    I´m using the 10.2 version.
    Thanks o lot!!!!!!!!!!!

    This is what really happens in my example.
    Look the "Generation Results" :
    SELECT
    /*+ ORDERED NO_MERGE("INGRP1") */
    "TEMP_TABLE"."Value1" "Value1",
    "TEMP_TABLE"."Value2" "Value2",
    "DIMENSION1"."ID" "ID",
    "DIMENSION2"."ID" "ID"
    FROM
    "SCHEMA"."TEMP_TABLE" "TEMP_TABLE", -> I CANT SET THIS schema
    "DIMENSION1" "DIMENSION1", -> i can´t do the same here
    "DIMENSION2" "DIMENSION2" -> i can´t do the same here
    WHERE
    ( "DIMENSION1"."DIMENSION_KEY" = "DIMENSION1"."ID" ) AND
    ( "DIMENSION1"."ID" IS NOT NULL ) AND
    ( "DIMENSION2"."DIMENSION_KEY" = "DIMENSION2"."ID" ) AND
    ( "DIMENSION2"."ID" IS NOT NULL ) AND
    ( "DIMENSION1"."key" = "TEMP_TABLE"."key" ) AND
    ( "DIMENSION2"."key" = "TEMP_TABLE"."key" )
    I already tried to use 3 DB-Modules but I have the same problem. :o(
    I don´t know what to do!!!!!!!

  • HOW TO Delete Unused Media from FINAL CUT PRO

    *HOW TO DELETE UNUSED MEDIA FROM HARD DRIVE IN FINAL CUT PRO.* Keywords: disk disc drive space remove compressor
    SUMMARY:
    Say your original clip is 10 gigs, you can use only what you need and delete the rest from your hard drive. I know people on the forums say to just buy another hard drive, NO! It took 2 days to figure out but here it is!!! Email me if needed at [email protected]
    QUESTION:
    I captured 1 hour of video at a time and now want to delete from my hard drive all the parts I don’t want to use. I have 300GB of junk on my hard drive and I only want to use a few scenes using a few megabytes, so that I'll get most of my 300GB back!!!!
    ANSWER:
    In final cut on Mac, click on one small clip (to get familiar with process), go to “file”, “export”, then “using compressor”. This will open compressor software. Your file will open in the left top window. Then you need to batch the job or jobs. IMPORTANT: I’ve also solved the Compressor problem when you press “submit” to a batch and it states “Cluster: None”. Search forum for “In compressor you experience what I have”.
    <Edited by Moderator>

    Part of the problem could lie in the fact it's an imovie project coming into FCP, wouldn't rule that out. Second my be the terms you use and what you expect to happen. For example, a subclip is just a smaller clip subbed from a larger clip. It has nothing to do with media management. But you can media manage a subclip and delete the unused media.
    Try this (be sure to back up the original clip first). take a long clip into the viewer, make an IN and OUT duration of like 30 frames and then subclip that, Modify > Make Subclip. a new subclip will appear in the browser with a torn clip icon and the name Subclip. Right click on the subclip and choose Media Manager.... Check the Delete unused media from duplicated clip. As you toggle that the green Modified bar at the top change from the full clip size to a tiny modified size. If it does not then one of two things ... user error or the system is screwed up. That's the easiest way to test media manager.

Maybe you are looking for

  • LOCKED OUT OF MY CC. WHY! I need help NOW!

    CC says I havent paid. I have a new credit card. I've entered the details (correctly). Details don't update. CC now thinks I havent paid. I am working on a live project and I need it up and running NOW. Please help. Please, Please, Please tell me how

  • Speech Recognition stops working after a minute of nonuse

    I'm a grad student trying to keep from exacerbating my carpal tunnel and just figured out how to use the voice commands on my macbook. So far, they work great, they hear my voice, it does what I tell it to do, and I'm not constantly hitting apple+tab

  • Camera raw conversion for photoshop elements 12 . Camera Nikon D4S

    Hi i have an apple Mac version 10.9 os.  I have Adobe photoshop Elements 12.  I just got a new camera Nikon D4S.  Photoshop Elements will not import my RAW phots (NEF) taken with the new D4S camera.  It gives me a message: Could not complete request

  • 2010 mac mini server won't sleep

    Hi , I have seen some people report that there mac mini server running Snow Leopard will not sleep . I have had this issue for a while and have now installed an App called ' PleaseSleep ' . All seems good and my Mac now goes to sleep so I thought I w

  • How many Effects do I need?

    OK. So maybe someone can help with THIS one... We have several lists of data categories (teachers, students and media) and each category has two states--pending and active, which we use Spry Tabs to move effectively between. We use a detail region to