Exporting tables from schema to another
Hello,
I have an access database that i wish to do some data mining on it, so i used the migration workbench to migrate it to oracle 10g.. the database was created in the user schema FINAL which is the name of the database and the default password is ORACLE.
the data mining user is dmuser
what's the best solution to make dmuser access the database migrated from microsoft database?
hello,
I just created public synonym from some of the objects to the FINAL schema and i granted 'select any table' to ODMUSER but still can't find these objects in the profile of ODMUSER in Oracle Data Miner...
can u be more specific please how to proceed in this case?
Similar Messages
-
Exporting tables from schema by expdp
I created user test having read write writes on directory mydir(at os level), there are 1000 tables in my test user schema, i wnt to export those tables in mydir (using expdp) which table names did not contain '9' ......
i tried some below soln whcih didnt work
$expdp userid=test/test directory=mydir dumpfile=tables_not9.dat query=tab:"where tname not like '%9%'"
$expdp userid=tet/test directory=mydir dumpfile=tables_not9.da schema query=user_tables:"where table_name not like '%9%'"
plz guide for correct solution915415 wrote:
I created user test having read write writes on directory mydir(at os level), there are 1000 tables in my test user schema, i wnt to export those tables in mydir (using expdp) which table names did not contain '9' ......
i tried some below soln whcih didnt work
$expdp userid=test/test directory=mydir dumpfile=tables_not9.dat query=tab:"where tname not like '%9%'"
$expdp userid=tet/test directory=mydir dumpfile=tables_not9.da schema query=user_tables:"where table_name not like '%9%'"
plz guide for correct solutionSee below, exported all the objects except EMP table of schema SCOTT
C:\Users\bn2676>expdp system/manager directory=data_pump_dir dumpfile=exp_scott2.dmp logfile=exp_scott2.log schemas=scott EXCLUDE=TABLE:\"LIKE \'EMP%\'\"
Export: Release 11.2.0.1.0 - Production on Tue Feb 21 09:16:44 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** directory=data_pump_dir dumpfile=exp_scott2.dmp logfile=exp_scott2.log schemas=scott EXCLUDE=TABLE:"LIKE \'EMP%\'"
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 128 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "SCOTT"."DEPT" 5.937 KB 4 rows
. . exported "SCOTT"."SALGRADE" 5.867 KB 5 rows
. . exported "SCOTT"."BONUS" 0 KB 0 rows
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
C:\ORACLE\ADMIN\ORCL\DPDUMP\EXP_SCOTT2.DMP
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at 09:17:04
C:\Users\bn2676> -
Is it possible to export tables from diffrent schema using expdp?
Hi,
We can export tables from different schema using exp. Ex: exp user/pass file=sample.dmp log=sample.log tables=scott.dept,system.sales ...But
Is it possible in expdp?
Thanks in advance ..
Thanks,Hi,
you have to use "schemas=user1,user2 include=table:"in('table1,table2')" use parfileexpdp scott/tiger@db10g schemas=SCOTT include=TABLE:"IN ('EMP', 'DEPT')" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log{quote}
I am not able to perform it using parfile also.Using parfile it shows "UDE-00010: multiple job modes requested, schema and tables."
When trying the below, i get error
{code}
bash-3.00$ expdp directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=(\'MM\',\'MMM\') include=TABLE:\"IN\(\'EA_EET_TMP\',\'WS_DT\'\)\"
Export: Release 10.2.0.4.0 - 64bit Production on Friday, 15 October, 2010 18:34:32
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Username: / as sysdba
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
Starting "SYS"."SYS_EXPORT_SCHEMA_01": /******** AS SYSDBA directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=('MM','MMM') include=TABLE:"IN('EA_EET_TMP','WS_DT')"
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/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . exported "MM"."EA_EET_TMP" 0 KB 0 rows
ORA-39165: Schema MMM was not found.
Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
/export/home/nucleus/dump/test.dmp
Job "SYS"."SYS_EXPORT_SCHEMA_01" completed with 1 error(s) at 18:35:19
{code}
When checking expdp help=y shows :-
{code}TABLES Identifies a list of tables to export - one schema only.{code}
As per few testing,tables from different schemas are not possible to export using expdp in a single command.
Anand -
Pass internal table from program to another program
hi,
how do i pass an internal table from program to another program, then read it.
tnx,
laureExport the selected rows to the next program
EXPORT final TO MEMORY ID 'ABC'.
CALL TRANSACTION 'XXX'.
XXX is the tcode for the other program where u want to import the values.
In the second program
INITIALIZATION.
IMPORT the internal table from the first program
IMPORT final FROM MEMORY ID 'ABC'.
Dont refesh the internal table final. -
How to exclude some tables from schema level replicatio????
Hi,
I am working on oracle10g stream replication.
My replication type is "Schema Based".
So can anyone assist me to undersatnd, how to exclude some tables from schema based replication.
Thanks,
FaziarainYou can use rules and include them in the rule set, lets say you dont want LCR to be queued for table_1 in schema SALES, write two rules one for DDL and another for DML with NOT logical condition.
DBMS_RULE_ADM.CREATE_RULE(
rule_name => 'admin.SALES_not_TALBE_1_dml', condition => ' (:dml.get_object_owner() = ''SALES'' AND NOT ' ||
' :dml.get_object_name() = ''REGIONS'') AND ' ||
' :dml.is_null_tag() = ''Y'' ');
DBMS_RULE_ADM.CREATE_RULE(
rule_name => 'admin.hr_not_regions_dlll',
condition => ' (:dml.get_object_owner() = ''SALES'' AND NOT ' ||
' :ddl.get_object_name() = ''table_!'') AND ' ||
' :dsl.is_null_tag() = ''Y'' ');
just go through this document once, http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/strms_rules.htm#i1017376
Edited by: user8710159 on Sep 16, 2009 5:21 PM -
How to export tables from development server to production server
HI,
Any body plz let me know how to export tables from development server to production server. what are the user names and password i need to ask my manager to do that. what are the requirements i need to ask him.
Plz reply me ASAP.
Thanks in advance.hi buddy
first of all you should let us know the environment of production and development servers
database versions
and you need to have userid which has privilege to export tables of other schema. userid(owner) of the tables you want to export.
Traditional way
export tables in development server and then ftp to production and then import
in the above case you should have similar database structure(tablespace etc) to avoid errors...
if there are few tables only , you can use dblink instead of export and import... -
Exporting Table from Indesign to tagged text.
Hi, all!<br />I need to export table from InDesign to tagged text by the script.<br />I found ExportAllStories.jsx in samples.<br />It's good example but I have some questions<br />1. In my document more then one table and I need to export only some of them. So, how can I export only one of them? May be Tables have some "labels" or something other differential sign?<br />2. How can I ser encoding type of distanation file (by the default InDesing set <ASCII-WIN>, but I'm need to set <Unicode>).
Edit>InCopy>Export All Strories.
Open the INDD in InCopy.
This assumes everyone involved has access to the files. -
How to create table from one to another schema?
Hi,
There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
thanks in advance
Thanks,user2017273 wrote:
Hi,
There is two schema A and B. schema A want to create table on Schema. which privilege we need to provide? how to create?
thanks in advance
Thanks,When you give CREATE ANY TABLE TO A then user A will create table on any schema.But you can create stored PROCEDURE on schema B for creating table and give GRANT EXECUTE <PROC NAME> to A. -
How to exclude tables from Schema level replication
Hi All,
I am currently trying to setup Oracle Streams (Oracle 11.1.0.6 on RHEL5) to replicate a schema from one instance to another.
The basic schema level replication is working well, and copying DDL and DML changes without any problems. However there are a couple of tables that I need to exclude from the stream, due to incompatible datatypes.
Does anybody have any ideas or notes on how I could achieve this?? I have been reading the Oracle documentation and find it difficult to follow and confusing, and I have not found any examples in the internet.
Thanks heaps.
GavinWhen you use SCHEMA level rules for capture and need to skip the replication of a few tables, you create rules in the negative rule set for the table.
Here is an example of creating table rules in the negative rule set for the capture process.
begin
dbms_streams_adm.add_table_rules(
table_name => 'schema.table_to_be_skipped',
streams_type => 'CAPTURE',
streams_name => 'your_capture_name',
queue_name => 'strmadmin.capture_queue_name',
include_dml => true,
include_ddl => true,
inclusion_rule => false
end;
table_name parameter identifies the fully qualified table name (schema.table)
streams_name identifies the capture process for which the rules are to be added
queue_name specifies the name of the queue associated with the capture process.
Inclusion_rule=> false indicates that the create rules are to be placed in the negative rule set (ie, skip this table)
include_dml=> true indicates DML changes for the table (ie, skip DML changes for this table)
include_ddl=> true indicates DDL changes for the table (ie, skip DDL changes for this table) -
Export documentation from schema
Hi,
there is a way to export documentation from oracle schema (something lije java api documentation)?
thanksYou can get all list of comments for your tables by viewing
DBA_COL_COMMENTStable. Please refer to documentation for more information
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_4009.htm#SQLRF01109
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com -
Hello team,
I have a project that I need to do, what is the best approach for each step?
1- I have to create a table in Microsoft SQL Server.
2- I have to import data/ tables from Microsoft Excel or Access to Microsoft SQL Server. Should I use Microsoft Visual Studio to move data from Excel or Access?
3-I should populate the created table with the data from the exported data.
4-How should I add the second and third imported table to the first table? Should I use union query?
After I learn these, I will bring up the code to make sure what I do is right.
Thanks for all,
Guity
GGGGGNNNNNHello Naomi,
I have imported all the tables into SQL Server,
I created a table:
CREATE
TABLE dbo.Orders
Now I want to populate this table with the values from imported tables, will this code take care of this task?
INSERT INTO dbo.Orders(OrderId, OrderDate)
SELECT OrderId, OrderDate
FROM Sales.Orders
UNION
SELECT OrderId, OrderDate
FROM Sales.Orders1
Union
SELECT OrderId, OrderDate
FROM Sales.Orders2
If not, what is the code?
Please advise me.
GGGGGNNNNN
GGGGGNNNNN -
Export table from pdf to excel
I have been attempting to convert a large table from a pdf file to an Excel worksheet, but I am having no luck. I am working on Adobe 8, and I can't figure out a way to do it. I've tried saving the file as .txt, but this completely screws up the formatting when I open it with Excel. I thought I remembered using a past version of adobe to accomplish this simply by right-clicking on a selected region of the table and selecting "Export to Excel"... where did that option go? I am currently copying and pasting each individual row of the table into Excel in order to keep the formatting, but this is too time consuming. HELP!!!!!!!!!!!!!!!!
Use the menu entry 'Open Table in Spreadsheet' in Adobe Acrobat 8 Professional.
-
Exporting tables from 8i to 9i
Hi Gurus,
Can an existing Table from Oracle 8i be imported to Oracle 9i? If it is possible how can this be possible? I need to move onto Oracle 9i Standard Edition Release 2 (9.2.0.1.0) for Windows . And I am presently running on Oracle 8i Release 8.1.5.
Thanks in advance
Dirhaan from Sri LankaWelcome to fourm !
just take the export of the table and copy that dump file to machine contains 9i SE.
import that table using imp command
for better understanding, please go through exp/imp section in utilities doc. also as 9i is desupported, please move to 10g -
Hi experts,
how can I handle it to exporting a table from a structure from a methode?
At the moment I export the structure in the methode but I need to export a table.
At the moment:
Parameter Type Typing Methode Associated Type
param_1 Exporting Type structure
I need something like that:
Parameter Type Typing Methode Associated Type
param_1 Exporting Type Table of structure
... but that is not possibleI think he meant something like this
CLASS lcl_test DEFINITION.
PUBLIC SECTION.
CLASS-METHODS: get_tab EXPORTING gen_table TYPE table.
ENDCLASS.
CLASS lcl_test IMPLEMENTATION.
METHOD get_tab.
SELECT * FROM sflight INTO TABLE gen_table UP TO 10 ROWS.
ENDMETHOD.
ENDCLASS.
START-OF-SELECTION.
DATA: it_sflight TYPE TABLE OF sflight.
lcl_test=>get_tab( IMPORTING gen_table = it_sflight ).
"here IT_SFLIGHT holds what you want
Of course you could make it more generic, meaning query dynamic DB table inside get_tab and create dynamic table outside the method call to get returned data to that table. But basically it shows the idea.
Regards
Marcin -
Exporting Tables From Workstation
Dear Fiends
Hi Everyone , I am trying to take backup for my tables from the workstation through my program , I have create procedure in the form, and call this procedure by
When-button-pressed
EXPORT_TABLES;
And my producer as the following
PROCEDURE EXPORT_TABLES IS
PATH VARCHAR2(300);
BEGIN
-- TABLES EXPORTING
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'BUSY');
PATH:='D:\BACKUP\SOFTDREAMS'||sysdate||'.DMP';
HOST('Exp'||'TEST'||'/'||'TEST@MANUF'||' FILE='||PATH,no_screen);
SET_APPLICATION_PROPERTY(CURSOR_STYLE,'default');
SYNCHRONIZE;
MESSAGE('The Backup Has Been Finished !!!');
END;
But I am not getting the backup file
Waiting for your valuable answer with example please if it is possible .
Best regards
Jamil AlshaibaniIf listner start on how u will take backup,if takes backup is valid when the all users tranactions is going on.
kanish
Maybe you are looking for
-
Premiere Pro CC 2014 crashes when loading project file
Hi guys, any help on this is much appreciated as I have a job due in 18 hours and I'm in big trouble if I can't fix this. I've been editing a project in Adobe Premiere Pro CC 2014 (updated to the latest version) and when I tried to access the same fi
-
Transferring files from my iBook to my new MacBook Pro
So I treated (an understatement) myself to a new MacBook Pro a few days ago after having a few difficulties with my beloved iBook G4. After I damaged the iBook's original power adapter, I managed to buy a dodgy one on eBay, which packed up and left m
-
Access PDF on iPod touch 2nd gen
I have created a PDF document on my iMac and want to be able to take a copy with me on my iPod Touch 2nd generation. There are so many document applications out there that I don't know which one would simply do this one thing. Any suggestions? Claire
-
Airport says i have a wifi connection, but i certainly dont
So ive had this macbook pro for about 2 weeks, and recently ive been going about my business on the web, when for whatever reason pages just stop loading, by that i mean the loading icon continues to say its loading, but nothing ever happens. My solu
-
Declarative component stops working after taskflow-call-in-popup
Hi! JDev 11.1.1.3.0 I need a component, much like the commandToolbarButton, but I have the requirement that the user should still be able to select from the popup even if the button is disabled. So I created a declarative component, combining two but