How to rename a table in the schema of another user

Hello! How can I rename a table to another user? I'm sysdba. I can't recreate just, because it is very huge and it will take a lot of time to move data to the left and to the right.

ALTER table make.orders rename make.orderhistory.

My bad, how it works

SQL>
SQL> alter table maran.test1 rename to test2;
alter table maran.test1 rename to test2
                                  *
ERROR at line 1:
ORA-00955: name is already used by an existing object

SQL> alter table maran.test1 rename to test3;

Table altered.

To apologize

Tags: Database

Similar Questions

  • How to delete all TABLEs in the schema SYS that are created from 09:15?

    Unfortunately a script created a lot of tables in the diagram (= SYS) and bad Tablespace (= SYSTEM).

    How can I delete all TABLES that are created inTablespace = SYSTEM and SCHEMA = SYS (in a DDL command)
    respectively for the past 3 hours from 09:15 to 25 Sep 2011?

    Alternative: How can I move these tables in another schema (for example ATEST) and Tablespace (USERS)?
    Is this possible with Oracle XE or Oracle Enterprise?

    Peter

    You can use ALTER TABLE... MOVE. It offers a TABLESPACE clause, which allows you to choose a different tablespace as target. Refer to the documentation for your version of the database.

  • How to rename multiple tables at the same time?

    Hello
    I would like to know how to rename several oracle both tables? for example, I test, test_1 test_3 ETC... THE TABLES and I would like to rename them with KC_test, KC_test_1, KC_test_3, etc...

    How to make them at once rather than one by one...

    Thank you.

    Use replace ('KC_table_name', 'KC_');

  • Creating table in the schema has with the user B and granting permissions to the user C

    Hello, I have a problem fun - we have a large table which requires a batch to make millions of updates, and he needs to finish more quickly. It takes several hours as an update, but a select create table did the same thing in about a minute. Yay! Then we just delete the old table and rename the new table to the former, rebuild all the index and grant select/insert/update/delete permissions to another user who needs access... and there is the problem, Oracle said insufficient privs.

    We have A figure, which is the owner of the table, userid B who done all the stuff of application batch and userid C which performs inserts for a process of middleware. None of them are actual users, of course. We want that user B to do the ETG, rename, rebuild and re-grant of the authorisation of the index. But user B apparently cannot grant permissions on objects in the schema A to user C, even if B has created the table and has the role DBA (not ideal, I know)!

    What's really crazy is that there is no sense unique user b can grant permissions to user C, which is to:

    grant select any table USER c;
    grant insert any table USER c;
    grant update any table USER c;
    Grant delete any table USER c;

    It seems really perverse can create tables in diagram A and even grant C privs "whole table" that user B, but may not grant privs specifically on this object in the schema A, even with DBA privs. I must be missing something... right?

    Yes. By default, the stored procedures are stored procedures from DEFINER rights. If A is the owner of a stored procedure, this stored procedure can do whatever A enjoys the privileges to directly. If A grants B privileges RUN this stored procedure, when B calls the stored procedure, the procedure runs with the privileges.

    I agree point stew, however, re-creating objects in Oracle is generally a bad idea and a TRUNCATE with one insert direct-path, possibly combined with the deactivation and the rebuilding of the index would be more appropriate than a DEC. If you're going to stick with this Assignment, however, that really do in a stored procedure owned by A while B has no need to CREATE ANY TABLE.

    Justin

  • Access to the content of the tables of a schema into another schema

    Hello

    I have my doubts... Suppose I have a user called DEMO and it has tables. now I have another user called DEMO1

    my doubt is. How can I get the DEMO user tables in DEMO1. If updating the table DEMO1 which should reflect

    DEMO user. Help me...

    Dear friend,

    You can consult the tables of a schema in another schema using the following steps.

    (1) you must grant privileges on table demo Demo1, here's the statement to do so.

    Grant Select, update on the table table_name to Demo1

    (2) Create in Demo1 for the table_name demo, the suite is about education to do.

    SYNONYM to CREATE or REPLACE table_name for Demo.table_name;

    (3) do the Update statement on the table table_name in Demo1. Updated these results reflected in demo when you post the update statement in Demo1.

    Hope that gives you an idea.

    Kind regards
    Ravi Kumar Ankarapu.

  • avoid triggers on all tables in the schema

    I need to put a CREATION TIMESTAMP to the timestamp of the database server (not the timestamp of session) in all tables in a schema to create and update. Is to create a trigger on all the tables in the schema a less time consuming way to do?

    Similarly, I need to set up columns such as CREATE_USER, LAST_UPDATE_USER.

    Thank you in advance.

    You can easily generate the DDL for adding new columns.

    The extent of the filling of the columns, your choice is either to use insertion befire table and triggers to update to fill the columns or the application to provide the necessary information.

    Basic trigger logic would be pretty much the same for all tables, then write a little SQL or PL/SQL to generate the code of the trigger should be simple enough.

    Depending on your application, such as web based with only one Oracle user, you may need to get the real user through dbms_application_info by the logic of the server-based application.

    HTH - Mark D Powell.

    Edited by: Mark D Powell 5 May 2010 07:48

  • Import only tables of a schema to another

    Hello
    Is there a method by which I can only import tables among all objects of a dump of export file schema.
    I a huge diagram that contains about 300 tables inside and have completed the import once. Since major changes are required in can the schema of objects in order to make them compatible with the new Oracle env, reimport all the new can cause crushing each other which is something I want to avoid strictly.

    Also, I am aware of a method in which in the clause of paintings, I can specify all tables in the schema and then put it in her parfile and then try to export and import. What is the only way to achieve this?
    Please suggest.

    Thanks in advance,

    Assume that you use 10g.
    Her you might use the data pump-it-up tool and specify the exclude statement. :)
    http://download-West.Oracle.com/docs/CD/B12037_01/server.101/b10825/dp_export.htm#sthref105

  • Hello! How is it possible to change the subscription to another product?

    Hello! How is it possible to change the subscription to another product?

    Cancel what you have and buy new

    You need to contact Adobe to do this, or you may have to pay a penalty of cancellation

    This is an open forum, not Adobe support... Click below to contact Adobe staff for help

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • How to view the activity of another user on the computer

    I want to be able to search the activity of another user, and if I am able to see what they've removed because my son told me it wouldn't matter because it has deleted his old research and e-mail. So I guess my main question is if you can view deleted the activity. I am registered as an administrator. Vista is the operating system that I use

    Set up Parental controls activity reports

    You can use activity reports to see your children's online activities.

    To turn on activity reports

    1. Parental control opened through Control Panel. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    2. Click the account you want to turn on activity reporting for.

    3. Under Parental controls, click.

    4. The title of the activity tracking, click on, collect information about the use of the computer.

    To view activity reports

    1. Open parental controls in Control Panel. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    2. Click the account that you want to view activity reports.

    3. Click view reports of activity.

    I hope this helps

    If this post can help solve your problem, please click the 'Mark as answer"If you find it useful, mark it as useful by clicking the 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • only select order granting on the view to another user from db

    Hi Expers,

    I have the table in the schema of xxx

    Dept of ESCR

    number of deptnumber
    name varchar2 (10)

    I created as

    create view insert into select * dept;

    created view.

    using this point of view I can't insert values in the area also table.


    I need to give access to only select to aaaa/scheme user...


    all can tell me how to create the role for the above scenario...

    Thank you...
    revoke dba from your_user_name;
    

    Please try Googling/docs befor posting questions...

  • How to create a table in a schema in the SOA database

    Hello

    can you please guide me how to create a table looks under custom schema available in the SOA database

    Thank you

    Valsaint

    Hello

    1. use JDeveloper to connect to your schema custom: view > Database > Database Navigator > new connection

    2. set the mpdel of your table column names, types of data, constraints (primary key, not null, foreign key, etc..)

    3. use this simplified tutorial to create the table according to your model of table create statement - Oracle/PLSQL: CREATE TABLE statement

    4. execute the statement in the SQL of JDeveloper journal for the custom connection (point 1 above).

    Let me know if you need help!

    HTH,

    A.

  • How to move a table to the other schema

    Salvation;

    Imagine that I have a scheme A and I create table in this scheme as a test. Now, I have a different schema, the name is B. I want to spend my A.test table to B.test2

    How can I do?

    Thank you

    If you create a new table in diagram B, the new table must be stored in tablespace default B. Unless you want the new table to be stored in a default tablespace, you need not specify a tablespace during the creation of the new table.

  • How to find a table, using the name of the column in the database schema

    Dear all,

    Please help me on

    using the name of the column, how to find a table name in the database schema.

    Thanks in advance

    Hello

    You can query the data dictionary views all_tab_columns and user_tab_columns.
    For example, to find the tables in the scott schema have called deptno columns:

    SELECT  table_name
    FROM    all_tab_columns
    WHERE   owner           = 'SCOTT'
    AND     column_name     = 'DEPTNO';
    

    Remember that anything inside quotes is case-sensitive.

    The all_tab_columns view has one row for each column in each table (or view) that you have the privileges to use.
    The user_tab_columns view is a subset of all_tab_columns, containing only your own tables (and views).

  • How to move a table (with the UDT as a column) to a different schema

    I have a table that has a column of user-defined type. There is a requirement to an another schema of this table as well as the UDT. I tried to create the table as, the problem is that it uses the DFU of the original schema. Is there a way to do this?

    Ex:

    User 1:

    CREATE TYPE employee_t AS OBJECT

    (employee_id NUMBER

    , employee_name VARCHAR2 (30)

    Number of salary

    dept_id NUMBER);

    Department of CREATE TABLE

    (emp employee_t

    , Bishop varchar2 (40)

    number of dept_id

    (, dept_name varchar2 (30));

    In the example above, department table has a column called emp that is UDT.

    Now on User2, if I do the following

    Create service table in select * from user1.department. Table will be created as follows. In fact I want EMPLOYEE_T also to be moved to User2.

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    EMP                                                USER1. EMPLOYEE_T

    BISHOP VARCHAR2 (40)

    NUMBER OF DEPT_ID

    DEPT_NAME VARCHAR2 (30)

    You can use expdp and impdp - but you must include the type explicitly in your dump command, since it isn't included automatically: http://dbaharrison.blogspot.de/2013/05/expdp-of-just-table-and-type-dependents.html.

  • querying table inside the schema of the IOM

    Hello

    I created a table looks in the scheme of the IOM. I want to insert data into this table custom through my scheduled task. As I try to insert data into a table that is located in the schema of the IOM itself, I hope I don't have to make a JDBC connection. Could you get it someone please let me know how can I go about it?

    Thank you
    PETREA

    You can use the statement prepared for her and use tcDataProvider (IOM) to make connections.

Maybe you are looking for

  • Satellite A110-195 shows only 3 GB of RAM

    Hello Last week I bought laptops SATELLITE A110-195 and memory KINGSTON KVR533D2S4 / 2G to expand memory to 4 GB, I want to have 4 GB, but after putting is computer shows 3 GB not 4 GB. Could you help me?Why shows 3 GB not 4 GB?

  • Satellite P300-1GN: greenish tint in the upper left corner of the screen

    I recently bought a Satellite P300-1GN, best laptop, I have ever bought! I booted up one morning to find a greenish hue in the upper left corner of the screen, at first I thought it was a graphics issue, but after looking closely, saw there was a lin

  • Is there a Firewire to laptop W520?

    Hello I want to buy the Thinkpad mobile W520 because of the mercury Adobe approved first GPU Engnie. I need for making movies. To connect the camera, I need firewire. > Have I read the straight plug, that there is no more Firewire? > At snybody exper

  • Family Safety generating emails - stolen PC

    Summary of the issueOther issues of Windows Live family safety What version of Windows Live Family Safety do you use? Version 2011 (15.4.3538.513) Choose your operating system version: Windows 7 Additional detailsHi team security for the family suppo

  • Error occurred during initialization of MAPI

    I'm trying to move my messages OE 6 from one PC to another.  When I click on file / export / Messages, I get the following message: "export could not be performed.  An error occurred during initialization of MAPI. "How can I solve this problem or mov