Professional Documents
Culture Documents
$ cd ~/labs
$ ./lab_14_01_01.sh
orcl
+FRA
8
%t%s%r
USE_DB_RECOVERY_FILE_DEST
+FRA
oracle
SYSDBAarchive log list
$ . oraenv
ORACLE_SID = [oracle] ? orcl
The Oracle base for
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is
ORACLE_HOME=/u01/app/oracle/product
/u01/app/oracle
$ sqlplus / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 -
Production
With the Partitioning, Automatic Storage Management, OLAP,
Data Mining
and Real Application Testing options
Disconnected from Oracle Database 11g Enterprise Edition
Release 11.2.0.1.0 - Production
With the Partitioning, Automatic Storage Management, OLAP,
Data Mining
and Real Application Testing options
$
orcl
oracle
cd /u01/app/oracle/diag/rdbms/orcl/orcl/trace
tail alert_orcl.log
$ cd /u01/app/oracle/diag/rdbms/orcl/orcl/trace
$ tail alert_orcl.log
Sat Jul 11 09:10:03 2009
SMCO started with pid=23, OS id=9837
Sat Jul 11 09:46:31 2009
ALTER DATABASE BACKUP CONTROLFILE TO TRACE
Backup controlfile written to trace file
/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_12190.trc
Completed: ALTER DATABASE BACKUP CONTROLFILE TO TRACE
Sat Jul 11 09:46:56 2009
ALTER DATABASE BACKUP CONTROLFILE TO TRACE
Backup controlfile written to trace file
/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_12190.trc
Completed: ALTER DATABASE BACKUP CONTROLFILE TO TRACE
$
SPFILE
oracleoracle
oracle
oracle
oracle
oracle
ARCHIVELOG
ARCHIVELOG
oracleoracle
oracleoracle
Nightly_Backup
1
11:00 PM
SYSTEM
/home/oracle/labs
labs
lab_16_01_01.sqlSYS
$ cd /home/oracle/labs
$ . oraenv
ORACLE_SID = [oracle] ? orcl
The Oracle base for
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is
/u01/app/oracle
$ sqlplus / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 -
Production
With the Partitioning, Automatic Storage Management, OLAP,
Data Mining
and Real Application Testing options
SQL> @lab_16_01_01.sql
Connected.
onnected.
Java created.
Procedure created.
Synonym created.
Grant succeeded.
SQL>