-
Install Oracle Database 11g Express Edition
-
Run Command Line window as administrator, type
sqlplus sys/ as sysdba
-
Type
show parameter spfile;
-
Type
shutdown immediate;
-
Type
startup mount;
and
exit
-
Type
nid target=sys/@XE dbname=<db_name>
It will prompt question and then type
Y
-
Type
set ORACLE_SID=XE
-
Type
sqlplus /nolog
-
Type
conn sys/ as sysdba
-
Type
shutdown immediate;
-
Type
startup mount;
-
Type
alter system set db_name=<db_name> scope=spfile;
-
Type
shutdown immediate;
and
exit
-
Type
orapwd file=C:\oraclexe\app\oracle\product\11.2.0\server\database\PWD<SID_name>.ora entries=10
and then type password
-
Type
oradim -delete -sid XE
-
Type
oradim -new -sid <SID_name> -intpwd -startmode a
-
Type
set ORACLE_SID=<SID_name>
-
Go to Registry Edit to change ORACLE_SID to <SID_name>
-
Type
lsnrctl start lsnrctl stop lsnrctl start
-
Copy initXE.ora to init<SID_name>.ora in folder C:\oraclexe\app\oracle\product\11.2.0\server\database
-
Type
sqlplus sys/ as sysdba
-
Type
startup mount;
-
Type
alter database open resetlogs;
-
Type
show parameter db_name;
-
Type
select * from v$instance;
and
exit
-
Type
oradim -edit -sid <SID_name> -startmode auto -srvcstart system
-
Go to Computer Management, change service 'OracleService<SID_name>' to 'Automatic' startup type, and start the service
Last active
May 8, 2020 05:24
-
-
Save liuanyou/631c9458b614a6b119bb1112a784ffba to your computer and use it in GitHub Desktop.
Oracle XE - change SID
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment