Data pump grant create any directory

Hello

I 've created the directory to use utility EXPDP as below.

SQL > CREATE DIRECTORY test_expdp AS ' / export/oracle / ";

1)
SQL > GRANT READING, writing ON DIRECTORY test_expdp to THE System ;

With grant command above to the directory of the user of the system, it is sufficient to take the backup of the entire database , just?.

If I take backup sage schema , gets the backup generating right, since I gave the SYSTEM grants the user.

2)
SQL > GRANT READ, WRITE on DIRECTORY test_expdp TO public ; Give it will give to all users? Otherwise, how to give some grants to all current users of in database, which can take wise on sys backup system or scheme.

3)
Can I use utility impdp to import a file, the file that generated using utility exp.?

Therese says:
Hello

I 've created the directory to use utility EXPDP as below.

SQL > CREATE DIRECTORY test_expdp AS ' / export/oracle / ";

1)
SQL > GRANT READING, writing ON DIRECTORY test_expdp to THE System ;

With grant command above to the directory of the user of the system, it is sufficient to take the backup of the entire database , just?.

Yes

If I take backup sage schema , gets the backup generating right, since I gave the SYSTEM grants the user.

2)
SQL > GRANT READ, WRITE on DIRECTORY test_expdp TO public ; Give it will give to all users? Otherwise, how to give some grants to all current users of in database, which can take wise on sys backup system or scheme.

Give the grant to the public is to satisfy all users.

3)
Can I use utility impdp to import a file, the file that generated using utility exp.?

No, this is not possible.

Tags: Database

Similar Questions

  • GRANT CREATE ANY TABLE

    Hello
    in 10g,.
    If I have:
    GRANT CREATE ANY TABLE to user1;
    then:
    1 - user1 can create a table in any schema and remove any table in any schema?

    2-can we user1 create a table in any schema and drop any table from only its own schema?

    Thank you.

    just give a try if you have a test database.

  • grant create any link to user1 database?

    Hello. Thank you for helping.


    Is there a way to do something like this:


    grant create any link to user1 database?


    I tried to create a link of database from a procedure, but has been an error: insufficient privileges.


    Any suggestions greatly appreciated.
    SQL> @dblink.sql
    SQL> CREATE OR REPLACE PROCEDURE NEW_LINKS
      2  AS
      3  NEWSQL VARCHAR2(32000) := 'CREATE PUBLIC DATABASE LINK BCM_LINK USING '|| CHR(39) || 'BCM' || CHR(39);
      4  BEGIN
      5  DBMS_OUTPUT.ENABLE(10000);
      6  DBMS_OUTPUT.PUT_LINE(NEWSQL);
      7  EXECUTE IMMEDIATE NEWSQL;
      8  END NEW_LINKS;
      9  /
    
    Procedure created.
    
    SQL> exec new_links;
    CREATE PUBLIC DATABASE LINK BCM_LINK USING 'BCM'
    BEGIN new_links; END;
    
    *
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "DBADMIN.NEW_LINKS", line 7
    ORA-06512: at line 1
    
    SQL> --
    SQL> GRANT CREATE PUBLIC DATABASE LINK TO DBADMIN;
    
    Grant succeeded.
    
    SQL> --
    SQL> exec new_links;
    CREATE PUBLIC DATABASE LINK BCM_LINK USING 'BCM'
    
    PL/SQL procedure successfully completed.
    
    SQL> --
    SQL> REVOKE CREATE PUBLIC DATABASE LINK FROM DBADMIN;
    
    Revoke succeeded.
    
    SQL> GRANT DROP PUBLIC DATABASE LINK TO DBADMIN;
    
    Grant succeeded.
    
    SQL> DROP PUBLIC DATABASE LINK BCM_LINK;
    
    Database link dropped.
    
  • Of FUNDING and dynamic SQL CREATE ANY TABLE

    Hi gurus,

    I have a dynamic SQL code in a procedure where a table to an existing table without data will be created.

    strSQL: = "create table ' | strTemp | ' in select * from '. strArc. "where 1 = 2"; "
    Execute immediate strSQL;


    without GRANT CREATE ANY TABLE to user, * "ORA-01031: insufficient privileges" * error executing. "."

    Is there a way to tackle this problem without providing a GRANT CREATE ANY TABLE privileged?


    Thank you very much
    Charles

    (1) why you are creating a table to run? Which seems to me very concerning. If you create a temporary table and you're accustomed to work how temporary tables in other databases, I would strongly suggest you look at how Oracle manages global temporary tables. If temporary storage is really necessary (99% of the time is not because of the consistent reading multi-version), you should be able to create global temporary tables a few during execution.

    (2) the owner of the procedure should just need the CREATE TABLE privilege granted directly to the user (not granted through a role), assuming that it is in stored procedure a standard DEFINER rights.

    Justin

  • grant, create and drop objects on the diagram to a role/user

    Generic question for Oracle RDBMS:

    As far as I know, there is no way for the owner of a schema privileges such as create objects, or drop objects in this schema to a user or a role.

    I know that a lot of people always asked if it is possible, and I hope Oracle will provide this capability, but as far as I know, it is not possible, even in 12.1.0.2.

    Does anyone have ideas on this?

    I considered to have developers to create programs to create tables, views, packages, etc. and then grant execute on them to the users/roles, but it would be a huge amount of work.

    Did someone come up with an easier way to do this?  Or know of a way that this can be done?

    Obviously, I can not grant create any table, index, package, view, etc., or to delete any table, view, etc., and of course we grant the DBA role.

    I thought that the 'become a user"was a solution, but it is apparently far from able to do such things.

    In our case, apparently, we have users log in with account of the owner of the schema and create objects, modify objects, etc.  (Change the objects is not a problem, because we can give everything on the object to someone.)   The problem is that we need to prevent people to connect to shared group accounts (or as the owner of the schema record) to create objects, drop objects, etc.).  We all have as their own user name and will not be able to create and delete objects in patterns of selection.

    Why must everyone CREATE and DROP of objects within the framework or the processing of information on the day the day?

    I feel a serious design flaw & conversion Orace DB.

  • 10g to 11 GR 2 upgrade using Data Pump Import

    Hello

    I intend to move a database 10g a windows server to another. However, there is also a requirement to upgrade this database to GR 11, 2. That's why I was going to combine the 2 in one movement.

    1. take an export of complete data to source 10 g data pump
    2. create a new database empty 11 g on the target environment
    3 import the dump file into the target database

    However, I have a couple of queries running in my mind about this approach-

    Q1. What happens with the SYSTEM and SYS SYSTEM and SYSAUX objects when importing? Given that I have in fact already created a new dictionary on the empty target database - import SYS or SYSTEM will simply produce errror messages that should be ignored?

    Q2. should I use EXCLUDE on SYS and SYSTEM (is it EXCLUDE better export or import side)?

    Q3. What happens if there are things like scheduled tasks, etc. on the source system - since these would be stored in the property SYSTEM tables, how I would bring them across to the target 11 g database?

    Thank you
    Jim

    This approach is included in the Upgrade Guide 11 GR 2 - http://docs.oracle.com/cd/E11882_01/server.112/e23633/expimp.htm

    PL, ensure that you use SYSDBA privileges to run commands expdp and impdp. See here the first sections of "Note".

    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dp_export.htm#sthref57
    http://docs.Oracle.com/CD/E11882_01/server.112/e22490/dp_import.htm#i1012504

    As mentioned, sown schemas (for example SYS etc.) are not exported. See http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_export.htm#i1006790

    HTH
    Srini

  • Question about data pump and directory/sub-directories

    I have a process that makes these calls to Data Pump:
    dbms_datapump.add_file (dph, file_name |) '.log', ' DATA_PUMP_DIR/test', filetype = > DBMS_DATAPUMP. KU$ _FILE_TYPE_LOG_FILE);
    dbms_datapump.add_file (dph, file_name |) ".dmp", ' DATA_PUMP_DIR/test', filetype = > DBMS_DATAPUMP. KU$ _FILE_TYPE_DUMP_FILE);

    He failed with the subdirectory "/ test". If I delete it, as in these calls it works.
    dbms_datapump.add_file (dph, file_name |) '.log', "DATA_PUMP_DIR" filetype = > DBMS_DATAPUMP. KU$ _FILE_TYPE_LOG_FILE);
    dbms_datapump.add_file (dph, file_name |) ".dmp", "DATA_PUMP_DIR" filetype = > DBMS_DATAPUMP. KU$ _FILE_TYPE_DUMP_FILE);

    I even did a test 'chmod 777 '.

    No idea what I am doing wrong?

    I'm on 11.0.1.6

    It's the pile of error I get:
    ORA-39002: invalid operation
    ORA-06512: at "SYS." DBMS_SYS_ERROR', line 79
    ORA-06512: at "SYS." DBMS_DATAPUMP', line 3043
    ORA-06512: at "SYS." DBMS_DATAPUMP', line 3292
    ORA-06512: at "ORA_ADMIN. DATAPUMP_UTIL", line 46
    ORA-06512: at line 1

    Chris wrote:
    I have a process that makes these calls to Data Pump:
    dbms_datapump.add_file (dph, file_name |) '.log', ' DATA_PUMP_DIR/test', filetype => DBMS_DATAPUMP. KU$ _FILE_TYPE_LOG_FILE);
    dbms_datapump.add_file (dph, file_name |) ".dmp", ' DATA_PUMP_DIR/test', filetype => DBMS_DATAPUMP. KU$ _FILE_TYPE_DUMP_FILE);

    He failed with the subdirectory "/ test". If I delete it, as in these calls it works.
    dbms_datapump.add_file (dph, file_name |) '.log', "DATA_PUMP_DIR", filetype => DBMS_DATAPUMP. KU$ _FILE_TYPE_LOG_FILE);
    dbms_datapump.add_file (dph, file_name |) ".dmp", "DATA_PUMP_DIR", filetype => DBMS_DATAPUMP. KU$ _FILE_TYPE_DUMP_FILE);

    I even did a test 'chmod 777 '.

    No idea what I am doing wrong?

    invalid syntax

    DATA_PUMP_DIR

    above is DIRECTORY Oracle
    If you want a different location, then CREATE DIRECTORY DATA_PUMP_DIR_TEST

  • During ANY installation of a program (e.g. Skype), I get the "year error occurred while attempting to create the directory C:\Program\Microsoft\Windows\Start Menu.

    original title: facilities program

    During ANY installation of a program (e.g. Skype), I get the "year error occurred while attempting to create the directory C:\Program\Microsoft\Windows\Start Menu. What happened with cd installs, but also downloads on the internet.  I already "took possession" of the computer, which is still delayed freaking, but am still unable to fight through all the questions of security, I guess that.  Any help would be greatly appreciated as I'm about to DOWNGRADE to something more user-friendly.  Thank you

    BTW, this is WINDOWS 7 Home Premium

    I had this problem for a long time on Windows 7. Finally, by pure chance I came across this solution that solved the problem. -Take the shortcut of the property

    http://www.SevenForums.com/tutorials/1911-take-ownership-shortcut.html

    You will need to run the "fusion" in the context menu of a reg file, published as part of the solution to change some registry settings. On any folder, you'll get a context menu 'Take Ownership' which restores the property correctly. This solves a lot of problems installing.

    Many people have trouble with this and therefore decided to post here.

    Gem of a solution. Thanks to GRIM and Brink on Windows 7 Forum!

    -Jayawanth

  • create a directory on a data store...

    Does anyone have a code example on how to use the datastoreNamespaceManager API to create a directory on a data store?

    use strict;

    use warnings;

    use VMware::VIRuntime;

    OPTS::parse();

    OPTS::Validate();

    Util::Connect();

    my ($sc $datastoreNS, $ds, $path, $supported);

    $sc = Vim::get_service_content();

    $ds = Vim::find_entity_view (view_type-online "Datastore", filter-online {'name'-online 'ds-nfs-01'});

    $datastoreNS = Vim::get_view (mo_ref-online $sc-> datastoreNamespaceManager);

    $supported = $ds-> {'capability'}-> {'topLevelDirectoryCreateSupported'};

    Die "datastoreNamespaceManager only is not supported on this data store (topLevelDirectoryCreateSupported = 1) if '$supported;

    $path = $datastoreNS-> CreateDirectory (datastore-online $ds, displayName => "TestDir /");

    Print "new directory created: $path\n";

    But keep in mind this is only for data stores that DO NOT support the capabilities of topLevelDirectoryCreateSupported (Centre of Documentation of vSphere 5.5 )

    You will need to use the file manager in the case:

    use strict;

    use warnings;

    use VMware::VIRuntime;

    OPTS::parse();

    OPTS::Validate();

    Util::Connect();

    my ($sc $fm, $dc, $path);

    $sc = Vim::get_service_content();

    $fm = Vim::get_view (mo_ref-online $sc-> file manager);

    $dc = Vim::find_entity_view (view_type-online "Data center", filter-online {'name'-online 'DC01'});

    $path = "TestDir [ds-nfs-01]";

    $fm-> MakeDirectory (name-online $path data center => $dc, createParentDirectories-online 1);

    print 'Directory successfully created\n ";

  • Privilege of directory data pump

    Hello

    I use 11.1.0.6 database under windows 2003 server. I created a directory for datapump and granted read, write, execute in this directory for 10 users. Now I need to check that the users have read, write, execute privilege on this directory? where to check it?

    Kind regards

    007

    Hello

    Check with the table below: -.

    SELECT * from all_tab_privs WHERE table_name = ';

    for example:

    SELECT * from all_tab_privs WHERE table_name = 'DATA_PUMP_DIR;

    Concerning
    Vikash Chauradia

  • Export the whole (10 GB) using Data Pump utility export base

    Hello

    I have a requirement that we have to export all of the base (10 GB) using Data Pump export utility because it is not possible to send the discharge of 10 GB in a CD/DVD for the seller of our application system (to analyze a few problems that we have).

    Now when I checked online full export is available but not able to understand how it works, as we never used this data pump utility, we use the method of normal export. In addition, the data pump will reduce the size of the dump file so it can fit on a DVD or can we use utility export parallel DB full to split the files and include them in a DVD, it is possible.

    Please correct me if I am wrong and kindly help.

    Thank you for your help in advance.

    Pravin,

    The server saves files in the directory object that you specify on the command line. So what you want to do is:

    1. from your operating system, find an existing directory or create a new directory. In case you, C:/Dump is as good a place as any.

    2. connect to sqlplus and create the directory object. Just use the path. I use linux, so my directory looks like/scratch/xxx/yyy
    If you use Windows, the path to your directory would look like C:/Dump you should not attack.

    3. don't forget to grant access to this directory. You can grant access to a single user, group of users, or the public. Just like
    any other object.

    If it helps, or if she has answered your question, please mark messages with the appropriate tag.

    Thank you

    Dean

  • Data Pump Export/Import

    Hello Forum,

    I have a question regarding imports and exports of data pump, perhaps what I should already know.

    I need to empty a table that has about 200 million lines, that I need to get rid of about three quarters of data.

    My intention is to use the data pump to export the table and and indexes and constraints etc..

    The table has no relationship to any other table, it is composed of approximately 8 columns with constraints not null.

    My plan is

    1 truncate table

    2. disable or remove index

    3 leave the constraints in place?

    4. use data pump to import a lines to keep.

    My question

    will be my clues and imported too much constraints I want to import only a subset of my exported table?

    or

    If I dropped the table after truncation, I'll be able to import my table and indexes, even if I use the sub as part of my statement to import query functionality?

    My table using the query sub in data pump functionality must exist in the database before doing the import

    or handful of data pump import as usual IE will create table indices grants and statistics etc.?

    Thank you for your comments.

    Concerning

    Your approach is ineffective.

    What you need to do is to

    create the table in select foo * bar where the

    bar of truncate table;

    Insert / * + APPEND * / into select bar * foo.

    Rebuild the indexes on the table.

    Fact.

    This whole thing with expdp and impdp is only a waste of resources. My approach generates redo a minimum.

    ----------

    Sybrand Bakker

    Senior Oracle DBA

  • Error data pump import

    Hi all

    I get errors below when you try to use the data pump import a table into the dump of the file (of a pre-production database) in a different database (prod_db) even version. I used the expdp to generate the dump file.

    Gettings errors-
    ORA-39083
    ORA-00959
    ORA-39112

    Any suggestions or advice would be appreciated.

    Thank you


    Import: Release 10.2.0.1.0 - 64 bit Production

    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    ;;;
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options
    Main table 'SYSTEM '. "' SYS_IMPORT_TABLE_01 ' properly load/unloaded
    Start "SYSTEM". "" SYS_IMPORT_TABLE_01 ": System / * DIRECTORY = DATA_PUMP_DIR DUMPFILE = EXP_Mxxxx_1203.DMP LOGFILE = Mxxxx_CLAIMS. LOG TABLES = CLAIMS
    Object type SCHEMA_EXPORT/TABLE/TABLE processing
    ORA-39083: object of type THAT TABLE could not create with the error:
    ORA-00959: tablespace "OXFORD_DATA_01" does not exist
    Because sql is:
    CREATE TABLE 'xxx '. "" CLAIMS "("CLAIM_NUM"VARCHAR2 (25) NOT NULL ACTIVATE, ACTIVATE THE"LINE_NUM"NUMBER (3.0) NOT NULL, 'PAID_FLAG' CHAR (1), CHAR (1) 'ADJ_FLAG', 'CLAIM_TYPE' VARCHAR2 (20), 'MEM_ID' VARCHAR2 (20), VARCHAR2 (20) 'MEM_SUF', DATE 'MEM_BEG_DATE', 'MEM_REL' CHAR (2), 'MEM_NAME' VARCHAR2 (40), DATE 'MEM_DOB', 'MEM_SEX' CHAR (1),"REC_DATE"DATE, DATE OF THE"PAID_DATE") 'FROM_DATE' DATE "
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    ORA-39112: type of dependent object INDEX: 'xxx '. «CLAIMS_IDX1 ' ignored, base object type TABLE: 'Xxx'.» "" Creation of CLAIMS ' failed
    ORA-39112: type of dependent object INDEX: 'xxx '. «CLAIMS_PK ' ignored, base object type TABLE: 'Xxx'.» "" Creation of CLAIMS ' failed
    Object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS of treatment
    ORA-39112: dependent object type skipped INDEX_STATISTICS, object-based INDEX type: 'xxx '. "' CLAIMS_IDX1 ' failed to create
    ORA-39112: dependent object type skipped INDEX_STATISTICS, object-based INDEX type: 'xxx '. "" Creation of CLAIMS_PK ' failed
    Object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS treatment
    ORA-39112: dependent object type skipped TABLE_STATISTICS, object-based ARRAY type: "xxx". "" Creation of CLAIMS ' failed
    Work 'SYSTEM '. "" SYS_IMPORT_TABLE_01 "completed with error (s) from 6 to 13:49:33


    Impdp name username/password DIRECTORY = DATA_PUMP_DIR DUMPFILE = EXP_Mxxxx_1203.DMP LOGFILE is Mxxxx_CLAIMS. LOG TABLES = CLAIMS

    Before you create the tablespace or use clause REMAP_TABLESPACE for the import.

  • Data Pump 11g Network Import

    I have a need to perform a network import a 10.2.0.4 DataPump mode database on my old server (HP - UX 11.11) to my new 11.2.0.3 database on a new server (HP - UX 11.31). What I would REALLY like to do is to import directly from my database physical standby (running in mode READ_ONLY while I do importation) rather than having calm my database of production for a couple of hours while I do the import from there.

    What I want to know is if the importation of network mode Data Pump running on 11.2.0.3 the new server creates a task Data Pump to extract in the old database as part of this importation of direct network link. If so, I won't be able to use the physical Standby as the source of my import because Data Pump will not be able to create the main table in the old database. I can't find anything in any Oracle documentation on the use of a physical Standby as a source. I know that I can't do a Data Pump export regularly this database, but I would really like to know if anyone has experience doing this.

    Any comments would be greatly appreciated.

    Bad news, Harry - it worked for me on a standard database open in READ ONLY mode. Not sure what is different between your environment and mine, but there must be something... Read only database is a 10.2.0.4 database running on a box of HP PA-RISC under HP - UX 11.11. The target database runs under 11.2.0.3, on a box of HP Itanium under HP - UX 11.31. The user, I am connected to the database target IMP_FULL_DATABASE privs, and this is the user id used for the DB_LINK and also the same user id on the source database (which, of course, follows!). This user also has the privs permission. My file by looks like this:

    TABLES = AC_LIAB_ %
    NETWORK_LINK = ARCH_LINK
    DIRECTORY = DATA_PUMP_DIR
    JOB_NAME = AMIBASE_IMPDP_ARCHDB
    LOGFILE = DATA_PUMP_DIR:base_impdp_archdb.log
    REMAP_TABLESPACE = ARCHIVE_BEFORE2003:H_DATA
    REMAP_TABLESPACE = ARCHIVE_2003:H_DATA
    REMAP_TABLESPACE = ARCHIVE_2004:H_DATA
    REMAP_TABLESPACE = ARCHIVE_2005:H_DATA
    REMAP_TABLESPACE = ARCHIVE_2006:H_DATA
    REMAP_TABLESPACE = ARCHIVE_2007:H_DATA
    REMAP_TABLESPACE = ARCHIVE_2008:H_DATA
    REMAP_TABLESPACE = ARCHIVE_INDEXES:H_INDEXES
    REUSE_DATAFILES = NO
    SKIP_UNUSABLE_INDEXES = Y
    TABLE_EXISTS_ACTION = REPLACE

  • Data Pump - expdp / question utility impdp

    HiAll,

    As a basis for learning exercise Data pump, I am trying to export the schema scott and then you want to load the dump file into a test_t diagram in the same database.

    -1. from dir object sysdba
    CREATE a DIRECTORY dpump_dir1 AS 'C:\output_dir ';

    -2. created dir on the operating system as c:/output_dit

    -3. run expdp
    schemas system/***@orcl expdp = scott DIRECTORY = JOB_NAME = hr DUMPFILE = scott_orcl_nov5.dmp PARALLEL dpump_dir1 = 4

    -4. create a schema test_t and allows the dba to it.

    -5. impdp execution
    Impdp system/***@orcl patterns = DIRECTORY = JOB_NAME = hr DUMPFILE = scott_orcl_nov5.dmp PARALLEL dpump_dir1 test_t = 8

    He does not here as ORA39165: test_t schema not found. However, the schema test_t exist.

    So, I don't know why she should give to this error. It seems that the Scott schema in the expdp dump file may not be charged to any other schema but only to a schema named scott... Is this good? If Yes, how can I load all objects in the schema scott say to another schema say test_t? It would be useful that you can show the respective expdp and impdp command please.

    Thank you very much
    KS

    Hello

    You must specify remap_schema when you import

    do impdp system/***@orcl = dpump_dir1 = scott_orcl_nov5.dmp remap_schema = scott DUMPFILE directory: test_t

    See you soon

Maybe you are looking for

  • IPhone stolen

    Hello. Yesterday, my iPhone 6 has been stolen. I was able to delete content in https://www.icloud.com/. Last night, my friend received a message from an unknown number saying "your iPhone 6 64 GB gold was located near Metro Hotel 5110 today at 19:44

  • Satellite R630-135 - the film stops when lightweight laptop circulation

    When you watch a movie, if there is slight movement, i.e. bus or plane, that he stops playing. Never happened on my old laptop. Anyone knows what is the cause? Thank you very much

  • Can I load my MacBookPro via usb

    Can I reload my retina MacBookPro mid 2012, thanks to its ports usb 3.0 safely? Thank you

  • Terminate ANY order for CVI

    I have three performances running. What is the command in CVI to end all executions when a custom button terminate is reached. Currently using TSUI_ExecutionViewMgrTerminateExecution (gmainWindow.executionViewMgr, & errorInfo); What is the correct co

  • My sound card has been deleted how I get it back?

    How restore sound on my PC if my sound card has been removed?