how to import user with network link with limitation rights [message #639689] |
Tue, 14 July 2015 04:54 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/1a1521015d9a03844ff8ce26f7be1429?s=64&d=mm&r=g) |
x-oracle
Messages: 380 Registered: April 2011 Location: gujarat
|
Senior Member |
|
|
hello i have two database one its production "prod" and second its test name "test" . i import my one user name "EST" from my production database to test database using network link .
for this i did this steps on my test database
i create user
create user est identified by est;
conn est/est@test
create or replace directory practice as 'E:\practice';
create database link old_est connect to est identified by est using 'prod';
host impdp est/est@test directory=practice network_link=old_est remap_schema=est:est logfile=latest.log exclude=statistics
but its give me error when i import
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31631: privileges are required
ORA-39149: cannot link privileged user to non-privileged user
actually my production database user have not have dba role but i assing him export full database system privillage to my this est user on my production database but still its give me same error.
can you tell me how to import it successfully with limited access
|
|
|
|
|
Re: how to import user with network link with limitation rights [message #639694 is a reply to message #639690] |
Tue, 14 July 2015 05:54 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/1a1521015d9a03844ff8ce26f7be1429?s=64&d=mm&r=g) |
x-oracle
Messages: 380 Registered: April 2011 Location: gujarat
|
Senior Member |
|
|
thanks for your reply
littlefoot actually i create directory with this my est user.so i think i not need read write privilege to be grant on my est user.but still i did this and its show me one more error
grant read, write on directory practice to est
*
ERROR at line 1:
ORA-01749: you may not GRANT/REVOKE privileges to/from yourself
Database link created.
Import: Release 10.2.0.4.0 - 64bit Production on Tuesday, 14 July, 2015 16:14:11
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31631: privileges are required
ORA-39149: cannot link privileged user to non-privileged user
and Michel Cadot i just only want to import this est user only ..actually i want to import daily this est user from my production database to my test database using network link
[Updated on: Tue, 14 July 2015 05:57] Report message to a moderator
|
|
|
|
|
|
Re: how to import user with network link with limitation rights [message #639702 is a reply to message #639697] |
Tue, 14 July 2015 07:58 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/102589.gif) |
Michel Cadot
Messages: 68733 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
It works for me:
SQL> create user est identified by est quota unlimited on ts_d01;
User created.
SQL> create table est.t (val integer);
Table created.
SQL> grant create session, create table, create database link to est;
Grant succeeded.
SQL> grant read, write on directory DATA_PUMP_DIR to est;
Grant succeeded.
SQL> connect est/est
Connected.
EST> create database link mika_est connect to est identified by est using 'MIKA';
Database link created.
EST> select * from dual@mika_est;
D
-
X
1 row selected.
EST> host impdp est/est network_link=mika_est directory=DATA_PUMP_DIR;
Import: Release 10.2.0.4.0 - Production on Mardi, 14 Juillet, 2015 14:56:01
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
Starting "EST"."SYS_IMPORT_SCHEMA_01": est/******** network_link=mika_est directory=DATA_PUMP_DIR
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/DB_LINK
...
So now copy and paste what you do like I did.
|
|
|
|
|
|
|
|