hi people i have a databse in a server oracle 10g. i dont know oracle and i need to move this database or something to another server 11
i can connect to the data with sqlplus system/pass@cm and all work great.
how can i move to other server this data? step by step please im a newbie on oracle
Storage HardwareOracle Database
Last Comment
slightwv (䄆 Netminder)
8/22/2022 - Mon
slightwv (䄆 Netminder)
How large is the database?
Do you need just one user or does the application have several users?
I'm thinking a simple export/import but will need the information above before I provide the syntax.
pablouruguay
ASKER
the database is 156Mb and i need 1 user only this user system
slightwv (䄆 Netminder)
Have you already created the database on the 11g server?
If not, go ahead and to it. To make like easier, pre-create the same tablespaces that you are using in the 10g database.
Then pre-create the user you are wanting to move over.
Log into the 10g database server and from a command prompt:
exp system/password file=myMigrate.dmp owner=userToMigrate consistent=Y compress=Y
Copy it over to the 11g server (binary copy).
Then from a command prompt:
imp system/password file=myMigrate.dmp full=y
mmm. this only export the user i need to export the database called CM
slightwv (䄆 Netminder)
>>mmm. this only export the user i need to export the database called CM
I do not understand what you are trying to tell me with this post.
Praveen Kumar Chandrashekatr
Yes you can export whole database and import it to new server, but since the system and sys schema related most of the data will already present in the new server i.e 11g so you may encounter error while importing which you can ignore.
But you think you have only one schema in your CM database which has all the related data you can go for export/ import the schema or user only as Slightwv mention in is post.
here are the detail steps to do so
check how may users present in 10g database i.e
SQL> select username from dba_users where username not in ('SYS','SYSTEM','APPQOSSYS','DBSNMP','ORACLE_OCM','OUTLN');
Also check the tablespace created in 10g dtabase i.e
SQL>select * from dba_tablespaces;
SQL> select * from dba_directories;
Now export the database using expdp to the directory present above.
export ORACLE_SID=<SID>
expdp system/**** schemas=<list of users which you want to export> directory=DATA_PUMP_DIR dumpfile=exp_CM.dmp logfile=exp_CM.log
The below one is for full database export
expdp system/**** full=Y directory=DATA_PUMP_DIR dumpfile=exp_CM.dmp logfile=exp_CM.log
Copy the exp_CM.dmp file to 11g server in the directory present, then create the tablespaces in 11g database which are not present.
now import it
export ORACLE_SID=<SID>
impdp system/**** schemas==<list of users which you want to export> directory=DATA_PUMP_DIR dumpfile=exp_CM.dmp logfile=imp_CM.log
Do you need just one user or does the application have several users?
I'm thinking a simple export/import but will need the information above before I provide the syntax.