HOW TO DROP INDEX OF OTHER SCHEMA

hi,
I want to know how can we refer to objects that are of other schema. i need to drop an index of a table that belongs to some other schema and so if i write :
drop tablename.indexname; - its not working.
Please Help
Thanks

You are trying to drop an index on a table that belong to a different schema you are connected to.
Do not add the table name to your command.
Simply try
drop index schema_name.index_name;
Nico P.

Similar Messages

  • 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 to rebuild index from different schema

    Hi All,
    I want to rebuild an Index of schema A from Schema B.
    Is there any grant needs to be give to Schema B in order to rebuild index of Schema A?
    Thanks,
    Tarak

    It is true what P. Forstmann said. However if you don't want to give the second user the ANY priviledge, then you can do a little workaround. Create a small procedure in Schema A that does the rebuild (maybe dynamically). Then grant execute rights on the procedure to Schema B.

  • How to drop index or truncate partion prior to load data

    I would like to add few sql command prior to execute the load data into table. Basically I would like to mark ununable index on specific partition and truncate that partitiion prior to load data. Please advice me some guideline. Thank you.

    Take a look here
    Re: How to truncate a partition in owb

  • DBA role required to see indexes in Other Users schema

    When my developers try to view indexes owned by other users that are unable to see them unless the have been added to the DBA Role. Is this a requirement to view indexes owned by others? Are there lesser privs than DBA that will allow this?

    The developer already has this privilege. Using other development tools he can see the indexes in other schemas. It appears to be a problem or setting in SQL Developer. We are running version 1.2.1. Any other thoughts?

  • Unable to see other schemas in JDeveloper Connections Navigator

    When I add a database to my Connections Navigator, only one Schema is visible under the DB. I am unable to view other schemas to which the user has access.
    How do I view the other schemas?

    Yes.. Thats missing in 10.1.3.0.4(bug 5027141)
    Check forum: Cant view objects from another schemas

  • How to drop several indexes

    Hi.
    Could anybody tell me how can i drop several bad indexes.
    There are lots of indexes to columns which have duplicated values. I need to drop these all indexes. but not in manual way like
    drop index one;
    drop index two;
    Is there some way of inserting a select statement into drop? And how to run it for all tables in schema?

    As usual Jonathan's advice sums it up pretty good. I'm all for using Oracle or a script to identify indexes for 'potential' removal but I'm not convinced you can automatically remove them safely without considering other factors that Oracle simply can't know.
    IMO indexes should never be added without a valid reason. Part of the problem is that the reason is often never documented anywhere. Another part is that as incremental app changes are made Oracle may start using that index for purposes other than the original reason.
    Some indexes that might be considered 'duplicate' in an OLTP environment might not be duplicate at all for OLAP purposes. I have often created a new index that adds a single column to an existing index just so that a key query can use the index to get the column value and not have to access the table of that index; sort of a mini index-organized table that provides one or two commonly queried columns in the index to avoid table access.
    If you drop one of those 'duplicate' indexes it could cause a lot of execution plans to change.

  • 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,

  • SQL Server CE 3.5 SP2 - SQLCE Toolbox / Automated Database Schema Upgrade Scripting / Drop Index

    I am provisioning for automated database schema upgrades in a Windows Forms Application (VS2010/VB) which uses SQL Server Compact 3.5 SP2.  A portion of the schema upgrade procedure uses TSQL commands passed to SQLCE like the following:
    cmd.CommandText = "DROP INDEX [SaleComps$ProjID]"
    cmd.ExecuteNonQuery()
    However, when this command is processed by the SQLCE engine, I get the following error:
    Command: DROP INDEX [SaleComps].[ProjID]
    Error: The specified index does not exist. [ ProjID ]
    But, if I try to recreate the index (or try to change the index column) I get the following errors which indicate that the index is still there:
    Command: ALTER TABLE [SaleComps] ALTER COLUMN [ProjID] nvarchar(20) NULL
    Error: Cannot alter a column that is part of a key or an index. [ Index Name = SaleComps$ProjID,Column = ProjID ]
    Command: CREATE INDEX "SaleComps$ProjID" ON "SaleComps" ("ProjID" ASC)
    Error: The specified index already exists. [ SaleComps$ProjID ]
    Any ideas why this would not be working? Thanks!
    -BGood

    No, I was guessing at the syntax from reviewing other web postings, some of which were in different SQL dialects. 
    While your SQLCE Toolbox did not provide the DROP INDEX command, it did provide most of the "Schema Diff" scripting commands.  In hindsight, maybe SQLCE Toolbox should recognize when schema differences involve a Column which is used in an index, and
    DROP the index before executing the ALTER COLUMN command, then re-CREATE the index with the modified column.
    Despite this shortcoming, I am very thankful for the help provided by SQLCE Toolbox, and learned a little more about SQL scripting in the process.
    Thanks, ErikEJ!
    -BGood

  • 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 can we copy table from one schema to other schema

    Hi,
    I have create one table in one schema and i want to copy it to other schema.How we can copy table from one schema to other schema

    Hi,
    You can try something like this :-
    SQL> CONNECT SYS/SYS123@SERVER AS SYSDBA
    Connected.
    SQL> CREATE USER TEST_1 IDENTIFIED BY TEST_1;
    User created.
    SQL> CREATE USER TEST_2 IDENTIFIED BY TEST_2;
    User created.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_1;
    Grant succeeded.
    SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_2;
    Grant succeeded.
    SQL> CONNECT TEST_1/TEST_1@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY ( TEST_COL NUMBER );
    Table created.
    SQL> INSERT INTO TEST_COPY VALUES ( 1 );
    1 row created.
    SQL> INSERT INTO TEST_COPY VALUES ( 2 );
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> GRANT ALL ON TEST_COPY TO TEST_2;
    Grant succeeded.
    SQL>  CONNECT TEST_2/TEST_2@SERVER
    Connected.
    SQL> CREATE TABLE TEST_COPY AS SELECT * FROM TEST_1.TEST_COPY;
    Table created.
    SQL>  SELECT * FROM TEST_COPY;
      TEST_COL
             1
             2Regards,
    Sandeep

  • How to move one table to other schema

    Hi;
    imagine i have one schema A and i create table in this schema as test. Now i have one other schema,name is B. I wanna move my A.test table to B.test2
    How i can do it?
    thanks

    Following discussion might help How to move the table to the another schema?

  • How to include Drop index in PL/SQL

    Hi,
    In my PL/SQL, I put a drop index statement in between, but it gave me an error of
    "PLS-00103: Encountered the symbol "DROP" when expecting one of the following:
    begin declare exit for goto if loop mod null pragma raise
    return select update while <an identifier>
    <a double-q"
    My statement is structured as:
    DECLARE
    BEGIN
    DROP INDEX index_name;
    COMMIT;
    END;
    Why is this error occuring? When I execute the drop index statement seperately it is ok. When i put it in the PL/SQL it gave me error.
    Do I need special syntax to include a Drop index statement in a PL/SQL?
    Thanks

    Any DDL commands in PL/SQL must be executed using dynamic SQL:
    execute immediate 'drop index index_name';

  • How to Drop an index from a used table. online

    I need to drop an index from a table that is constantly used , read and write.
    The DML's are locking the table and preventing the index drop (ORA-00054: resource busy and acquire with NOWAIT specified )
    I tried to lock the table first - using 'lock table TAB1 in exclusive mode'
    but when i ran the 'drop index' command , the drop (as all DDL's) first commits and this frees the lock which cause again the ORA-00054: resource busy and acquire with NOWAIT specified error.
    I would appriciate any help .I can't take the DB or table or Application writing to the table offline. I need something like 'create index IND1 online' for DROP but there is none as far as I know...
    Thanks in advanve.
    Amit Zor

    "It is requsted for the removal of an ORDER BY clause from a CPU consuming query.
    The extra field enables me to remove it as the result set comes back ordered by the index"
    It might do that today, but it is not guaranteed to do it tomorrow. Oracle may be able to retrieve the records ordered using that index, but I would leave it in your query if you are depending on the rows being ordered. The CBO is smart enough to not actually sort the rows (i.e. act on the ORDER BY clause) if it can get them sorted using the index, but if it decides to use another access path for one of many reasons your results will not be sorted without the ORDER BY.
    Since the CBO seems to think that your existing index is useful (which is why you cannot get the lock on it), your only option is to wait for a period of really low activity on the database and try it then.
    John

  • How does Apex access and manage db objects in other schemas?

    I'm looking for a description of how Apex accesses and manages database objects in other schemas.
    I'm sure I've seen such a description somewhere earlier but am unable to find it again...

    Hi Rene,
    When you are connected to sqlworkshop, it is basically connected to the sceham owner of the workspace. If you execute the query
    select sys_context( 'userenv', 'current_schema' ), user,  username from user_users;you would see the schema and user(currently connected) and schema owner through which you have logged in. The user will have all the privileges granted to schema owner. So basically you get connected through APEX_PUBLIC_USER and it has all the privileges of the schema owner.
    In order to run scripts in another schema you would need grants on other schema same like you are connected to user A through sqlplus and wants to create objects in schema B. For example lets say you want to create a table in schema B and you have create table privileges in scehma B , you can execute command create table B.emp as select * from A.emp;
    I hope this answers your question.
    Regards,
    Manish

Maybe you are looking for

  • Can I use an iMac as a display for a Wii & Playstation 3?

    Hello folks, My GF and I are planning to buy a 24" iMac and we are planning to replace our old boxy television with the iMac. Can someone please tell me if it's possible to connect a Wii or a Playstation to the iMac, or should I keep the old telly ha

  • Link to contact Adobe Examination Support Team

    Guys~ I become Adobe Certified Expert (Flex 3 with AIR) as on 22nd Aug 09 but till the date (Now it is almost 3 days) I haven't received any email from ADOBE about my exam. On exam report my Candidate Id is showing as pending. I tried a lot to get in

  • QT movie will not pre-load text track for chapters when streaming

    We have been trying to stream quicktime files with chapters for some time and have followed every tutorial, message board advice and trick to get this to work but with no luck. I am unable to get the chapters to show up in QTplayer when the video is

  • E in upper left hand corner

    I figured out why my phone battery life was so short lived, due to the mail settings and somethign to do with push.  AFter changing mail settings to manual, now all I get in the upper left of camera is E, hardly able to connect wirelessly, how do I f

  • Can CTI OS agent desktop 9 be configured for different desktop modes?

    Can CTIOS agent desktop be configured for different modes e.g. Normal, open, on top, stealth or agent selectable?