Question

For a project I need to duplicate an entire (live) Oracle Database with APEX and 1 application from a production server to a development server. Searching the internet brought me to using RMAN for this, but the problem is: the production server is not in ARCHIVELOGMODE, so RMAN won't work.

SQL Developer is confusing to me, as I can't seem to make it copy the entire database; only table data. It won't create the tables themselves.

Is there any way at all to do what I want without RMAN tool?

Any help would be greatly appreciated, as for now I'm stuck on this, seemingly simple, task before I can continue my project.

EDIT:

Okay guys, I fixed it myself. Opened up SQL Developer and manually created a tablespace with the same name as the live database. Re-used it's datafile for the tablespace. Then did a Copy Database on tablespace level from the live to the development server. Finally imported the APEX application and voilá! It works!

Was it helpful?

Solution

The way to work on depends if you can stop the database every time you need to copy the DB.

If Yes I propose two methods:

a) Perform a cold backup -need to stop the db and no archivelog required- and duplicate the database from the backup

b) Stop the database, copy the datafiles, controlfile, redo logs and spfile to the destination server and respect the paths. The new DB will start

If you cannot stop the db you may need to duplicate the date in a logical way, that's kind of data migration:

1) Create the Dev DB

2) Create the tablespace structure in the dest DB

3) Copy the data using create table as select over db link, export/import datapump... But this way can be complex if you want to move a huge number of objects.

Hope it helps

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top