beautypg.com

Oracle A423961 User Manual

Page 56

background image

2 – 30

Oracle7 Server Getting Started for Windows NT

SVRMGR> connect internal/

SVRMGR> startup exclusive mount

Note:

If you have your own database file structure, go to Step

4 (you have neither moved nor renamed your files).

c.

Enter the altered database statement at the Server Manager
prompt to change the full pathnames of the data and log files.
Following are 7.0 and 7.1 examples for migrating the default
SID. Your statement should match your actual files.

7.0

7.1

SVRMGR> alter database rename file

SVRMGR> alter database rename file

SVRMGR> ’C:\ORANT\RDBMS70\dbs1.ora’,

SVRMGR> ’C:\ORANT\RDBMS71\log1orcl.ora’,

SVRMGR> ’C:\ORANT\RDBMS70\log1.ora’,

SVRMGR> ’C:\ORANT\RDBMS71\ARCHIVE\log1orcl.ora’,

SVRMGR> ’C:\ORANT\RDBMS70\log2.ora’

to

SVRMGR> ’C:\ORANT\RDBMS71\log2orcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\dbs1orcl.ora’,

SVRMGR> ’C:\ORANT\RDBMS71\ARCHIVE\log2orcl.ora’,,

SVRMGR> ’C:\ORANT\DATABASE\log1orcl.ora’,

SVRMGR> ’C:\ORANT\RDBMS71\sysorcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\log2orcl.ora’;

SVRMGR> ’C:\ORANT\RDBMS71\userorcl.ora’,

SVRMGR> ’C:\ORANT\RDBMS71\rbsorcl.ora’,

SVRMGR> ’C:\ORANT\RDBMS71\temporcl.ora’ to

SVRMGR> ’C:\ORANT\DATABASE\log1orcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\ARCHIVE\log1orcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\log2orcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\ARCHIVE\log2orcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\sysorcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\userorcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\rbsorcl.ora’,

SVRMGR> ’C:\ORANT\DATABASE\temporcl.ora’;

Note:

If your Oracle home directory is not

c:\orant

, replace

it with the actual directory name.

Note:

If you have expanded the database, include the

additional database files in the above statement.

4.

Run SQL scripts to migrate the database

Run SQL scripts to migrate the database.

a.

Enter the following commands at the Server Manager prompt.