謹記細心,避免誤操作,第一次誤操作也希望是最後一次
阿新 • • 發佈:2019-01-01
因個人的誤操作造成的嚴重問題,記錄在此,警鐘長鳴!
SQL*Plus: Release 11.2.0.4.0 Production on Tue Mar 15 14:30:05 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter user-name: /as sysdba
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>
SQL> show parameter name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
cell_offloadgroup_name string
db_file_name_convert string
db_name string orcl
db_unique_name string orcl
global_names boolean FALSE
instance_name string orcl
lock_name_space string
log_file_name_convert string
processor_group_name string
service_names string orcl
SQL>
SQL>
SQL> shu
^CORA-01013: user requested cancel of current operation
SQL>
SQL>
SQL> show parameter group
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskgroups string
asm_preferred_read_failure_groups string
cell_offloadgroup_name string
instance_groups string
parallel_instance_group string
processor_group_name string
SQL>
SQL>
SQL>
SQL> @?/rdbms/admin/awrrpti.sql
Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
Enter value for report_type:
Type Specified: html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
* 1391143806 1 ORCL orcl dcerp-orcl
Enter value for dbid:
Using for database Id
Enter value for inst_num:
Using for instance number
:dbid := ;
*
ERROR at line 2:
ORA-06550: line 2, column 18:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
continue avg count current exists max min prior sql stddev
sum variance execute forall merge time timestamp interval
date <a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<an alternatively-quoted string literal with character set specification>
<an alternatively
declare
*
ERROR at line 1:
ORA-20200: Database/Instance / does not exist in DBA_HIST_DATABASE_INSTANCE
ORA-06512: at line 23
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[
[[email protected] ~]$
[[email protected] ~]$ sqlplus
SQL*Plus: Release 11.2.0.4.0 Production on Tue Mar 15 14:31:00 2016
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter user-name: /as sydba^H^H^H
SP2-0306: Invalid option.
Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
where <logon> ::= <username>[/<password>][@<connect_identifier>]
<proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
Enter user-name: /as sysdba
Connected.
SQL>
SQL>
SQL>
SQL>
SQL> show parameter name
ORA-01012: not logged on
Process ID: 0
Session ID: 0 Serial number: 0
在sqlplus命令列裡 輸入 shu 回車
SQL> shu
^CORA-01013: user requested cancel of current operation
檢視alert
導致normal模式
然後startup force
出現
SQL>startup ORA-00845: MEMORY_TARGET not supported on this system解決
修改 /dev/shm 大小
mount -t tmpfs shmfs -o size=10g /dev/shm