행위

오라클 sid 변경

DB CAFE

Dbcafe (토론 | 기여)님의 2019년 12월 22일 (일) 15:14 판
thumb_up 추천메뉴 바로가기


오라클 sid 변경[편집]

Since 9i dbnewid utility (nid) can be used to change database name (and DBID if required). If database name being changed only then resetlogs is not required:

1. startup database in mount mode

     shutdown immediate
     startup mount

2. run nid to change database name:

     nid target=sys/syspassword@dbtns dbname=newname setname=YES

3. shutdown and start database in mount mode:

     shutdown immediate
     startup mount

4. change db_name in spfile (or in pfile editing the file):

     alter system set db_name=newname scope=spfile;

5. recreate password file:

     orapwd file=orapwnewname password=syspassword

6. startup the database

     startup
     

7. post rename steps:

     change SID in listener.ora
     correct tnsnames.ora
     remove old trace directories
     change /etc/oratab (UNIX) or rename windows service using oradim