P. 1
Appendix a Solutions

Appendix a Solutions

|Views: 119|Likes:
Published by ctu247

More info:

Published by: ctu247 on Apr 07, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/26/2015

pdf

text

original

Before beginning one of the recovery scenarios, you need to run a script that will prepare
the environment for the remaining recovery practices.
1) Before setting up an individual problem, you must navigate to your labs directory
and (in SQL*Plus) execute the lab_16_01_01.sql script as the SYS user. This
script prepares some procedures to be called by the rest of this practice.

$ 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

SQL*Plus: Release 11.2.0.1.0 Production on Sun Jul 12 23:29:58
2009

Copyright (c) 1982, 2009, Oracle. All rights reserved.

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.

Java created.

Procedure created.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

PL/SQL procedure successfully completed.

Synonym created.

Grant succeeded.

SQL>

Oracle Database 11g: Administration Workshop I A - 125

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->