Export tables from specific user in connection in sql developer
I need to export all tables from specific user in oracle sql developer.
For example:
Connection: allusers (remote)
User/schema: user1
Tables: table1
table2
tablen
I need to export all the tables and relationships from user1, generating an .sql or .ddl file.
After this, I'm gonna import the file in my local data base.
Connection: local
user/schema: user1(imported from the file)
tables: (all tables from the exported file)
How can I do that?
I was trying with data base copy, but my remote connection has not granted privileges to get data from an external user, and I can't grant privileges because I'm not the remote data base administrator.
Any idea?
Thanks a lot.
database oracle export oracle-sqldeveloper
add a comment |
I need to export all tables from specific user in oracle sql developer.
For example:
Connection: allusers (remote)
User/schema: user1
Tables: table1
table2
tablen
I need to export all the tables and relationships from user1, generating an .sql or .ddl file.
After this, I'm gonna import the file in my local data base.
Connection: local
user/schema: user1(imported from the file)
tables: (all tables from the exported file)
How can I do that?
I was trying with data base copy, but my remote connection has not granted privileges to get data from an external user, and I can't grant privileges because I'm not the remote data base administrator.
Any idea?
Thanks a lot.
database oracle export oracle-sqldeveloper
1
Look at the impdp and expdp
– OldProgrammer
Dec 27 '18 at 20:07
1
Login as the schema owner, then use the tools, export feature. If a large schema, consider data pump or littlefoots suggestion below, but you'll need an Oracle client to run exp utility
– thatjeffsmith
Dec 27 '18 at 20:27
add a comment |
I need to export all tables from specific user in oracle sql developer.
For example:
Connection: allusers (remote)
User/schema: user1
Tables: table1
table2
tablen
I need to export all the tables and relationships from user1, generating an .sql or .ddl file.
After this, I'm gonna import the file in my local data base.
Connection: local
user/schema: user1(imported from the file)
tables: (all tables from the exported file)
How can I do that?
I was trying with data base copy, but my remote connection has not granted privileges to get data from an external user, and I can't grant privileges because I'm not the remote data base administrator.
Any idea?
Thanks a lot.
database oracle export oracle-sqldeveloper
I need to export all tables from specific user in oracle sql developer.
For example:
Connection: allusers (remote)
User/schema: user1
Tables: table1
table2
tablen
I need to export all the tables and relationships from user1, generating an .sql or .ddl file.
After this, I'm gonna import the file in my local data base.
Connection: local
user/schema: user1(imported from the file)
tables: (all tables from the exported file)
How can I do that?
I was trying with data base copy, but my remote connection has not granted privileges to get data from an external user, and I can't grant privileges because I'm not the remote data base administrator.
Any idea?
Thanks a lot.
database oracle export oracle-sqldeveloper
database oracle export oracle-sqldeveloper
asked Dec 27 '18 at 19:55
Csanchez
597
597
1
Look at the impdp and expdp
– OldProgrammer
Dec 27 '18 at 20:07
1
Login as the schema owner, then use the tools, export feature. If a large schema, consider data pump or littlefoots suggestion below, but you'll need an Oracle client to run exp utility
– thatjeffsmith
Dec 27 '18 at 20:27
add a comment |
1
Look at the impdp and expdp
– OldProgrammer
Dec 27 '18 at 20:07
1
Login as the schema owner, then use the tools, export feature. If a large schema, consider data pump or littlefoots suggestion below, but you'll need an Oracle client to run exp utility
– thatjeffsmith
Dec 27 '18 at 20:27
1
1
Look at the impdp and expdp
– OldProgrammer
Dec 27 '18 at 20:07
Look at the impdp and expdp
– OldProgrammer
Dec 27 '18 at 20:07
1
1
Login as the schema owner, then use the tools, export feature. If a large schema, consider data pump or littlefoots suggestion below, but you'll need an Oracle client to run exp utility
– thatjeffsmith
Dec 27 '18 at 20:27
Login as the schema owner, then use the tools, export feature. If a large schema, consider data pump or littlefoots suggestion below, but you'll need an Oracle client to run exp utility
– thatjeffsmith
Dec 27 '18 at 20:27
add a comment |
1 Answer
1
active
oldest
votes
I prefer oldfashioned export/import approach. Why? Because those utilities are designed for such things, moving things around.
For this simple example, I'm connected to a remote database (ORCL) which is 11gR2. As I'm exporting Scott's schema which doesn't contain anything special, I'm using the original EXP utility instead of Data Pump. It is simpler and creates the DMP file locally.
c:Temp>exp scott/tiger@orcl file=scott_remote.dmp
Export: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:01:50 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Tes
Export done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
. . exporting table EMPLOYEES 1 rows exported
. . exporting table SALGRADE 5 rows exported
. . exporting table TEST 1 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
c:Temp>
Target database is 11gXE on my laptop. IMP utility is used to import data. I'll use SYSTEM XE user to import into a different schema (MIKE) - note FROMUSER
& TOUSER
parameters.
c:Temp>imp system/pwd@xe file=scott_remote.dmp fromuser=scott touser=mike
Import: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:14:58 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by SCOTT, not by you
import done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing SCOTT's objects into MIKE
. . importing table "BONUS" 0 rows imported
. . importing table "DEPT" 4 rows imported
. . importing table "EMP" 14 rows imported
. . importing table "EMPLOYEES" 1 rows imported
. . importing table "SALGRADE" 5 rows imported
. . importing table "TEST" 1 rows imported
About to enable constraints...
Import terminated successfully without warnings.
c:Temp>
Piece of cake, takes no time whatsoever. Try it.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53950216%2fexport-tables-from-specific-user-in-connection-in-sql-developer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I prefer oldfashioned export/import approach. Why? Because those utilities are designed for such things, moving things around.
For this simple example, I'm connected to a remote database (ORCL) which is 11gR2. As I'm exporting Scott's schema which doesn't contain anything special, I'm using the original EXP utility instead of Data Pump. It is simpler and creates the DMP file locally.
c:Temp>exp scott/tiger@orcl file=scott_remote.dmp
Export: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:01:50 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Tes
Export done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
. . exporting table EMPLOYEES 1 rows exported
. . exporting table SALGRADE 5 rows exported
. . exporting table TEST 1 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
c:Temp>
Target database is 11gXE on my laptop. IMP utility is used to import data. I'll use SYSTEM XE user to import into a different schema (MIKE) - note FROMUSER
& TOUSER
parameters.
c:Temp>imp system/pwd@xe file=scott_remote.dmp fromuser=scott touser=mike
Import: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:14:58 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by SCOTT, not by you
import done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing SCOTT's objects into MIKE
. . importing table "BONUS" 0 rows imported
. . importing table "DEPT" 4 rows imported
. . importing table "EMP" 14 rows imported
. . importing table "EMPLOYEES" 1 rows imported
. . importing table "SALGRADE" 5 rows imported
. . importing table "TEST" 1 rows imported
About to enable constraints...
Import terminated successfully without warnings.
c:Temp>
Piece of cake, takes no time whatsoever. Try it.
add a comment |
I prefer oldfashioned export/import approach. Why? Because those utilities are designed for such things, moving things around.
For this simple example, I'm connected to a remote database (ORCL) which is 11gR2. As I'm exporting Scott's schema which doesn't contain anything special, I'm using the original EXP utility instead of Data Pump. It is simpler and creates the DMP file locally.
c:Temp>exp scott/tiger@orcl file=scott_remote.dmp
Export: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:01:50 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Tes
Export done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
. . exporting table EMPLOYEES 1 rows exported
. . exporting table SALGRADE 5 rows exported
. . exporting table TEST 1 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
c:Temp>
Target database is 11gXE on my laptop. IMP utility is used to import data. I'll use SYSTEM XE user to import into a different schema (MIKE) - note FROMUSER
& TOUSER
parameters.
c:Temp>imp system/pwd@xe file=scott_remote.dmp fromuser=scott touser=mike
Import: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:14:58 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by SCOTT, not by you
import done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing SCOTT's objects into MIKE
. . importing table "BONUS" 0 rows imported
. . importing table "DEPT" 4 rows imported
. . importing table "EMP" 14 rows imported
. . importing table "EMPLOYEES" 1 rows imported
. . importing table "SALGRADE" 5 rows imported
. . importing table "TEST" 1 rows imported
About to enable constraints...
Import terminated successfully without warnings.
c:Temp>
Piece of cake, takes no time whatsoever. Try it.
add a comment |
I prefer oldfashioned export/import approach. Why? Because those utilities are designed for such things, moving things around.
For this simple example, I'm connected to a remote database (ORCL) which is 11gR2. As I'm exporting Scott's schema which doesn't contain anything special, I'm using the original EXP utility instead of Data Pump. It is simpler and creates the DMP file locally.
c:Temp>exp scott/tiger@orcl file=scott_remote.dmp
Export: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:01:50 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Tes
Export done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
. . exporting table EMPLOYEES 1 rows exported
. . exporting table SALGRADE 5 rows exported
. . exporting table TEST 1 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
c:Temp>
Target database is 11gXE on my laptop. IMP utility is used to import data. I'll use SYSTEM XE user to import into a different schema (MIKE) - note FROMUSER
& TOUSER
parameters.
c:Temp>imp system/pwd@xe file=scott_remote.dmp fromuser=scott touser=mike
Import: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:14:58 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by SCOTT, not by you
import done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing SCOTT's objects into MIKE
. . importing table "BONUS" 0 rows imported
. . importing table "DEPT" 4 rows imported
. . importing table "EMP" 14 rows imported
. . importing table "EMPLOYEES" 1 rows imported
. . importing table "SALGRADE" 5 rows imported
. . importing table "TEST" 1 rows imported
About to enable constraints...
Import terminated successfully without warnings.
c:Temp>
Piece of cake, takes no time whatsoever. Try it.
I prefer oldfashioned export/import approach. Why? Because those utilities are designed for such things, moving things around.
For this simple example, I'm connected to a remote database (ORCL) which is 11gR2. As I'm exporting Scott's schema which doesn't contain anything special, I'm using the original EXP utility instead of Data Pump. It is simpler and creates the DMP file locally.
c:Temp>exp scott/tiger@orcl file=scott_remote.dmp
Export: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:01:50 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Tes
Export done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user SCOTT
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user SCOTT
About to export SCOTT's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export SCOTT's tables via Conventional Path ...
. . exporting table BONUS 0 rows exported
. . exporting table DEPT 4 rows exported
. . exporting table EMP 14 rows exported
. . exporting table EMPLOYEES 1 rows exported
. . exporting table SALGRADE 5 rows exported
. . exporting table TEST 1 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
c:Temp>
Target database is 11gXE on my laptop. IMP utility is used to import data. I'll use SYSTEM XE user to import into a different schema (MIKE) - note FROMUSER
& TOUSER
parameters.
c:Temp>imp system/pwd@xe file=scott_remote.dmp fromuser=scott touser=mike
Import: Release 11.2.0.2.0 - Production on ╚et Pro 27 21:14:58 2018
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Export file created by EXPORT:V11.02.00 via conventional path
Warning: the objects were exported by SCOTT, not by you
import done in EE8MSWIN1250 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing SCOTT's objects into MIKE
. . importing table "BONUS" 0 rows imported
. . importing table "DEPT" 4 rows imported
. . importing table "EMP" 14 rows imported
. . importing table "EMPLOYEES" 1 rows imported
. . importing table "SALGRADE" 5 rows imported
. . importing table "TEST" 1 rows imported
About to enable constraints...
Import terminated successfully without warnings.
c:Temp>
Piece of cake, takes no time whatsoever. Try it.
answered Dec 27 '18 at 20:18
Littlefoot
20.5k71433
20.5k71433
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53950216%2fexport-tables-from-specific-user-in-connection-in-sql-developer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Look at the impdp and expdp
– OldProgrammer
Dec 27 '18 at 20:07
1
Login as the schema owner, then use the tools, export feature. If a large schema, consider data pump or littlefoots suggestion below, but you'll need an Oracle client to run exp utility
– thatjeffsmith
Dec 27 '18 at 20:27