EXP or EXPDP for a specific Schema

I know how to exp a schema using it's userid :
exp scott/tiger file=emp.dmp log=emp.log
But if I want to exp SCOTT using the SYS login, how would be the command? I did not found the relevant switch/parameter of the command.

Use this command:
exp sys/<whatever the password is> file=emp.dmp log=emp.log owner=SCOTT;
it would throw a warning saying that sys has to be used as sysdba and would ask you for the username and password.
username: / as sysdba
this would work..
Edited by: shivu on Aug 11, 2010 11:07 PM
Edited by: shivu on Aug 11, 2010 11:12 PM

Similar Messages

  • Having the connection object for the specific schema

    hi
    My application interacting with the database of having many no of schema's. I need to create a connection object which is pointing to the specific schema in my database. This is help me to avoid writing schema name in the query every time.
    Thanks
    Siva

    How to specify the schema name in properties file?
    Say for example, i created properties file like that,
    Properties props = new Properties();
    props.setProperty("user", "username");
    props.setProperty("password", "password');
    In which property i can set for schema?

  • Total space used by indexes for specific schema

    Hi all.
    Running Oracle 9.2.0.4.
    Is there a way I can see how much index space is used for a specific schema? I query index_stats and it returns 0 rows but my stats were updated this morning.
    Any input is apreciated.
    Thanks

    Hi,
    Index space and index stats are two different things.
    What you are interested to know?
    1) How much space is used by index for a particular schema
    select sum(bytes)/1024/1024 from dba_segments
    where (owner, segment_name) in
    (select owner, index_name from dba_indexes where
    owner = '<schema you are interested in>')2) Is the stats gathered on index
    select index_name, last_analyzed, num_rows from dba_indexes where
    owner = <'schema you are interested in >'Regards
    Anurag

  • Exclude specific schema using EXPDP

    Hello ,
    Can anyone tell me have to exclude specific schema in full expdp of the database
    i am using aix 5.3 and 10.2.0.4.0
    Regard

    hi
    exclude.par contains below statement
    userid=system/oracle10g
    directory=dumplocation
    dumpfile=expexcludeschema.dmp
    logfile=expexcludeschema.log
    exclude=schema:" = 'TEST'"
    but i am getting following error
    ORA-39001: invalid argument value
    ORA-39038: Object path "SCHEMA" is not supported for SCHEMA jobs.
    Regards

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • How to export objects of specific schema?

    I need to export object of specific schema so please let me know how?
    Thanks,
    Waheed.

    First thing you want to do - decide whether you will use the exp/imp or the expdp/impdp (data pump) routines.
    To make THAT decision for 10g/11g look at CHapter 11 of the Concepts manual. (no decision in 9i - no data pump)
    Once that decision is made, use the appropriate parameters as found in the Utilities manual - for every version from Oracle version 5 on. The parameters are different between exp and expdp

  • How to connect and export specific schemas in SQL plus

    Hello,
    Wanted to clarify on a few things.
    - Can an Oracle 10g Release 10.2 client be used to connect to a oracle 10.1 database?
    - Is there an option to "connect" (not refer) to a specific schema, say "SchemaA" in SQL plus in order to run a specific sql code on this schema alone?
    - How can we export a specific schema as a dump file in SQL plus-what is the syntax? Assuming username=U;password = PW; Database=DB and schema = Sch
    Thanks a lot.

    - Can an Oracle 10g Release 10.2 client be used to connect to a oracle 10.1 database?
    Yes. O10gR2 client can be used to connect all version of Oracle instance.
    - Is there an option to "connect" (not refer) to a specific schema, say "SchemaA" in SQL plus in order to run a specific sql code on this schema alone?
    connect ShcemaA/pwd@hoststring.
    for e.g.
    connect scott/tiger@oradev
    conn scott/tiger@oradev
    - How can we export a specific schema as a dump file in SQL plus-what is the syntax? Assuming username=U;password = PW; Database=DB and schema = Sch
    Export can be done on Command promt not on SQLPLUS prompt.
    try the following to know all the parameters and usage of exp command.
    c:\> exp help=y
    exp scott/tiger FILE=scott.dmp OWNER=scott GRANTS=y ROWS=y COMPRESS=y

  • Allow user to create objects in specific schema

    I would like to be able to grant a user/role permission to create/drop tables/views/etc.. in a specific schema, other than their own.
    It appears like I can do either
    grant create table to role
    or
    grant create any table to role
    the former allowing them to create tables in their own schema, the latter allowing them to create tables anyplace.
    Is there really nothing in the middle?
    Why....
    In my application i have a couple of "users" that are really just schemas. They are not used for users to login.
    We have actual user account(s) that are used for connecting to the db by the application.
    We have a role that all of these users belong to.
    At certain points in our application, our use needs to modify one of these application schemas.
    I do not want the user to be able to modify any other schema in the database.
    I can't be the first person to have encountered this. I'm hoping that there is some clever solution that I have just missed thus far.
    10g would be ideal, 11g only would be ok.
    Thanks.
    Edited by: 854248 on Apr 23, 2011 8:54 AM

    854248 wrote:
    I would like to be able to grant a user/role permission to create/drop tables/views/etc.. in a specific schema, other than their own.
    It appears like I can do either
    grant create table to role
    or
    grant create any table to role
    the former allowing them to create tables in their own schema, the latter allowing them to create tables anyplace.
    Is there really nothing in the middle?
    Why....
    In my application i have a couple of "users" that are really just schemas. They are not used for users to login.
    We have actual user account(s) that are used for connecting to the db by the application.
    We have a role that all of these users belong to.
    At certain points in our application, our use needs to modify one of these application schemas.
    I do not want the user to be able to modify any other schema in the database.
    I can't be the first person to have encountered this. I'm hoping that there is some clever solution that I have just missed thus far.
    10g would be ideal, 11g only would be ok.
    Thanks.
    Edited by: 854248 on Apr 23, 2011 8:54 AMYou can give them CREATE ANY TABLE/VIEW privileges and then limit their actions by DDL triggers:
    http://psoug.org/reference/ddl_trigger.html
    http://www.java2s.com/Tutorial/Oracle/0560__Trigger/AFTERDDLONSCHEMA.htm
    Regards
    Gokhan

  • How grant all the privilege of a specific schema to a user?

    How grant all the privilege of a specific schema to a user?
    I already create a new schema and import the neccessary data for that schema.
    Now I want to assign all the privilege for that schema to user HR (let user HR become the owner of that schema). How to deal with it?
    Edited by: qkc on May 13, 2011 10:45 AM

    qkc wrote:
    How grant all the privilege of a specific schema to a user?
    I already create a new schema and import the neccessary data for that schema.
    Now I want to assign all the privilege for that schema to user HR (let user HR become the owner of that schema). How to deal with it?
    Edited by: qkc on May 13, 2011 10:45 AMThere is no way - by definition - that one user can "become the owner" of another schema. A schema is, by definition, the collection of objects that belong to one owner.
    but perhaps that is just semantics in the context of what you really want.
    use sql to build sql:
    spool doit.sql
    select 'grant select on someuser.' || table_name || ' to someotheruser;'
    from dba_tables
    where owner = 'SOMEUSER';
    spool off

  • Retrieve all attributes for a specific objectClass using ldapsearch

    Hi everybody,
    Question : is it possible to retrieve all attributes for a specific objectClass (by example person) using ldapsearch tool ?
    I tried something like that, but it doesn't work :
    ldapsearch -v -h XXX -p XXX -b "cn=schema" -s base "objectclass=person" attributetypes
    Thanks a lot,
    Franck

    Ok, Thanks for you help,
    But my question is : For a specific objectClass, by example, I would like to have all attributes for the objectClass called "inetOrgPerson"
    something like that :
    ldapsearch -D "cn=Directory Manager" -w pwd -h host ...objectClass="inetOrgPerson"
    and the response could be :
    audio || businessCategory || departmentNumber || displayName || givenName || initials || jpegPhoto || labeledUri || manager || mobile || pager || photo || preferredLanguage || mail || o || roomNumber || secretary || userPKCS12
    I dont't know how to do ????
    Thanks
    Franck

  • Accessing a specific schema with JDBC

    My database has several schemas and I'm trying to access a specific schema using the following code snipet:
    Class driverClass = Class("oracle.jdbc.driver.OracleDriver");
    Connection jdbcConnection = Drivermanager.getConnection("jdbc:oracle:thin:@datastore:1527:dbname","username","password");
    IDatabaseConnection connection = new DatabaseConnection(jdbcConnection);
    Is there a way to access schema mike27 on dbname? I keep getting the schema pointed to by the public synonyms.

    Hi,
    I would think that you have to override the doDML method in ADF BC to then insert/update the values in the scott schema. For this the main schema must have privileges on teh Scott schema to perform the operation
    Frank

  • Impdp specific schema from dump which has been created using full=y

    Hi,
    I have received a dump (expdp) which has been created using the parameter FULL=Y. I just want to import (impdp) only one schema into my database. I have used remap_schema and exclude=grants. The schema i want to import is carried out successfully, but in my import log i keep getting the messages such as :
    ORA-31684: Object type TABLESPACE:"TS_BCST1" already exists
    ORA-31684: Object type USER:"OUTLN" already exists
    ORA-31684: Object type SEQUENCE:"SYSTEM"."MVIEW$_ADVSEQ_GENERIC" already exists
    How can i use impdp only to import objects under my specific schema and not have impdp attempt to create system/sys users and its objects, create tablespaces, etc etc.
    Kindly assist.
    Regards,
    Karan

    Use SCHEMAS parameter in the impdp command to import the scpecific schema.
    Eg.
    impdp system/password schemas=user1 remap_schema=user1:user2 directory=dir dumpfile=user1.dmp...........
    You can specify list of schemas you want to import with , (comma) saperated in the SCHEMAS parameter.

  • Partition by Range(c1,c2) and have c1 to be MAXVALUE for a specific c2

    I have a table where two of the columns are used for PARTITION BY RANGE(C1,C2). Is it possible to have a partition scheme where for a specific c2, c1 can be MAXVALUE? The number of records of for a specific C2 are very few and I would like to have just one partition for all C1 values.

    >
    I have a table where two of the columns are used for PARTITION BY RANGE(C1,C2). Is it possible to have a partition scheme where for a specific c2, c1 can be MAXVALUE? The number of records of for a specific C2 are very few and I would like to have just one partition for all C1 values.
    >
    If you want one partition for all C1 values for a particular C2 then you need to reverse the order of the partition keys and use PARTITION BY RANGE(C2, C1).
    drop table myTable cascade constraints;
    CREATE TABLE myTable (c1 number, c2 number, description varchar2(30))
    PARTITION BY RANGE (C2, C1)
      (PARTITION p_before3_5 VALUES LESS THAN (3, 5),
       PARTITION p3_5_to_4_5  VALUES LESS THAN (4,5),
       PARTITION p4_5_to_5  VALUES LESS THAN (5,maxvalue),
       PARTITION p_special_6  VALUES LESS THAN (7,0),
       PARTITION future     VALUES LESS THAN (MAXVALUE,0));
    insert into myTable (c2, c1) values (5, 3);
    insert into myTable (c2, c1) values (6, 3);
    insert into myTable (c2, c1) values (6, 8);
    insert into myTable (c2, c1) values (7, 3);
    select * from mytable partition (p_special_6);
    C1,C2,DESCRIPTION
    3,6,
    8,6,The 'p_special_6' partition captures everything for C2 = 6 assuming that the min value of c1 is 0. Note that the previous partition has to be defined as '(5, maxvalue)' to capture everything less than C2 = 6.
    See Example 4-21 Creating a multicolumn range-partitioned table in the doc link already provided for other examples.

  • Set the role to allow to do anything in a specific schema

    Hi all,
    I'm not sure which role or right a I must set to my users.
    I want that all users can do anything in the a specific schema. Users can create, alter, drop, insert, delete, ... a table, index, sequence, etc.
    My users are of developpers. But, I want to be sure that a developper won't alter another schema excepted his schemas.
    I'm not sure the good role to choose to allow theses rights.
    Anyone could help me please?
    Jimmy

    I would think that the resource and connect roles would be the best for your needs:
    select * from dba_sys_privs
    where grantee = 'RESOURCE';
    GRANTEE PRIVILEGE ADM
    RESOURCE CREATE TYPE NO
    RESOURCE CREATE TABLE NO
    RESOURCE CREATE CLUSTER NO
    RESOURCE CREATE TRIGGER NO
    RESOURCE CREATE OPERATOR NO
    RESOURCE CREATE SEQUENCE NO
    RESOURCE CREATE INDEXTYPE NO
    RESOURCE CREATE PROCEDURE NO
    Note that the role does not include the "create view" privilege, so you will need to grant this as well.
    You will also need to give them privileges on tablespaces.
    On 9.2 and before, the connect role would have most of these privileges, but since 10.1 (or 10.2) that role has only "create session" privilege.

  • Can we relink the executables for a particular schema using adadmin utility

    Is it possible to do the following tasks for a particular schema (say inv):
    1. Relink the executables for INV schema using adadmin utility.
    2. Regenerate the forms for INV schema using adadmin utility.
    3. Check if there are any invalid objects in the database where the issue is replicated INV schema.
    Thanks,
    Vijay

    Hi,
    Is it possible to do the following tasks for a particular schema (say inv):
    1. Relink the executables for INV schema using adadmin utility.
    2. Regenerate the forms for INV schema using adadmin utility.Yes, it is possible for specific schema -- See (Note: 141118.1 - How To Relink Forms Library Files Using Adadmin) for details.
    3. Check if there are any invalid objects in the database where the issue is replicated INV schema.Through adadmin, it is not possible for specific schema. To check the list of invalid objects under the INV schema, you need to run this query:
    SQL> select object_name, object_type
    from dba_objects
    where status = 'INVALID' and owner = 'INV';Regards,
    Hussein

Maybe you are looking for

  • Large Library Consolidation - What happens if I need to "Stop?"

    Hi - I have a large (in my opinion) music library of 23k songs and just set up a home server. Here is the problem, I have all of my music on one drive on the server (don't ask how long that took), I want to consolidate my current library on the same

  • Upload csv file to sap in background

    Dear Expert, Please help me I want to record vendor data in background mode for this i used SHDB and has done recordings then i used gui_upload function in program and successfully uploaded CSV file without any error, then i have created session when

  • Connect two different DP to a chart!

    Hi @all, does someone has connected two Data Provider to one line chart?? ! Scenario: I use "two" queries! In the columns i use a key figure (for example sales)! In the rows i can see the last 12 month! The second query is exactly a copy of the first

  • REP-52251 and FRM-41214

    Hi All, I've made a detailed investigation, but haven't fund solution, that works for me: The goal is to show on the web html, and pdf reports. My code is: repid report_object; v_rep varchar2(100); rep_status varchar2(20); pl_id paramlist; BEGIN pl_i

  • String into array in oracle

    Hi, I have value in a column in oracle table as "DE","DS","KJ". now,How can I get them into string array? Is there any API to get this .. Thanks Chat