How to export schema database XE?
I would like export a schema database (tables, triggers, indexes, sequences) for using this schema in another database XE (in fact an sql file). Generate DDL doesn't work due to constraints and references tables.
Thank for your help.
Bob
HI,
Here is an example.
----------- EXPORT/IMPORT procedures -----------
From DOS prompt make directory
DOS>md c:\oraclexe\tmp
DOS>cd c:\oraclexe\app\product\10.2.0\server\BIN
DOS>sqlplus SYS/Password AS SYSDBA
It is posible to be SYS/Password@SID AS SYSDBA
SQLPlus>CREATE OR REPLACE DIRECTORY XMLDIR AS 'C:\oraclexe\Tmp';
SQLPlus>GRANT READ, WRITE ON DIRECTORY XMLDIR TO property;
Go back to DOS prompt. There are two files - expdp.exe and impdp.exe in BIN directory.
DOS>expdp SYS/Password AS SYSDBA SCHEMAS=property DIRECTORY=XMLDIR DUMPFILE=property.dmp LOGFILE=property.log
From DOS prompt make directory
DOS>md c:\oraclexe\tmp
DOS>cd c:\oraclexe\app\product\10.2.0\server\BIN
DOS>sqlplus SYS/Password AS SYSDBA
It is posible to be SYS/Password@SID AS SYSDBA
SQLPlus>ALTER SYSTEM SET NLS_LENGTH_SIMANTICS='CHAR' SCOPE=BOTH;
SQLPlus>CREATE OR REPLACE DIRECTORY dmpdir AS 'C:\oraclexe\Tmp';
SQLPlus>GRANT READ, WRITE ON DIRECTORY XMLDIR TO public;
Go back to DOS prompt. There are two files - expdp.exe and impdp.exe in BIN directory.
DOS>impdp SYS/Password AS SYSDBA SCHEMAS=property DIRECTORY=XMLDIR DUMPFILE=property.dmp LOGFILE=property.log
Konstantin
Similar Messages
-
How to export schema with it's data
db11gxe , apex 4.0 , firefox 24 ,
hi all,
i want to export my database tables with it's data included ?
thanksHi,
I do not see how question relates to APEX.
Maybe you check Oracle XE documentation
http://docs.oracle.com/cd/E17781_01/server.112/e18804/impexp.htm#CFHJAHAA
Regards,
Jari -
How to export Schema to a cvs file?
I want to know whether or not there is a tool that exports schema to a csv file?
This quetion has been asked a number of times on this forum. As I recall, th efavourite solutions are to use Toad (www.quest.com) or to write a little procedure yourself, using UTL_FILE or spooling from SQL*Plus. This would actually be quite simple to genericise (it's probably what Toad does), but I don't know whether anybody's actually posted some code - try the search facility and find out.
rgds, APC -
How to export/import database from tools menu in sql developer.
Hi,
I need to export database from a server and import it on another db server using the export database function under tools menu in SQL developer. How do I import it? This is for Oracle 10g database.
ThanksDepends what are you trying to do? Are you making a database copy or just creating an empty schemea or creating schema with the data?
With 10g, you have also options of using datapump (expdp/impdp) and conventional export/import which is very usefule and easy to use when it comes to create a clone (duplicate schema) or an export/import of some objects.
If you right click on table object, you have options of export ddl/export data and import data but thats different thant what expdp/impdp or conventional export/import provides. For very small database you can use sqldeveloper but consider
using other above mentioned options. Hope this helps
Regards -
How to export/import database?
If I have an export file from database PROD and want to import to database DEV.
How to do that? Do i need to create an empty database as target database?
both database are using orapw files.
I'm using oracle 8.0.5 in unix.Well, obviously, you will have to have a target database in which you’re planning to import the schema that you’ve backed up from the PROD database.
If the database that you are referring to as DEV already exists, just create a schema (new Oracle user) with the same name as the schema name that you’ve imported from the PROD database. Keep in mid that you will have to grant appropriate privileges to this new schema owner as well as ensure that the default tablespace is large enough to hold the imported objects. Let me know if you have specific questions.
M Qamar Zia -
How to export sms database?
I'm moving from a iPhone 4 (6.1) to a android (nexus 4) and I want to keep my sms on my new phone
I've tried to convert the sms database file from backup to the correct format on online convertion sites like http://faked.org/isms2droid/ and http://insend.de/index.php and all I got was a error message saying that the file I'm trying to convert does not contain the database.
Can anybody help please?
ThanksWell, obviously, you will have to have a target database in which you’re planning to import the schema that you’ve backed up from the PROD database.
If the database that you are referring to as DEV already exists, just create a schema (new Oracle user) with the same name as the schema name that you’ve imported from the PROD database. Keep in mid that you will have to grant appropriate privileges to this new schema owner as well as ensure that the default tablespace is large enough to hold the imported objects. Let me know if you have specific questions.
M Qamar Zia -
Export oracle database schema without data
Hi All,
cany any one tell me how to export oracle database schema without data using exp command not datapump command.step 1
type exp help=y
step 2
read the output
step 3 now run exp ... rows=n
Life can be so easy when you aren't lazy. You don't waste time asking to be spoon fed by others if you can do something yourself in 2 seconds.
Sybrand Bakker
Senior Oracle DBA -
How does export full database work in data-pump .Does it also exports system and sysaux tablespaces or only all schema data and related metadata.
DataPump is a logical export, so it works with DB objects - schemas, tables, views, etc.
So when you perform full export - then all info from sys/system and other users is exported to the dump -
How to export datbase with exp command
Hi guys,
How to export oracle database using exp command without including tables space names.
I tried with this
./exp username/password file=db-export.dmp
./imp username/password file=db-export.dmp full=y ignore=y
But when I try to import database with separate login(username/password) its giving following error for some tables,
ORA-00959: tablespace 'MANUJA' does not exist
MANUJA is my username of first database
any help ?
Thanks
Best Regards,
ManujaOption 1:
./imp username/password file=db-export.dmp full=y
If still error then :
Option 2:
pre-create your table then import with ignore=y option.
If still error then :
make sure userB just have one default tablespace (BC) and quota only on BC. So if you have unlimited quota for userB on all tablespaces, then objects will go to original tablespace and not the tablespace you want to put in(to default tablespace).
Revoke any unlimited tablespace privs from userB and just have one default tablespace.
REVOKE UNLIMITED TABLESPACE FROM USERB;
imp system/manager fromUser=userA toUser=userA file=myexport.dmp log=myexport.log
Source: OrionNet @ remap tablespace using imp
Regards
Girish Sharma -
How to create database link between 2 servers to exports schemas
Could any one please give Steps to create database link between 2 servers (linux) to exports schemas like AR, INV, GL.......etc
Hi Mouni,
As i suggest above, please use the REMAP_SCHEMA parameter, so that you can create those objects which are getting created in the Apps Schema in the XBSI schema, I have already provided the syntax above.
ORA-31684: Object type VIEW:"XBSI"."XBSI_ORDER_LINE_INFO_V" already exists
ORA-31684: Object type VIEW:"XBSI"."XBSI_SERIAL_NO_V" already exists
ORA-31684: Object type VIEW:"XBSI"."XBSI_ONHAND_BALANCES" already exists
ORA-31684: Object type VIEW:"XBSI"."XBSI_PURCHASE_ORDERS" already exists
ORA-31684: Object type VIEW:"XBSI"."XBSI_ORDER_HEADER_INFO_V" already exists
ORA-31684: Object type VIEW:"XBSI"."XBSI_ORGANIZATION_ITEMS" already exists
ORA-31684: Object type VIEW:"XBSI"."XBSI_PE_FIND_RESULT" already exists
You are facing these errors as you have already done the import, and when you try to re-import it says those objects are already available. If this fresh import, Please drop the the new user you have already created in the Datawarehouse instance, and recreate the User and start a fresh import.
Hope this help!
Thanks &
Best Regards, -
How to export all the views in one schema?
Hi,
I have more than 1000 views in one shcema.
How to export all the views in one schema?
AmyHi,
It's not a very easy question, I have develop a script wich create a script to create view from old database to new database :
/* &1: Oracle SID Source
/* &2: Oracle Schema Source
SET HEAD OFF
SET VERIFY OFF
SET PAGESIZE 0
SET LONG 40000000
SET LONGCHUNKSIZE 2000
SET LINESIZE 2000
SET FEEDBACK OFF
CREATE TABLE RECREATE_VIEW(VIEW_NAME VARCHAR2(30), TEXT LONG);
/* Selection du texte de la vue */
DECLARE
w_text long;
w_text_debut long;
w_text_column long;
w_view varchar2 (30);
w_schema varchar2 (8):='&2';
CURSOR w_cursor IS
SELECT a.view_name, a.text
FROM dba_views a
WHERE a.owner = w_schema;
CURSOR w_column IS
SELECT DECODE (ROWNUM,
1, 'CREATE OR REPLACE FORCE VIEW ' || '&' || '1..'
|| a.table_name || chr(10)
|| '('
|| a.column_name
|| DECODE (ROWNUM, nbcolumns, ')' || chr(10) || 'AS' || chr(10), ',' || chr(10))
FROM (select column_name,table_name
FROM dba_tab_columns
WHERE owner = '&1'
AND table_name = w_view
order by column_id ) a,
(SELECT COUNT (1) nbcolumns
FROM dba_tab_columns
WHERE owner = '&1'
AND table_name = w_view
GROUP BY owner, table_name) b
order by rownum;
BEGIN
OPEN w_cursor;
LOOP
FETCH w_cursor INTO w_view, w_text;
EXIT WHEN w_cursor%NOTFOUND;
w_text_debut := NULL;
w_text_column := NULL;
OPEN w_column;
LOOP
FETCH w_column INTO w_text_column;
EXIT WHEN w_column%NOTFOUND;
w_text_debut := w_text_debut || w_text_column || ' ';
w_text_column := NULL;
END LOOP;
CLOSE w_column;
w_text := w_text_debut||w_text||';';
insert into RECREATE_VIEW(VIEW_NAME, TEXT) VALUES (w_view, w_text);
COMMIT;
w_text := NULL;
w_view := NULL;
END LOOP;
CLOSE w_cursor;
END;
SPOOL scripts_views_&1..sql
PROMPT SPOOL scripts_views_&1..log
PROMPT
SELECT TEXT
FROM RECREATE_VIEW;
PROMPT
PROMPT SPOOL OFF
PROMPT
SPOOL off
PROMPT /* Formattage du fichier SQL */
!sed 's/[ ]*$//' scripts_views_&1..sql > aprilia.tmp
!rm scripts_views_&1..sql
!mv aprilia.tmp scripts_views_&1..sql
DROP TABLE RECREATE_VIEW;
EXIT
I hope that help you.
Nicolas. -
How to Export and Import the schemas
How can i export & import the schema's ? pls give me some example on how to do it.
Could anyone pls show the commands to retrieve the Tablespace information... i mean what its initial size.. and how much of space has been used...
ur reply is very much appreciated
regards
Muralyuser11136977 wrote:
Hi all,
i am trying to export / import, need to know the commands
=>how to export and import full schemas from 1 user to another
=>how to export and import database
=>how to export the tablespaces
RegardsNo version, must be 10g then.
All you asked and much more in the Utilities guide.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/exp_imp.htm#i1023560
HTH
Aman.... -
How to import complete database with all schemas
I have exported all database using system/manager in oracle 8.
Now How i can i import all database in oracle 9i with all users, Roles etc...
I tried to import "Import Entire database=y" using system manager schema but face following errors.
Schema doesn't exit, Role errors etc.....Hi,
As you are working with Old version of Oracle, then Oracle data pump would not be applicable to in order to carry out. So, in order to complete the export and import from prior version either you need to upgrade the version of Oracle so that you can make use of upgrade tools or either clone it or make sure you create required things prior to import on destination database. Further you can check Oracle support team
- Pavan Kumar N -
How to exclude schema name from exported files (PL SQL Developer)
Dear all,
Just one question: I am using PL SQL Developer. My goal is to export some data (as .sql and .dmp files) from one database and to import them into the another database (both databases have identical structure - test database and production, just different database names and names of schema. In order to make it possible, I need to exclude schema name from generated export file. I believe that it is possible to do it automatically by setting up parameters of PL SQL Developer. How?
Thank you in advance,
Kindest regards,
DraganaIn the meantime, I have found the answer on my previous question:
Actually, the initial idea (how to exclude schema name from exported files) was wrong. No need for any intervention.
Trick is: Schema name can be changed during the import of exported files (PL SQL Developer during import gives possibility: From User (old schema) To User (new schema) .
Hope that this will be useful info for others.
Dragana -
How to take schema level Encrypted export dump
Hi ,
Pls. let me know how to take schema level export dump with encryption .
regards
chandrasekar.vThis article on how to setup and maintain TDE may help you: Transparent Data Encryption
additionaly, you may find this interesting > Transparent Data Encryption (TDE) in Oracle 10g Database Release 2
~ Madrid.
Maybe you are looking for
-
My power button doesn't work and I don't know what I can do without havin my parents spend a lot of money for the power button but I want to. No if their is any other way for me to fix it without damaging it and doing it carefully and I have an iPod
-
On the interactive form - the filter icon
I have a user that has a dumb question, they want to the filter to go away they selected when they come back to the first page of the interactive form, when there is no data left. Of course all they have to do is click the x to make the filter list a
-
Printing to a PDF file directly Using Adobe's Printer driver and NO GUI
We are on Oracle 10G running Oracle Forms/Reports 6i. I would like to be able to run Oracle Reports directly to a PDF file using Adobe's pdf driver and not oracle's pdf driver (not happy with it). (This can be done easily enough) using Adobe's PDF Co
-
Tax code is not reflecting in invoice
Hi Experts, Recently i have created VAT tax code 7k for condition type JIN6 with effect from date 01.04.2010. Old tax code there with end date as 31.03.2010. I have created material and order , i am trying to make the invoice of that. Tax is calculat
-
Is it mandatory to Restart all services after making Business Rule change?
Hi, I know it may be a easy one but wanted to know is it mandatory to restart all the Planning and Essbase services if we make any changes in the Business rule in 9.3.1 -KP