Could you please explain step-by-step the way to make a test server by using export/import? The test server will be in Windows 2000 and using Oracle 8.1.7, which is the same as the main server. How do I run CATEXP.SQL?
On your main server, do a FULL export of your database. On your secondary server, do the following:
- Create a database which mimics the main one. You can use Database Configuration Assistant (DBCA) if you want or hopefully you have the create scripts from your main database which you can simply execute on the secondary server.
- If you use DBCA, all the appropriate scripts (like CATEXP.sql) should be run automatically OR if you're using your own scripts, CATEXP.sql should run after the database is created and the CATALOG and CATPROC scripts are ran.
- Copy (ftp or whatever method you use) the export file from your main server to your secondary server.
- Execute import with the FULL option.
See the Oracle Utilities document for more information on the Import and Export utilities.
For More Information
- Dozens more answers to tough Oracle questions from Karen Morton are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Oracle database export, import and migration
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.