Export One Schema to Another Schema

Hi
I would like to export some of my tables from one schema to another schema.
Can you help me on this
regards
Ghouse

Here you resuire two steps EXPORT AND IMPORT
STEP-1
First run the export utility (name EXP80.EXE) in the ORANT\BIN directory and make the .DMP file.
STEP-2
Secondly run the import utility (name IMP80.EXE) in the ORANT\BIN directory and call the above .DMP file
===============
THE END
===============

Similar Messages

  • How do I move a table from one schema to another schema on Oracle XE?

    How do I move a table from one schema to another schema on Oracle XE?

    Hi,
    I tried to use the insert/select statement that you had given, it did not work.
    The error is ORA-00913: too many values.
    But finally what I did was, I went into the system schema where the table was and generated the DDL through the utilities and afterwards I imported them into the schema that I am currently working on. It solved the problem!
    However I am still curious to know why the insert/select statement did not work? Do you know any site/tutorial which gives a real time example?
    Thank you
    Skye

  • How do I move a table from one schema to another schema?

    How do I move a table from one schema to another schema?

    Grant access to the table from the source schema to destination schema.
      GRANT SELECT ON <TABLE_NAME> TO  <DESTINATION SCHEMA>A simple way would be to use CREATE Table with select syntax (in destination schema)
      CREATE TABLE <TABLE_NAME> AS SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME><li>However, you would be in <b><u>trouble when the table has index,constraints and triggers</u></b>.
    So you can better of grab the DDL statement of the table(and any additional components) andd then create the table in the destination schema.You can use SQL developer, Toad or Apex's Object browser for this.
    After the table is created, Insert the records using SELECT.
    INSERT INTO <TABLE_NAME> SELECT * FROM <SOURCE SCHEMA>.<TABLE_NAME>This question is discussed in great detail in this <b>AskTom thread</b>

  • How can i access all the objects of one schema from another schema

    Dear All,
    How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
    Thanks in advance,
    Mahi

    First of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
    As long as you have proper privilege on target object. You can access it with or without synonyms.
    Assuming you have proper privilege of objects, you can use following command to assume schema owner.
    ALTER SESSION SET CURRENT_SCHEMA = Schema_owner

  • Best LKM to move data from with in Oracle from one schema to another Schema

    Hi Gurus,
    What is the best KM to move data from one schema to another schema within same oracle database.
    Thanks in advance

    Dear,
    If your source and target are on the same database server then you dont need LKM.
    You have to 1. create one data server for the database server
    2. Create one physical schema for your source and another physical schema for your target under the above created data server.
    3. Then create models for each above created physical schema
    In this case you just need IKM knowledge module
    Please refer http://oditrainings.blogspot.in/2012/08/odi-interface-source-target-on-same.html
    If your source and target are on different server then you must create two different data servers in topology. You have to use LKM.
    The best LKM to use is LKM oracle to Oracle dblink. But you should have proper grants to use it
    If your source has very few records you can go with LKM SQL to Oracle other wise use LKM oracle to Oracle dblink

  • Administrate Objects in Schema by Another Schema

    Hi,
    I am in a scenario to give administer privilege on one schema to another schema only.
    Let me exxplain my scenario with an example.
    I have a schema named HR in my database. Now I have create another schema named SH.
    Now I need to do all operations like create table, create procedure etc on HR schema from SH schema.
    And please note that I can't give create any table, create any procedure etc as it will be a big security breach.
    Please help me to sort out this issue.
    Regards,
    Savad

    user9292816 wrote:
    Hi,
    I am in a scenario to give administer privilege on one schema to another schema only.
    Let me exxplain my scenario with an example.
    I have a schema named HR in my database. Now I have create another schema named SH.
    Now I need to do all operations like create table, create procedure etc on HR schema from SH schema.
    And please note that I can't give create any table, create any procedure etc as it will be a big security breach.
    AFAIK , without create any table/ or any any super privilege like DBA etc , you cannot achieve this.
    Regards
    Rajesh

  • How to defer constraint of one schema from another schema

    Hi All,
    I am having a requirement of migrating data from one schema(SCHEMA_A) to another schema(SCHEMA_B). So I tried to implement the same using PL/SQL.
    Because of foreign key contraint while migrating child table, Oracle throws an error message like parent key not available.
    So I tried to set the all contraints to deferred and after completion of migration i planned to set all the contraints to immediate.
    But Here I am executing the procedure from schema(SCHEMA_C) which has rights to access SCHEMA_A and SCHEMA_B.
    How could I able to defer all the constraint in SCHEMA_B from SCHEMA_C?
    Thanks in Advance,
    Antany.

    Yes,
    You could run something like this, for foreign keys:
    BEGIN
      FOR cur_rec IN (SELECT table_name, constraint_name FROM DBA_CONSTRAINTS WHERE OWNER = <owner> AND CONSTRAINT_TYPE = 'R' )
        LOOP
          EXECUTE IMMEDIATE 'ALTER TABLE <owner>.' || cur_rec.table_name || ' DISABLE CONSTRAINT ' || cur_rec.constraint_name;
        END LOOP;
    END;
    /

  • To kill session in one schema from another schema

    Hi Team,
    I got a problem like a table from one of my schema has been locked. I am getting 'ORA-00054: resource busy and acquire with NOWAIT specified' error when trying to delete rows from that table or even when trying to truncate that table.
    Let the table be 'T1' present in schema 'VIEW'
    I tried to kill the session which is active for that schema by below query
    select sid,serial#,status from v$session where username='VIEW' and STATUS = 'ACTIVE';
    alter system kill session '681,2586';
    But i couldn't do the above as i don't have DBA privilege for that. But i have DBA privilege for another schema let it be 'ADMIN'
    Now how can i kill the session in schema 'VIEW' from schema 'ADMIN'
    can any one get me solution.
    Thanks in Advance
    11081985

    I got a problem like a table from one of my schema has been locked. I am getting 'ORA-00054: resource busy and acquire with NOWAIT specified' error when trying to delete rows from that table or even when trying to truncate that table.
    Before you do anything why don't you actually find out WHY that table has been locked.
    You generally should NOT be killing sessions without knowing what is causing the problem to begin with.
    Then you also need to determine if you should use KILL SESSION or instead use DISCONNECT SESSION and well as whether the use of IMMEDIATE is appropriate.
    Each of those choices acts differently. Many people use KILL when they should really use DISCONNECT.
    See DISCONNECT SESSION Clause and KILL SESSION Clause in the ALTER SESSION chapter of the SQL Language doc
    http://docs.oracle.com/cd/E11882_01/server.112/e17118/statements_2014.htm#i2282145

  • Copy data from one schema to another schema tables

    Hi,
    I was doing a copy using sql developer copy feature, data copy worked perfect but for few table data didn't move there are about 30 tables from schema prod to schema dev i need to move tables are already created only data needs to be moved from prod to dev
    Can you suggest me any method were I can move all the tables data at a time from one schema to another. Please suggest.
    Thanks
    Sudhir

    Hi,
    If table structure is the same then:
    insert into dev.table_name
    select
    from
      prod.table_name  --if prod is in another database change to prod.table_name@db_link_to_prod_db
    commit
    ;Hope this helps. Otherwise give some more info about where these schema's are.
    Regards,
    Peter

  • Accesing the tables of one schema in another schema

    Hi
    I have doubt .. suppose i have a user called DEMO and it has tables . now i have a another user called DEMO1
    my doubt is . how can i get the tables of DEMO user into DEMO1. If update the table in DEMO1 that should reflect
    in DEMO user. help me.........

    Before going further, you should clarify your requirements and make sure you have a good understanding of:
    - Synonyms
    - Views
    - Replication such as materialized views
    - Basic security including object grants
    Assuming this is all in the same database...
    If you just need to have one user access data in another schema, you need grants.
    If you need to make it 'look like' the data in that other schema is in your schema, you should be looking at synonyms or views.
    If you need to capture the data periodically from the other schema, you should be looking at materialized views.
    If you are straddling multiple databases then the choices may be less clear-cut but you should still be looking at these capabilities to assemble a solution
    From what you have said so far, triggers should not even be on your radar.

  • Cannt execute stored proc of one schema in another schema from java app.

    I am posting my problem in this forum as i i though it could be server-independent.
    I am working on apache tomcat and spring framework with Oracle db (schema/user A)
    We access oracle db from our java application by setting jndi and works fine.We have sqlstatements, stored procs and functions all run fine.
    Now we create a role (DBROLE) with all permissions to that original db schema/user(A) . We created another empty schema B and assigned that role(DBROLE) to that user B.
    (We grant all kind of permissions on tables/packages of schema A to user role DBROLE and also created synonyms)
    Intentions are: to access the schema A though schema B from application and avoiding direct access.
    In our spring application, we replaced database-settings with schema B.
    Things work fine: When its plain SQL statement is run from Java code but Stored proc wont run and we get
    'Wrong num of arguments/data types' error.
    Also all stored procs are in packages.To execute stored proc in java code, we use SimpleJdbcCall.
    I also checked run stored proc from schema B and its works. Only from web app, it doesnt work.
    Please suggest,what should be done to make this working or if there is other alternative.
    Thanks

    Instead of importing a scema in another schema specifiy the schemas in the external-schemaLocation property.
    SAXParser saxParser = new SAXParser();
    saxParser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation", "xmlschema1.xsd, xmlschema2.xsd");

  • Importing table data from one schema to another schema

    Hi All,
    I exported tablerows only of Schema A, and same I am trying to imported in Schema B.
    While importing I am getting oracle error "row rejected, Integrity constraint violated
    parent key not found".
    What I did is I disabled all the constraints through script in Schema B, and imported data. Data imported successfully, but while executing the enabling the constraints script in Schema B constraints are not enabled due to parent and chile relationship problems, even I executed this script many times.
    Note:- Schema A and Schema B are same structure, Schema A contains data but
    Schema B does not
    Can any body have any idea on this?
    Thanks,

    Hi,
    But I want data to be completely imported without losing.
    I am trying to disable the constraints using the following queries for enabling and
    disabling
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'P'
    Foreign constraints  -
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'R'
    -- Check constraints ---
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'C'

  • Importing schema into another schema using enterprise manager on 11.2.0.3

    I am using OEM database control not Grid Control.
    I am exporting a schema using OEM Data Movement and I want to REMAP it to another schema.
    But it does not populate the Destination Schema with any other schemas other than the Source Schema.
    I only get one item in Destination Schema dropdown which is the same as the Source Schema.
    Any ideas why the Destination Schema dropdown is not populated with all the schemas?
    This is on Windows 2008 R2 64-bit
    This worked fine in 10g versions.
    Edited by: user563987 on Feb 20, 2012 1:48 PM

    I have confirmed with Oracle support that it is a bug which was suppose to have been fixed in this version but obviously is not. They have opened a new bug.
    When you are you are on Grid Control 11.2.0.5? I am not seeing this version? Or am I missing something?
    Thanks.

  • Grant access to all the views created in user schema to another schema

    How to grant access for all the views created in own HAGGIS schema to comqdhb schema on the HAGGIS database.
    Oracle Grant Privileges
    ===============
    Object privileges assign the right to perform a particular operation on a specific object
    I read that we can use select 'grant select on' ||view_name||'HAGGIS' user_views where owner='COMQDHB'
    Is this right
    Oracle System Privileges
    ===============
    System privileges should be used in only cases where security isnt important,because a single grant statement could remove all security from the table
    Role based security
    ============
    Role security allows you to gather related grants into a collection-since the role is a predefined collection of privileges that are grouped together.privileges are easier to assign to users.
    [http://www.dba-oracle.com/art_builder_grant_sec.htm]
    can we grant select update to all the views at a time to the other schema.
    Are there any other ways to secure the data other than creating users and assigning roles.
    Thank you
    Edited by: Trooper on Dec 23, 2008 9:24 AM

    I think what was suggested was that you use SQL to generate the grants on each and every view, that is, you use SQL to generate SQL where the SQL being generated is "grant select on view_name to role'"
    If you users to connect to Oracle you have to create usernames for them though if the users only connect via an application the application might run just as one user and access to the application is controled via application security. The control on the application can be via Directory Services such as OID or MS Active Directory. User access to Oracle can also be controlled via OID.
    To connect to Oracle you can use OS authenication (not recommended), usernames with passwords, or via Advanced Security Option which supports single sign-on products like Kebros or Oracle Internet Directory etc....
    Example using SQL to generate SQL
    How do I find out which users have the rights, or privileges, to access a given object ?
    http://www.jlcomp.demon.co.uk/faq/privileges.html
    HTH -- Mark D Powell --

  • Importing (imp) a dump (exp) from a schema into another schema

    Hello
    -I know I should read the manual-
    -I also know that there are some experts here who only need two lines to explain it- :)
    I have a dump file from a complete schema (lets call it xx).
    I habe another schema (yy) in the same database and:
    I would like to put that dump file into the schema yy.
    How does the imp command looks like?
    Thank you in advance!

    How does the imp command looks like? To get help say at OS prompt.
    imp help=y
    -aijaz

Maybe you are looking for

  • How do I Save As... in Pages

    The Help says to Choose File > Choose Save As and rename the document... well if there was a Save As in the list, I would not be posting this. How do I get past this improvement?

  • Copying data to Xserve unacceptably slow!!

    Not really sure what went bad along the way, but I've recently noticed that with one of the arrays in my Xserve RAID (configured RAID 5 + Hotspare) copying data to the array took an unacceptably long amount of time...long enough where I knew somethin

  • Apple Studio Display 19.8" appears out of focus

    Display: 1344 X 1008, 100Hz, cols. millions. Resolution/colours look good, but screen does appear to be slightly out of focus, text a bit fuzzy. Which is no good for a graphic pro.! No its not me and my out of focus glasses! I use an Apple Cinema Dis

  • How can I get Acrobat 9 to recognize my new device, epson Workforce 3540 all-in-one.

    How can I get Acrobat 9 to recognize my new device, epson Workforce 3540 all-in-one.

  • Smartform OTF error

    Hi, I have followed the steps for converting a smartform to a PDF file. But the OTF data table is initial. Can someone point me to what i am doing wrong? Best regards Lisa M Simonsen