Professional Documents
Culture Documents
oracle@192.168.1.107's password:
Last login: Fri Apr 16 14:47:14 2021 from 192.168.1.106
[oracle@myhost ~]$ lsnrctl start
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production
Start Date 17-APR-2021 23:15:09
Uptime 0 days 0 hr. 0 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
Listener Log File
/u01/app/oracle/diag/tnslsnr/myhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost.mydomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@myhost ~]$ sqlplus / as sysdba
s
SQL*Plus: Release 12.2.0.1.0 Production on Sat Apr 17 23:15:17 2021
SQL> startup
SP2-0734: unknown command beginning "startupsta..." - rest of line ignored.
SQL> startup
ORACLE instance started.
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
adrci>
adrci>
adrci>
adrci> exit
[oracle@myhost ~]$ sqlplus / as sysdba
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
NAME
----------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
Diag Enabled
TRUE
ADR Base
/u01/app/oracle
ADR Home
/u01/app/oracle/diag/rdbms/orcl/ORCL
NAME
----------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
Diag Trace
/u01/app/oracle/diag/rdbms/orcl/ORCL/trace
Diag Alert
/u01/app/oracle/diag/rdbms/orcl/ORCL/alert
Diag Incident
/u01/app/oracle/diag/rdbms/orcl/ORCL/incident
NAME
----------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
Diag Cdump
/u01/app/oracle/diag/rdbms/orcl/ORCL/cdump
Health Monitor
/u01/app/oracle/diag/rdbms/orcl/ORCL/hm
NAME
----------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
Active Problem Count
0
11 rows selected.
SQL>
SQL> col value format a30;
SQL> /
NAME
----------------------------------------------------------------
VALUE
------------------------------
Diag Enabled
TRUE
ADR Base
/u01/app/oracle
ADR Home
/u01/app/oracle/diag/rdbms/orc
l/ORCL
NAME
----------------------------------------------------------------
VALUE
------------------------------
Diag Trace
/u01/app/oracle/diag/rdbms/orc
l/ORCL/trace
Diag Alert
/u01/app/oracle/diag/rdbms/orc
l/ORCL/alert
NAME
----------------------------------------------------------------
VALUE
------------------------------
Diag Incident
/u01/app/oracle/diag/rdbms/orc
l/ORCL/incident
Diag Cdump
/u01/app/oracle/diag/rdbms/orc
l/ORCL/cdump
Health Monitor
NAME
----------------------------------------------------------------
VALUE
------------------------------
/u01/app/oracle/diag/rdbms/orc
l/ORCL/hm
NAME
----------------------------------------------------------------
VALUE
------------------------------
11 rows selected.
NAME VALUE
-------------------- ------------------------------
Diag Enabled TRUE
ADR Base /u01/app/oracle
ADR Home /u01/app/oracle/diag/rdbms/orc
l/ORCL
NAME VALUE
-------------------- ------------------------------
Diag Incident /u01/app/oracle/diag/rdbms/orc
l/ORCL/incident
NAME VALUE
-------------------- ------------------------------
11 rows selected.
SQL>
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@myhost ~]$ rman target /
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
RMAN> exit
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of repair command at 04/17/2021 23:42:55
RMAN-06953: no automatic repairs were listed by ADVISE FAILURE
RMAN> exit
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
User created.
SQL>
SQL>
SQL> grant create table to raihan;
Grant succeeded.
User altered.
SQL>
Grant succeeded.
SQL>
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@myhost orcl]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Sat Apr 17 23:53:57 2021
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Table created.
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
----------------------------------check alert log------------------
[oracle@myhost trace]$ pwd
/u01/app/oracle/diag/rdbms/orcl/ORCL/trace
[oracle@myhost trace]$ tail -f alert_ORCL.log
2021-04-17T23:55:25.682441+06:00
Errors in file /u01/app/oracle/diag/rdbms/orcl/ORCL/trace/ORCL_m000_15618.trc:
ORA-01110: data file 7: '/u01/app/oracle/oradata/orcl/users01.dbf'
ORA-01565: error in identifying file '/u01/app/oracle/oradata/orcl/users01.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 7
Checker run found 1 new persistent data failures
2021-04-17T23:57:56.693770+06:00
alter database datafile 7 offline
Completed: alter database datafile 7 offline
2021-04-17T23:57:57.031723+06:00
Errors in file /u01/app/oracle/diag/rdbms/orcl/ORCL/trace/ORCL_m000_16186.trc:
ORA-01110: data file 7: '/u01/app/oracle/oradata/orcl/users01.dbf'
ORA-01565: error in identifying file '/u01/app/oracle/oradata/orcl/users01.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 7
------------------------------------------------------------------------------
[oracle@myhost orcl]$ rman target /
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "advise, allocate,
alter, analyze, associate statistics, audit, backup, begin, @, call, catalog,
change, comment, commit, configure, connect, convert, copy, create, create catalog,
create global, create script, create virtual, crosscheck, declare, delete, delete
from, describe, describe catalog, disassociate statistics, drop, drop catalog, drop
database, duplicate, exit, explain plan, flashback, flashback table, grant, grant
catalog, grant register, host, import, insert, list, lock, merge, mount, noaudit,
open, print, purge, quit, recover, register, release, rename, repair, replace,
report, "
RMAN-01008: the bad identifier was: advice
RMAN-01007: at line 1 column 1 file: standard input
Strategy: The repair includes complete media recovery with no data loss
Repair script: /u01/app/oracle/diag/rdbms/orcl/ORCL/hm/reco_3302415104.hm
Do you really want to execute the above repair (enter YES or NO)? yes
executing repair script
RMAN>
---------------------------If backup is encryption backup then--------------
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
RMAN>
RMAN> advise failure;
Strategy: The repair includes complete media recovery with no data loss
Repair script: /u01/app/oracle/diag/rdbms/orcl/ORCL/hm/reco_3302415104.hm
Do you really want to execute the above repair (enter YES or NO)? yes
executing repair script
RMAN> exit
Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
keystore altered.
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit
Production
[oracle@myhost orcl]$ rman target /
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
RMAN>
RMAN> list failure;
Strategy: The repair includes complete media recovery with no data loss
Repair script: /u01/app/oracle/diag/rdbms/orcl/ORCL/hm/reco_2283896682.hm
Do you really want to execute the above repair (enter YES or NO)? yes
executing repair script
RMAN>