参考博客http://blog.itpub.net/26870952/viewspace-2151994/,经过试验,做了一些补充和完善
分为两个阶段,第一阶段修改实例名sid;第二阶段修改数据库名dbname
将原先的实例名orcl 更改为 isdms
将原先的数据库名orcl 更改为 isdms
(1)切换到oracle用户
[root@brms03 ~]# su - oracle
Last login: Mon Dec 10 11:35:21 CST 2018
[oracle@brms03 ~]$
(2)打开已经启动数据库并查看sid
[oracle@brms03 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 12 16:47:02 2018
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select instance from v$thread;
INSTANCE
--------------------------------------------------------------------------------
orcl
SQL>
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
编辑文件/etc/oratab,将文件里面的orcl换成isdms
[oracle@brms03 ~]$ vim /etc/oratab
编辑oracle用户的 .bash_profile文件,把orcl改成isdms
[oracle@brms03 ~]$ vim ~/.bash_profile
修改之后使文件生效
[oracle@brms03 ~]$ source ~/.bash_profile
查看环境变量,确定修改已经生效
[oracle@brms03 ~]$ env|grep ORACLE
ORACLE_SID=isdms
ORACLE_BASE=/opt/oracle
ORACLE_HOME=/opt/oracle/112
dbs目录是用于存放数据库服务器端的参数文件Spfile、初始化文件init、还有密码文件orapw$ORACLE_SID
在$ORACLE_HOME目录下
[oracle@brms03 dbs]$ cd $ORACLE_HOME/dbs
[oracle@brms03 dbs]$ ll
total 20
-rw-rw----. 1 oracle oinstall 1544 Dec 12 16:48 hc_orcl.dat
-rw-r--r--. 1 oracle oinstall 2851 May 16 2009 init.ora
-rw-r-----. 1 oracle oinstall 24 Sep 10 14:13 lkORCL
-rw-r-----. 1 oracle oinstall 1536 Oct 8 17:23 orapworcl
-rw-r-----. 1 oracle oinstall 2560 Dec 10 11:35 spfileorcl.ora
[oracle@brms03 dbs]$ mv hc_orcl.dat hc_isdms.dat
[oracle@brms03 dbs]$ mv lkORCL lkISDMS
[oracle@brms03 dbs]$ mv spfileorcl.ora spfileisdms.ora
[oracle@brms03 dbs]$ ll
total 20
-rw-rw----. 1 oracle oinstall 1544 Dec 12 16:48 hc_isdms.dat
-rw-r--r--. 1 oracle oinstall 2851 May 16 2009 init.ora
-rw-r-----. 1 oracle oinstall 24 Sep 10 14:13 lkISDMS
-rw-r-----. 1 oracle oinstall 1536 Oct 8 17:23 orapworcl
-rw-r-----. 1 oracle oinstall 2560 Dec 10 11:35 spfileisdms.ora
重新生成密码文件,并将旧的密码文件删除
[oracle@brms03 dbs]$ orapwd file=$ORACLE_HOME/dbs/oraw$ORACLE_SID password=sys entries=5 force=y
[oracle@brms03 dbs]$ ll
total 24
-rw-rw----. 1 oracle oinstall 1544 Dec 12 16:48 hc_isdms.dat
-rw-r--r--. 1 oracle oinstall 2851 May 16 2009 init.ora
-rw-r-----. 1 oracle oinstall 24 Sep 10 14:13 lkISDMS
-rw-r-----. 1 oracle oinstall 1536 Oct 8 17:23 orapworcl
-rw-r----- 1 oracle oinstall 2048 Dec 12 17:09 orawisdms
-rw-r-----. 1 oracle oinstall 2560 Dec 10 11:35 spfileisdms.ora
[oracle@brms03 dbs]$ rm -rf orapworcl
[oracle@brms03 dbs]$ ll
total 20
-rw-rw----. 1 oracle oinstall 1544 Dec 12 16:48 hc_isdms.dat
-rw-r--r--. 1 oracle oinstall 2851 May 16 2009 init.ora
-rw-r-----. 1 oracle oinstall 24 Sep 10 14:13 lkISDMS
-rw-r----- 1 oracle oinstall 2048 Dec 12 17:09 orawisdms
-rw-r-----. 1 oracle oinstall 2560 Dec 10 11:35 spfileisdms.ora
修改成功,实例名已经由orcl变成isdms
[oracle@brms03 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 12 17:14:13 2018
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 4275781632 bytes
Fixed Size 2220200 bytes
Variable Size 2298482520 bytes
Database Buffers 1962934272 bytes
Redo Buffers 12144640 bytes
Database mounted.
Database opened.
SQL> select instance from v$thread;
INSTANCE
--------------------------------------------------------------------------------
isdms
不用退出登录,接着开始修改数据库名dbname
SQL> alter database backup controlfile to trace resetlogs;
Database altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
进入控制文件的备份目录,根据alter_orcl.log找到控制备份文件
oracle11.2g 的控制文件备份目录为:$ORACLE_BASE/diag/rdbms/orcl/isdms/trace
[oracle@brms03 trace]$ cd $ORACLE_BASE/diag/rdbms/orcl/isdms/trace
[oracle@brms03 trace]$ vim alert_isdms.log
在alert_isdms.log文件中找到contolfile的备份trc
Backup controlfile written to trace file /opt/oracle/diag/rdbms/orcl/isdms/trace/isdms_ora_27000.trc
复制一份进行修改:
[oracle@brms03 trace]$ cp /opt/oracle/diag/rdbms/orcl/isdms/trace/isdms_ora_27000.trc isdms.sql
编辑文件isdms.sql
1)查找STARTUP NOMOUNT语句,将这一行上面的所有行都删除
2)将-- End of tempfile additions.语句下面的行全部删除
3)查找所有以–开始的行,把这些行删除
4)查找所有的orcl修改为isdms,所有的ORCL修改为ISDMS
5)找到CREATE CONTROLFILE REUSE DATABASE…语句,将其中的REUSE修改为SET
6)找到RECOVER DATABASE USING BACKUP CONTROLFILE语句,将其用双横线(–)注释掉
最终isdms.sql文件如下:
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "ISDMS" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 2336
LOGFILE
GROUP 1 '/opt/oracle/oradata/isdms/redo01.log' SIZE 50M BLOCKSIZE 512,
GROUP 2 '/opt/oracle/oradata/isdms/redo02.log' SIZE 50M BLOCKSIZE 512,
GROUP 3 '/opt/oracle/oradata/isdms/redo03.log' SIZE 50M BLOCKSIZE 512
DATAFILE
'/opt/oracle/oradata/isdms/system01.dbf',
'/opt/oracle/oradata/isdms/sysaux01.dbf',
'/opt/oracle/oradata/isdms/undotbs01.dbf',
'/opt/oracle/oradata/isdms/users01.dbf',
'/opt/oracle/oradata/isdms/hive_01.dbf',
'/opt/oracle/oradata/isdms/isdms_01.dbf',
'/opt/oracle/oradata/isdms/dwd_produce_01.dbf',
'/opt/oracle/oradata/isdms/dwd_produce_02.dbf',
'/opt/oracle/oradata/isdms/dwd_produce_03.dbf',
'/opt/oracle/oradata/isdms/isdms_xz.dbf'
CHARACTER SET AL32UTF8
;
--RECOVER DATABASE USING BACKUP CONTROLFILE
ALTER DATABASE OPEN RESETLOGS;
ALTER TABLESPACE TEMP ADD TEMPFILE '/opt/oracle/oradata/isdms/temp01.dbf'
SIZE 1504M REUSE AUTOEXTEND ON NEXT 655360 MAXSIZE 32767M;
[oracle@brms03 oracle]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 12 18:59:07 2018
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> create pfile from spfile;
File created.
SQL> exit
Disconnected
最终生成的文件在$ORACLE_HOME/dbs目录下文件名为init$ORACLE_SID.ora
在本示例中为:initisdms.ora
[oracle@brms03 dbs]$ ll
total 28
-rw-rw----. 1 oracle oinstall 1544 Dec 12 17:17 hc_isdms.dat
-rw-r--r-- 1 oracle oinstall 1265 Dec 12 18:59 initisdms.ora
-rw-r--r--. 1 oracle oinstall 2851 May 16 2009 init.ora
-rw-r-----. 1 oracle oinstall 24 Sep 10 14:13 lkISDMS
-rw-r----- 1 oracle oinstall 24 Dec 12 17:14 lkORCL
-rw-r----- 1 oracle oinstall 2048 Dec 12 17:09 orawisdms
-rw-r-----. 1 oracle oinstall 3584 Dec 12 17:14 spfileisdms.ora
[oracle@brms03 dbs]$ ll
total 28
-rw-rw----. 1 oracle oinstall 1544 Dec 12 17:17 hc_isdms.dat
-rw-r--r-- 1 oracle oinstall 944 Dec 12 19:13 initisdms.ora
-rw-r--r--. 1 oracle oinstall 2851 May 16 2009 init.ora
-rw-r-----. 1 oracle oinstall 24 Sep 10 14:13 lkISDMS
-rw-r----- 1 oracle oinstall 24 Dec 12 17:14 lkORCL
-rw-r----- 1 oracle oinstall 2048 Dec 12 17:09 orawisdms
-rw-r-----. 1 oracle oinstall 3584 Dec 12 17:14 spfileisdms.ora
这个文件是上面生成的配置文件
1)将orcl.开头的配置项删除
2)将文件中的orcl替换成isdms,ORCL替换成ISDMS
修改前文件内容:
orcl.__db_cache_size=1291845632
isdms.__db_cache_size=1962934272
orcl.__java_pool_size=16777216
isdms.__java_pool_size=16777216
orcl.__large_pool_size=16777216
isdms.__large_pool_size=16777216
orcl.__oracle_base='/opt/oracle'#ORACLE_BASE set from environment
isdms.__oracle_base='/opt/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=2264924160
isdms.__pga_aggregate_target=1728053248
orcl.__sga_target=2030043136
isdms.__sga_target=2566914048
orcl.__shared_io_pool_size=0
isdms.__shared_io_pool_size=0
orcl.__shared_pool_size=637534208
isdms.__shared_pool_size=536870912
orcl.__streams_pool_size=33554432
isdms.__streams_pool_size=0
*.aq_tm_processes=0
*.audit_file_dest='/opt/oracle/admin/orcl/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/opt/oracle/oradata/orcl/control01.ctl','/opt/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='/opt/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/opt/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.job_queue_processes=0
*.memory_target=4294967296
*.job_queue_processes=0
*.memory_target=4294967296
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
修改之后的文件内容:
isdms.__db_cache_size=1962934272
isdms.__java_pool_size=16777216
isdms.__large_pool_size=16777216
isdms.__oracle_base='/opt/oracle'#ORACLE_BASE set from environment
isdms.__pga_aggregate_target=1728053248
isdms.__sga_target=2566914048
isdms.__shared_io_pool_size=0
isdms.__shared_pool_size=536870912
isdms.__streams_pool_size=0
*.aq_tm_processes=0
*.audit_file_dest='/opt/oracle/admin/isdms/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/opt/oracle/oradata/isdms/control01.ctl','/opt/oracle/flash_recovery_area/isdms/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='isdms'
*.db_recovery_file_dest='/opt/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/opt/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=isdmsXDB)'
*.job_queue_processes=0
*.memory_target=4294967296
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
将文件中的orcl替换成isdms,ORCL替换成ISDMS
修改前的内容:
db_name='ORCL'
memory_target=1G
processes = 150
audit_file_dest='/admin/orcl/adump'
audit_trail ='db'
db_block_size=8192
db_domain=''
db_recovery_file_dest='/flash_recovery_area'
db_recovery_file_dest_size=2G
diagnostic_dest=''
dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
open_cursors=300
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
# You may want to ensure that control files are created on separate physical
# devices
control_files = (ora_control1, ora_control2)
compatible ='11.2.0'
修改后的内容:
db_name='ISDMS'
memory_target=1G
processes = 150
audit_file_dest='/admin/isdms/adump'
audit_trail ='db'
db_block_size=8192
db_domain=''
db_recovery_file_dest='/flash_recovery_area'
db_recovery_file_dest_size=2G
diagnostic_dest=''
dispatchers='(PROTOCOL=TCP) (SERVICE=ISDMSXDB)'
open_cursors=300
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
# You may want to ensure that control files are created on separate physical
# devices
control_files = (ora_control1, ora_control2)
compatible ='11.2.0'
1)将orcl.开头的配置项删除
2)将文件中的orcl替换成isdms,ORCL替换成ISDMS
修改前
[oracle@brms03 dbs]$ rm -rf lkORCL
[oracle@brms03 dbs]$ ll
total 24
-rw-rw----. 1 oracle oinstall 1544 Dec 12 17:17 hc_isdms.dat
-rw-r--r-- 1 oracle oinstall 944 Dec 12 19:13 initisdms.ora
-rw-r--r-- 1 oracle oinstall 2854 Dec 12 19:17 init.ora
-rw-r-----. 1 oracle oinstall 24 Sep 10 14:13 lkISDMS
-rw-r----- 1 oracle oinstall 2048 Dec 12 17:09 orawisdms
-rw-r----- 1 oracle oinstall 3241 Dec 12 19:19 spfileisdms.ora
[oracle@brms03 admin]$ cd $ORACLE_BASE/admin
[oracle@brms03 admin]$ ll
total 4
drwxr-x---. 5 oracle oinstall 4096 Sep 10 14:12 orcl
[oracle@brms03 admin]$ mv orcl isdms
[oracle@brms03 admin]$ ll
total 4
drwxr-x---. 5 oracle oinstall 4096 Sep 10 14:12 isdms
将orcl替换成isdms,ORCL替换成ISDMS
[oracle@brms03 pfile]$ cd $ORACLE_BASE/admin/isdms/pfile
[oracle@brms03 pfile]$ ll
total 4
-rw-r-----. 1 oracle oinstall 1764 Sep 10 14:12 init.ora.81020182154
[oracle@brms03 pfile]$ vim init.ora.81020182154
[oracle@brms03 rdbms]$ cd $ORACLE_BASE/diag
[oracle@brms03 diag]$ ll
total 8
drwxr-x---. 3 oracle oinstall 4096 Sep 10 14:12 rdbms
drwxr-xr-x. 3 oracle oinstall 4096 Sep 10 14:11 tnslsnr
[oracle@brms03 diag]$ cd rdbms/
[oracle@brms03 rdbms]$ ll
total 4
drwxr-x---. 4 oracle oinstall 4096 Dec 12 17:14 orcl
[oracle@brms03 rdbms]$ mv orcl isdms
[oracle@brms03 rdbms]$ cd isdms/
[oracle@brms03 isdms]$ ll
total 8
-rw-r-----. 1 oracle oinstall 0 Sep 10 14:13 i_1.mif
drwxr-xr-x 13 oracle oinstall 4096 Dec 12 17:14 isdms
drwxr-x---. 13 oracle oinstall 4096 Sep 10 14:12 orcl
[oracle@brms03 isdms]$ rm -rf orcl
[oracle@brms03 isdms]$ ll
total 4
-rw-r-----. 1 oracle oinstall 0 Sep 10 14:13 i_1.mif
drwxr-xr-x 13 oracle oinstall 4096 Dec 12 17:14 isdms
[oracle@brms03 flash_recovery_area]$ cd $ORACLE_BASE/flash_recovery_area
[oracle@brms03 flash_recovery_area]$ ll
total 8
drwxr-x---. 2 oracle oinstall 4096 Sep 10 14:13 orcl
drwxr-x---. 4 oracle oinstall 4096 Dec 12 17:17 ORCL
[oracle@brms03 flash_recovery_area]$ mv orcl isdms
[oracle@brms03 flash_recovery_area]$ mv ORCL ISDMS
[oracle@brms03 flash_recovery_area]$ ll
total 8
drwxr-x---. 2 oracle oinstall 4096 Sep 10 14:13 isdms
drwxr-x---. 4 oracle oinstall 4096 Dec 12 17:17 ISDMS
[oracle@brms03 flash_recovery_area]$ cd isdms/
[oracle@brms03 isdms]$ ll
total 9744
-rw-r-----. 1 oracle oinstall 9977856 Dec 12 17:18 control02.ctl
[oracle@brms03 isdms]$ rm -rf control02.ctl
[oracle@brms03 isdms]$ ll
total 0
[oracle@brms03 oradata]$ cd $ORACLE_BASE/oradata
[oracle@brms03 oradata]$ ll
total 4
drwxr-x---. 2 oracle oinstall 4096 Dec 4 14:57 orcl
[oracle@brms03 oradata]$ mv orcl isdms
[oracle@brms03 oradata]$ ll
total 4
drwxr-x---. 2 oracle oinstall 4096 Dec 4 14:57 isdms
[oracle@brms03 oradata]$ cd isdms/
[oracle@brms03 isdms]$ ll
total 81859224
-rw-r-----. 1 oracle oinstall 9977856 Dec 12 17:18 control01.ctl
-rw-r-----. 1 oracle oinstall 20971528192 Dec 12 17:18 dwd_produce_01.dbf
-rw-r-----. 1 oracle oinstall 20971528192 Dec 12 17:18 dwd_produce_02.dbf
-rw-r-----. 1 oracle oinstall 20971528192 Dec 12 17:18 dwd_produce_03.dbf
-rw-r-----. 1 oracle oinstall 1073750016 Dec 12 17:18 hive_01.dbf
-rw-r-----. 1 oracle oinstall 7470063616 Dec 12 17:18 isdms_01.dbf
-rw-r----- 1 oracle oinstall 6002057216 Dec 12 17:18 isdms_xz.dbf
-rw-r-----. 1 oracle oinstall 52429312 Dec 12 17:18 redo01.log
-rw-r-----. 1 oracle oinstall 52429312 Dec 12 17:14 redo02.log
-rw-r-----. 1 oracle oinstall 52429312 Dec 12 17:14 redo03.log
-rw-r-----. 1 oracle oinstall 702554112 Dec 12 17:18 sysaux01.dbf
-rw-r-----. 1 oracle oinstall 786440192 Dec 12 17:18 system01.dbf
-rw-r-----. 1 oracle oinstall 1577066496 Dec 11 10:36 temp01.dbf
-rw-r-----. 1 oracle oinstall 2254446592 Dec 12 17:18 undotbs01.dbf
-rw-r-----. 1 oracle oinstall 875569152 Dec 12 17:18 users01.dbf
[oracle@brms03 isdms]$ rm -rf control01.ctl
监听配置文件目录:$ORACLE_HOME/network/admin
修改文件内容,将orcl替换成isdms,ORCL替换成ISDMS
[oracle@brms03 admin]$ cd $ORACLE_HOME/network/admin
[oracle@brms03 admin]$ ll
total 20
-rw-r--r--. 1 oracle oinstall 343 Sep 10 14:11 listener.ora
drwxr-xr-x. 2 oracle oinstall 4096 Sep 10 14:09 samples
-rw-r--r--. 1 oracle oinstall 187 May 8 2007 shrept.lst
-rw-r--r--. 1 oracle oinstall 195 Sep 10 14:11 sqlnet.ora
-rw-r-----. 1 oracle oinstall 301 Sep 10 14:14 tnsnames.ora
[oracle@brms03 admin]$ vim tnsnames.ora
修改前文件内容:
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = brms03)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
修改之后的文件内容:
ISDMS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = brms03)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = isdms)
)
)
[oracle@brms03 trace]$ ll
total 212
-rw-r----- 1 oracle oinstall 23858 Dec 12 19:53 alert_isdms.log
-rw-r----- 1 oracle oinstall 1022 Dec 12 19:50 isdms_ckpt_4247.trc
-rw-r----- 1 oracle oinstall 60 Dec 12 19:50 isdms_ckpt_4247.trm
-rw-r----- 1 oracle oinstall 855 Dec 12 17:14 isdms_dbrm_26911.trc
-rw-r----- 1 oracle oinstall 61 Dec 12 17:14 isdms_dbrm_26911.trm
-rw-r----- 1 oracle oinstall 854 Dec 12 19:49 isdms_dbrm_4229.trc
-rw-r----- 1 oracle oinstall 60 Dec 12 19:49 isdms_dbrm_4229.trm
-rw-r----- 1 oracle oinstall 1451 Dec 12 19:50 isdms_m000_4806.trc
-rw-r----- 1 oracle oinstall 201 Dec 12 19:50 isdms_m000_4806.trm
-rw-r----- 1 oracle oinstall 812 Dec 12 17:14 isdms_mman_26917.trc
-rw-r----- 1 oracle oinstall 61 Dec 12 17:14 isdms_mman_26917.trm
-rw-r----- 1 oracle oinstall 811 Dec 12 19:46 isdms_mman_4235.trc
-rw-r----- 1 oracle oinstall 60 Dec 12 19:46 isdms_mman_4235.trm
-rw-r----- 1 oracle oinstall 811 Dec 12 19:50 isdms_mman_4767.trc
-rw-r----- 1 oracle oinstall 60 Dec 12 19:50 isdms_mman_4767.trm
-rw-r----- 1 oracle oinstall 946 Dec 12 19:49 isdms_mmon_4253.trc
-rw-r----- 1 oracle oinstall 69 Dec 12 19:49 isdms_mmon_4253.trm
-rw-r----- 1 oracle oinstall 14465 Dec 12 17:14 isdms_ora_26758.trc
-rw-r----- 1 oracle oinstall 257 Dec 12 17:14 isdms_ora_26758.trm
-rw-r----- 1 oracle oinstall 4801 Dec 12 17:18 isdms_ora_27000.trc
-rw-r----- 1 oracle oinstall 157 Dec 12 17:18 isdms_ora_27000.trm
-rw-r----- 1 oracle oinstall 14464 Dec 12 19:46 isdms_ora_4033.trc
-rw-r----- 1 oracle oinstall 256 Dec 12 19:46 isdms_ora_4033.trm
-rw-r----- 1 oracle oinstall 885 Dec 12 19:46 isdms_ora_4261.trc
-rw-r----- 1 oracle oinstall 61 Dec 12 19:46 isdms_ora_4261.trm
-rw-r----- 1 oracle oinstall 2834 Dec 12 19:50 isdms_ora_4475.trc
-rw-r----- 1 oracle oinstall 194 Dec 12 19:50 isdms_ora_4475.trm
-rw-r----- 1 oracle oinstall 14463 Dec 12 19:50 isdms_ora_4555.trc
-rw-r----- 1 oracle oinstall 255 Dec 12 19:50 isdms_ora_4555.trm
-rw-r----- 1 oracle oinstall 1834 Dec 12 19:53 isdms_ora_4795.trc
-rw-r----- 1 oracle oinstall 455 Dec 12 19:53 isdms_ora_4795.trm
-rw-r----- 1 oracle oinstall 1115 Dec 12 19:49 isdms.sql
-rw-r----- 1 oracle oinstall 1193 Dec 12 17:18 isdms_vktm_26903.trc
-rw-r----- 1 oracle oinstall 91 Dec 12 17:18 isdms_vktm_26903.trm
-rw-r----- 1 oracle oinstall 1192 Dec 12 19:50 isdms_vktm_4221.trc
-rw-r----- 1 oracle oinstall 90 Dec 12 19:50 isdms_vktm_4221.trm
-rw-r----- 1 oracle oinstall 1192 Dec 12 19:53 isdms_vktm_4753.trc
-rw-r----- 1 oracle oinstall 90 Dec 12 19:53 isdms_vktm_4753.trm
[oracle@brms03 trace]$ pwd
/opt/oracle/diag/rdbms/isdms/isdms/trace
[oracle@brms03 trace]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Dec 12 19:53:56 2018
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> @/opt/oracle/diag/rdbms/isdms/isdms/trace/isdms.sql
ORACLE instance started.
Total System Global Area 4275781632 bytes
Fixed Size 2220200 bytes
Variable Size 2298482520 bytes
Database Buffers 1962934272 bytes
Redo Buffers 12144640 bytes
Control file created.
Database altered.
Tablespace altered.
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
SQL> show parameter name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string
db_name string isdms
db_unique_name string isdms
global_names boolean FALSE
instance_name string isdms
lock_name_space string
log_file_name_convert string
service_names string isdms
SQL> select name from v$database;
NAME
---------
ISDMS
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 4275781632 bytes
Fixed Size 2220200 bytes
Variable Size 2298482520 bytes
Database Buffers 1962934272 bytes
Redo Buffers 12144640 bytes
Database mounted.
Database opened.
[oracle@brms03 trace]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-DEC-2018 19:58:15
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /opt/oracle/112/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /opt/oracle/112/network/admin/listener.ora
Log messages written to /opt/oracle/diag/tnslsnr/brms03/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=brms03)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 12-DEC-2018 19:58:15
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/112/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/brms03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=brms03)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@brms03 trace]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-DEC-2018 20:02:34
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 12-DEC-2018 19:58:15
Uptime 0 days 0 hr. 4 min. 18 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/112/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/brms03/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=brms03)(PORT=1521)))
Services Summary...
Service "isdms" has 1 instance(s).
Instance "isdms", status READY, has 1 handler(s) for this service...
Service "isdmsXDB" has 1 instance(s).
Instance "isdms", status READY, has 1 handler(s) for this service...
The command completed successfully