Home > Ask the Oracle Database / Applications Experts > Oracle database backup and recovery Questions & Answers > Migrating database to new storage box
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Migrating database to new storage box

Brian Peasland1 EXPERT RESPONSE FROM: Brian Peasland1

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 03 November 2006
We have got new EMC storage and want to migrate our Oracle database 300+ to the new storage box. We have two servers (say A and B), SUN E6500 Server with Solaris 8 and Oracle 8.0.5 (A=production server and B=standby server). We have connected the new CX-500 storage to Box B and created all the file systems same as Box A. Our aim is to migrate all the Oracle data by taking a cold backup from Box A and restoring to Box B and after successful migration declare Box B as the production server.

For test purpose we have done the following:

  • Taken Oracle cold backup and orahome (Oracle -binaries) from production server (Box A) and restored all into Box B.
  • After the restore host was changed in listener.ora and tnsnames.ora from A to B.

Oracle was started successfully and Unix user "oracle" is able to connect to database using SQL*Plus <username>/passwd and when the listener is started other clients are able to connect also.

$whoami
oracle
$sqlplus username/passwd
Connected
SQL>
But the problem started when we tried to connect the database with Unix user. Other than Oracle having the primary group same as Oracle (i.e., DBA) using SQL*Plus username/passwd and we are getting the following messages:
$whoami
xyz
$sqlplus username/password

Error:

ORA-01034 : Oracle not available
....
However , using listener xyz is able to connect to DB as follows.
$whoami
xyz
$sqlplus username@dbname
pawword:
Connected.
SQL>
My questions:
  1. When /orahome is restored from Box A to Box B, why are non-Oracle Unix users not able to connect to DB without listener?
  2. Shall we avoid restoring orahome file system to Box B and restore only Oracle cold backup into Box B? Because when we restore ONLY cold backup and orahome of Box B was not touched then we didn't had the problem mentioned in (1).
  3. What would be the best way to migrate data 300+ GB from Box A to Box B other than what we have planned for?
Regards.

>
  1. Non-oracle unix users are seeing the ORA-1034 error because their environment variables are not defined correctly. Ensure that the ORACLE_HOME and ORACLE_SID values are correct. Since you move the Oracle home directory, they will need to make this change.
  2. There is no issue with moving the Oracle home directory if you feel the need to.
  3. There are multiple ways to move a 300GB database. I personally do not feel that a 300GB database is that big since I have tablespaces larger than that. You can simply restore the backup as you have done, and that is acceptable. Or, you can shut down your database and move the datafiles to the new location, followed by updating the control files with the ALTER DATABASE RENAME FILE command. Or, you can use export/import or Transportable Tablespaces for your move. There is no wrong way here.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Oracle database backup and recovery
Can I perform an Oracle server backup through a client machine?
How to execute DML in an Oracle trigger with EXECUTE IMMEDIATE
How to restore a dump file with the Oracle SHOW=Y option
Why do I get an Oracle not available error with Oracle 8i on Windows?
How to perform Oracle database recovery with a corrupt online redo log
Can I create an Oracle Catalog Database with the Enterprise Console?
Do I need to recreate views after an Oracle table reorg?
Client-based apps vs. web-based apps in Developer 2000
How to perform an Oracle 8i to 10g migration
Can I move the tablespace online with missing datafiles in Oracle?

Oracle database backup and recovery
Can I perform an Oracle server backup through a client machine?
How to execute DML in an Oracle trigger with EXECUTE IMMEDIATE
How to restore a dump file with the Oracle SHOW=Y option
Why do I get an Oracle not available error with Oracle 8i on Windows?
Oracle tutorial library: SearchOracle.com's learning guides
How to perform Oracle database recovery with a corrupt online redo log
Can I create an Oracle Catalog Database with the Enterprise Console?
Do I need to recreate views after an Oracle table reorg?
Client-based apps vs. web-based apps in Developer 2000
How to perform an Oracle 8i to 10g migration
Oracle database backup and recovery Research

Oracle database export, import and migration
How to perform Oracle database recovery with a corrupt online redo log
How to use the Oracle export utility to duplicate database structure
How to perform an Oracle 8i to 10g migration
Oracle upgrade process vs. Oracle exp/imp for 9i to 10g migration
Coca-Cola Bottling swaps out Oracle for DB2
Oracle releases new database, says 11g upgrade will cut costs
EnterpriseDB offers Oracle database users a 'bailout program'
Oracle data export guide
Solving common Oracle errors guide
Oracle and SQL Server: BFF?

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Oracle White Papers: Fusion Middleware
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts