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.

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 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.

  • 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

  • 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 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 check vendor schema group for info record for third party vendor

    Hi Expert,
    How to check vendor schema group that assigned in info record for third party vendor?
    Thanks

    Hi,
    Vendor schema group is not assigned in info record, It is assigned in purchasing data view of vendor master ( Check in XK03 )
    You can check in Vendor master- XK03- Purchasing data.
    hope it will help u.
    Deepak

  • How to change the Schema (DB2, Oracle) in CommandTable at run time

    Dear all,
    I have a problem as below:
    I have created report with CommandTable, then I am using Java and CRJ 12 to export data. So how to change the SCHEMA in CommandTable? 
    Please help me on this.
    Ex: CommandTable is SELECT * from SCHEMA.TableA, SCHEMA.TableB
    Thanks,
    Nha

    Dear Ted,
    I want to change DataSource, it means the report will be load and change connection at run time (using CRJ SDK) and i want to change the SCHEMA.Tablename in CommandTable in report.
    I also use the parameter to do it, but it can not be at run time, just correct when designing.
    Could you please help me on this. You can post the code if any.
    Thanks,
    Nha

  • How to parameterize the schema name in APEX

    Hi,
    How to parameterize the schema name in APEX , in order to access different tables from the respective schema.
    For example:-
    select NAME display_value, CODE return_value
    from paramSchema.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1
    in the above code, paramSchema will be replaced with the actual schema name duing runtime. I tried doing so by some hidden fields on page, but it didn't worked out.
    I took the schema name from the respective server as per the IPof the server.
    stored in a hidden field named as schema.
    And replaced the same in place of schema name. But no luck.
    select NAME display_value, CODE return_value
    from :schema.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1
    Please help me in shorting it out.
    Thanks,
    Anuradha

    Hi
    In order to do that, you would need to use dynamic SQL by changing the report type to PL/SQL Function Body Returning SQL Query and have code along the lines of
    DECLARE
    l_sql VARCHAR2(32767);
    BEGIN
    l_sql := 'select NAME display_value, CODE return_value
    from '||:schema||'.DESC_LIST WHERE SELECTION_FLG = 'Y'
    order by 1';
    RETURN l_sql;
    END;However, by doing this, you lose alot of flexibility. The other options would be...
    To have seperate report regions that are conditional on the value of the variable.
    To use a WITH clause at the tope of the query like...
    WITH src_data AS
    (SELECT * FROM schema1.my_table
    WHERE :schema = 'schema1'
    UNION ALL
    SELECT * FROM schema2.my_table
    WHERE :schema = 'schema2')
    SELECT *
    FROM src_dataOther than that you could look at using synonyms and doing something similar.
    Hope this helps.
    Cheers
    Ben

Maybe you are looking for

  • How to Customize Error message in JXL

    Hi All, I want to customize error message in JXL. I.e. When we apply number validation to a cell and if you enter invalid data MS-Excel shows error message saying that "The value you entered is not valid". But I want to customize this message to "Dat

  • Having a problem with character styles in indesign

    I'm having another problem with my style sheets in indesign, I've now got an awful lot of styles in paragraph and character styles. I've created different styles for paragraph justified text and when I go to my style in paragraph styles to use tight

  • Ship-to address load

    Hi Gurus, How do I load the ship-to address (about 600) which is not related to any company code. Which means any employee can make use of the 600 ship-to addresses. By (Ship-to address) default, company code address is displayed in F4 search on the

  • Transformation routine for Infoobject lookup

    Hey guys, I am aware of Update rule routines but never done Transformation routine before. I didnt get any related post for my req. My requirement is on WBS element I have some attributes which is coming from std WBS Attr extractor but I have one cus

  • Attempting to install PS Elements 10 I received a corrupt file message and was instructed to abort

    While attempting to install PS Elements 10 I received a corrupt file message and instructed to abort installation.  The installation was undone...what do I do next?