Beruflich Dokumente
Kultur Dokumente
Simphony Manual
Data Pump export / import
Simphony Version 2
Index.................................................................................................................................................................................................... 2
Requirements ................................................................................................................................................................................. 3
Export data out of source database ................................................................................................................................................ 3
Drop all the Micros users in target database .................................................................................................................................. 3
Create table spaces in target database (optional) .......................................................................................................................... 4
Create the users ............................................................................................................................................................................. 4
Create the Data Pump directory in target database ........................................................................................................................ 5
Import the Data Pump file ............................................................................................................................................................... 5
Additional optional steps ................................................................................................................................................................. 6
Appendix 1 ...................................................................................................................................................................................... 7
Simphony Manual
MICROS EAME
Product Management Simphony
This document outline the steps to export and restore a Data Pump Oracle 11G export file to another system.
Requirements
Oracle 11g 11.2.0.2.0 or higher
Simphony 2.4 or higher
Simphony system running the same version as the one which was running the exported database
and completely setup with corrected database setup (tablespaces, users, constraints, etc.)
Oracle database (11.2.x) the same version as the one which was running for the exported database
Database on Windows Server 2008 R2 64-Bit
Target database and source database must have the character set AL32UTF8
The operating system directory D:\ backup must exist. Open a command line window and enter the following command:
The export file will be created in the operating system directory D:\ backup.
The commands below will drop all of the micros users available in the database including the related
schemas. Before running this command write down the passwords of these users which are configured for the
receiver machine, we need to enter the passwords when the users will be recreated.
ALL micros services & webservice needs to be stopped otherwise you will get this error message when you try to
drop the users): ORA-01940: cannot drop a user that is currently connected
Simphony Manual
MICROS EAME
Product Management Simphony
If the tablespaces in the target oracle database doesnt exist, they must be created before the import and the user
creation:
MCRSCACHE
MCRSPOS
PENTAHO
USERS
COREDB
LOCDB
PORTALDB
RTA
create tablespace MCRSCACHE datafile 'd:\oracle\ORADATA\MCRCACHE01.dbf' size 100M autoextend on next 500M
maxsize 30G;
create tablespace MCRSCACHE datafile +ORADATA\MCRCACHE01.dbf size 100M autoextend on next 500M maxsize
30G;
Simphony Manual
MICROS EAME
Product Management Simphony
To be able to import or export with Data Pump files, you can use an available directory or create a new one.
Open a command line window and enter the following command:
sqlplus sys/***** as sysdba (Where ***** is the password), this is a sample command for a database running on the
same server, a different command is needed if the database will reside on a different server.
OWNER DIRECTORY_NAME
------------------------------ ------------------------------
DIRECTORY_PATH
--------------------------------------------------------------------------------
SYS ORACLE_OCM_CONFIG_DIR
D:\oracle\product\11.2.0\dbhome_1/ccr/state
SYS DATA_PUMP_DIR
D:\oracle/admin/simphony/dpdump/
SYS XMLDIR
c:\ade\aime_dadvfh0169\oracle/rdbms/xml
Create a new folder for the import file, we assume the import file will reside in D:\backup
(Where ***** is the password), this is a sample command for a database running on the same server, a different
command is needed if the database will reside on a different server. Replace FILE_NAME with the correct file name.
Check the results of the import in the log file, there might be some errors listed, please ignore the errors such as:
ORA-31684: Object type USER:"XY" already exists
Simphony Manual
MICROS EAME
Product Management Simphony
@?/rdbms/admin/utlrp;
exec dbms_stats.gather_schema_stats(RTA);
exec dbms_stats.gather_schema_stats(MF_EAME);
exec dbms_stats.gather_schema_stats(COREDB);
exec dbms_stats.gather_schema_stats(PORTALDB);
exec dbms_stats.gather_schema_stats(LOCATION_ACTIVITY_DB);
exec dbms_stats.gather_schema_stats(QUARTZ);
exec dbms_stats.gather_schema_stats(BIREPOS);
exec dbms_stats.gather_schema_stats(MCRSCACHE);
exec dbms_stats.gather_schema_stats(MICROSDB);
exec dbms_stats.gather_schema_stats(SA);
Simphony Manual
MICROS EAME
Product Management Simphony
Appendix 1
Simphony Manual
MICROS EAME
Product Management Simphony
Simphony Manual
MICROS EAME
Product Management Simphony
Copyright
2012 MICROS-FIDELIO GmbH All rights reserved. No part of this publication may be reproduced,
photocopied, stored on a retrieval system, or transmitted without the express prior written consent of
the publisher. MICROS-FIDELIO GmbH retains the right to update or change the contents of this
document without prior notice. MICROS-FIDELIO GmbH assumes no responsibility for the contents of
this document.
Disclaimer: This document or any part of it is for the sole purpose of MICROS-FIDELIO GmbH and the
vendor reviewing and following the rules of the Certification Process. It is not intended for Public
distribution in any form and is regulated by a Confidentiality Agreement in place between both parties.
Simphony Manual
MICROS EAME
Product Management Simphony