Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
DBA Commands

DBA Commands

Ratings: (0)|Views: 94|Likes:
Published by Siva Prasad N

More info:

Published by: Siva Prasad N on Mar 18, 2011
Copyright:Attribution Non-commercial

Availability:

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

03/18/2011

pdf

text

original

 
Oracle Enterprise Manager Administrator'sGuide
 
Library
 
Product
 
Contents
 
Index
 
DBA Command Reference 
This appendix describes the Server Manager DBA commands available in line mode. Thesecommands can also be used in a SQL Worksheet, although some of these commands behavedifferently when used in a worksheet.
DBA Commands
 
The DBA commands described in this appendix are:
y
 
@ (at symbol)
 
y
 
ARCHIVE 
LOG
 
y
 
ONN 
ECT 
 
y
 
D
ESCRIBE 
 
y
 
D
ISC 
ONN 
ECT 
 
y
 
EXECUTE 
 
y
 
EXIT 
 
y
 
RI 
 
y
 
REC 
O
VER
 
y
 
REMARK 
 
y
 
SET 
 
y
 
SH 
OW 
 
y
 
SHUT 
D
OWN 
 
y
 
OOL
 
y
 
STARTU 
 
y
 
VARIAB
L
 
ote:
If a reserved word is used as an object name in a DBA command, it must be enclosed in quotes.For example, to start up a database that is named with the reserved word V7, issue the commandas follows:
STARTUP OPEN 'V7'
 
@
(at symbol)
 
Purpose
un scripts containing SQL, PL/SQL, and DBA commands.
Prerequisites
 
Y
ou must have previously created the script and stored it as an operating system file.
yntax 
 
@
command ::=where:
scriptname
 
The name of an operating system file that contains a script of statements recognized by Server Manager.
L
ine Mode Behavior 
 
If you omit the
scriptname
argument, you for are prompted for the script name.
sage
otes
 
This command enables you to run scripts of statements. To insert Comments in the script, use the
RE
MA
RK 
command described in
REMARK 
on page -17. To spool the output, use the SPOOLcommand before running or within the script. The SPOOL command is described in
OOL
onpage -30.Do not use the
@
command alone within a script unless you specify the full path name of thescript.To run other scripts from within a script, you can use the
@@
command. In the original scriptinclude the line
@@
second_scriptname
to run another script called
second_scriptname
. The
@@
command indicates that the second script is in the same directory as the original script.
Additional Information:
For information about the standard file selection dialog box for your system, see your operating system-specific documentation.
ARCHIVE 
LOG
 
 
Purpose
Start or stop automatic archiving of online redo log files, manually (explicitly) archive specifiedredo log files, or display information about redo log files.
ote:
This command applies only to the current instance. To specify archiving for a different instanceor for all instances in a Parallel Server, use the SQL command ALT
ER 
S
Y
ST
E
M.
Prerequisites
 
Y
ou must be connected to an open Oracle database as INT
ER 
NAL, S
Y
SOP
ER 
, or S
Y
SDBA.
yntax 
 
A
CHIV
E
LOG command ::=where:
L
ST 
 
equests a display that shows the range of redo log files to be archived, the current log filegroup's sequence number, and the current archive destination (specified by either the optionalcommand text or by the initialization parameter LOG_A
CHIV
E
_D
E
ST).If you are using both A
CHIV
E
LOG mode and automatic archiving, the display might appear like:
Database
log mod
e
Archiv
e
Mod
e
 Au
t
om
at
ic
a
rchiv
a
l En
ab
l
e
dArchiv
e
d
est
in
at
ion
DI
SK9:ARCHOld
est
onlin
e
log
seq
u
e
nc
e
30N
ext
log
seq
u
e
nc
e
 
t
o
a
rchiv
e
33Curr
e
n
t
log
seq
u
e
nc
e
33
Because the log sequence number of the current log group and the next log group to archive arethe same, automatic archival has archived all log groups up to the current one.If you are using A
CHIV
E
LOG but have disabled automatic archiving, the last three lines mightlook like:
Old
est
onlin
e
log
seq
u
e
nc
e
30N
ext
log
seq
u
e
nc
e
 
t
o
a
rchiv
e
30Curr
e
n
t
log
seq
u
e
nc
e
33

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)//-->