Guild of Project Controls: Compendium | Roles | Assessment | Certifications | Membership

Tips on using this forum..

(1) Explain your problem, don't simply post "This isn't working". What were you doing when you faced the problem? What have you tried to resolve - did you look for a solution using "Search" ? Has it happened just once or several times?

(2) It's also good to get feedback when a solution is found, return to the original post to explain how it was resolved so that more people can also use the results.

How can we make a copy from Oracle Database?

6 replies [Last post]
Mohammed Ali
User offline. Last seen 1 year 45 weeks ago. Offline
Joined: 16 Mar 2018
Posts: 72
Groups: None

Primavera version 20.12

Is there a method to make a copy from Oracle Database (Schema) and reconfigure it in case of any issues in the original database (Schema) ?

Replies

Zoltan Palffy
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 13 Jul 2009
Posts: 3089
Groups: None

the migration tool works if the going from MS SQL to MS SQL very good but if the versions are too far apart then you can not convert an Oracel SQL to a MS SQL says version 8.2 to version 21

Mohammed Ali
User offline. Last seen 1 year 45 weeks ago. Offline
Joined: 16 Mar 2018
Posts: 72
Groups: None

I wonder how easy the process is and why nobody knows about the migration tool.

The Primavera database folder contains this file < migrate.bat >

When you open it you will get a powerfull tool that you can use it to:

  1. Migrate the P6 database from Oracle to Oracle. < for individual users>
  2. Migrate the P6 database from SQL server to SQL server.
  3. Migrate the P6 database from Oracle to SQL server.
  4. Migrate the P6 database from SQL server Oracle. 

In addition to :

Migrate the P6 database from P6 professional to P6 EPPM.

Mohammed Ali
User offline. Last seen 1 year 45 weeks ago. Offline
Joined: 16 Mar 2018
Posts: 72
Groups: None

I wonder how easy the process is and why nobody knows about the migration tool.

The Primavera database folder contains this file < migrate.bat >

When you open it you will get a powerfull tool that you can use it to:

  1. Migrate the P6 database from Oracle to Oracle. < for individual users>
  2. Migrate the P6 database from SQL server to SQL server.
  3. Migrate the P6 database from Oracle to SQL server.
  4. Migrate the P6 database from SQL server Oracle. 

In addition to :

Migrate the P6 database from P6 professional to P6 EPPM.

Zoltan Palffy
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 13 Jul 2009
Posts: 3089
Groups: None

you are backing up the entire database not an individuals users database that is unless you created several databases

Mohammed Ali
User offline. Last seen 1 year 45 weeks ago. Offline
Joined: 16 Mar 2018
Posts: 72
Groups: None

Hi Zoltan,

Thank you for your detailed answer.

It will be really appreciated, if you could share your knowledge about how we can make a copy of individual schema of oracle XE database.

Your answer will back up the entire XE database where this database has many (schemas) for example for Admuser, Admuser1, Admuser2, ............ etc.

The question is how we can make a copy from <Admuser Shcema> which is a part of the entire XE database.

Thank you again for your time.

Zoltan Palffy
User offline. Last seen 3 weeks 4 days ago. Offline
Joined: 13 Jul 2009
Posts: 3089
Groups: None

are you talking about the oracle databse or the SLQ database ? which one are you using ?

if it is oracle then

In Oracle Database XE, the database backup and recovery facility is based upon the Recovery Manager (RMAN) utility that is integrated into the database.  Oracle Database XE includes backup and restore scripts that you access using menu choices on your desktop. These scripts perform a full backup and restore of the entire database, and store backup files in the flash recovery area.

To back up the database:

1. Log in to the Oracle Database XE host computer as a user who is a member of the ORA_DBA user group. This is typically the user that installed Oracle Database XE.

2. Click Start, point to Programs (or All Programs), point to Oracle Database 10g, and then select Backup Database.  A console window opens so that you can interact with the backup script.

If running in ARCHIVELOG mode, the script displays the following output:

Doing online backup of the database.

If running in NOARCHIVELOG mode, the script displays the following output:

Warning: Log archiving (ARCHIVELOG mode) is currently disabled. If you restore the database from this backup, any transactions that take place between this backup and the next backup will be lost. It is recommended that you enable ARCHIVELOG mode before proceeding so that all transactions can be recovered upon restore. See the section 'Enabling ARCHIVELOG Mode...' in the online help for instructions. Backup with log archiving disabled will shut down and restart the database. Are you sure [Y/N]?

3. If prompted, enter y and press Enter to confirm the database shutdown and begin the backup.

After the backup is complete, the script displays the following output:

Backup of the database succeeded.
Log file is at <location>
Press ENTER key to exit

where <location> is the location of the log file.

4. Press Enter to close the Backup Database window.

Logs containing the output from the last two backups are stored in the following location:

C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\OXE_BACKUP_CURRENT.LOG.

C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\OXE_BACKUP_PREVIOUS.LOG.

 

When the backup is complete, the backup files are stored in C:\oraclexe\app\oracle\flash_recovery_area\XE\

IF it is microsoft SQL then use something like SLQ Management Studio 

Log in as SA

password: Prima123Vera

on the left find ytour database might be PMDB

Righ click on the database 

then tasks 

then backup

choose your backup type and the location

click OK