[[email protected] ~]$ sqlplus / as sysdba
sql*Plus: Release 11.2.0.4.0 Production on Wed Dec 26 13:04:11 2018
Copyright (c) 1982,2013,Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning,OLAP,Data Mining and Real Application Testing options
sql> alter system set event ="28401 TRACE NAMECONTEXT FOREVER,LEVEL 1" scope=spfile; 之前是写错了
sql> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
sql> startup
ORA-49601: Syntax error: found "%s": expecting one of: "%s" etc..
sql> create pfile=‘/home/oracle/a.txt‘ from spfile;
File created.
vi /home/oracle/a.txt #注销修改的参数
sql> startup pfile=‘/home/oracle/a.txt‘;
ORACLE instance started.
Total System Global Area 2.0243E+10 bytes
Fixed Size 2261968 bytes
Variable Size 3758099504 bytes
Database Buffers 1.6442E+10 bytes
Redo Buffers 41164800 bytes
Database mounted.
Database opened.
alter system set event ="28401 TRACE NAME CONTEXT FOREVER,LEVEL 1" scope=spfile;
sql> create spfile from pfile=‘/home/oracle/a.txt‘;
File created.
sql> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
sql> startup
ORACLE instance started.
[[email protected] ~]$ lsnrctl service
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 26-DEC-2018 12:50:34
Copyright (c) 1991,Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=JHdb)(PORT=1521)))Services Summary...Service "orcl" has 1 instance(s). Instance "orcl",status READY,has 1 handler(s) for this service... Handler(s): "DEDICATED" established:68 refused:0 state:ready LOCAL SERVERService "orclXDB" has 1 instance(s). Instance "orcl",has 1 handler(s) for this service... Handler(s): "D000" established:0 refused:0 current:0 max:1022 state:ready DISPATCHER <machine: JHdb,pid: 25543> (ADDRESS=(PROTOCOL=tcp)(HOST=JHdb)(PORT=28940))The command completed successfully