Sei sulla pagina 1di 3

Default.

env
FORMS_PATH=/u02/nis:/u02/nis/forms/adm:/u02/nis/forms/com:/u02/nis/forms/fa:/u
02/nis/forms/sa:/u02/nis/forms/saa:/u02/nis/forms/pm:/u02/nis/forms/mm:/u02/nis/forms
/mn:/u02/nis/forms/ex:/u02/nis/forms/ppc:/u02/nis/forms/faa:/u02/nis/forms/menu:/u02/
nis/forms/rep_inp:/u02/nis/libraries:/u01/App/OraHome_2/forms
# webutil config file path
WEBUTIL_CONFIG=/u01/App/OraHome_2/forms/server/webutil.cfg

CLASSPATH=/u01/App/OraHome_2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEBINF/lib/frmsrv.jar:/u01/App/OraHome_2/jlib/repository.jar:/u01/App/OraHome_2/jlib/ldapjclnt10.jar:/u
01/App/OraHome_2/jlib/debugger.jar:/u01/App/OraHome_2/jlib/ewt3.jar:/u01/App/OraHome_2/jlib/share.ja
r:/u01/App/OraHome_2/jlib/utj.jar:/u01/App/OraHome_2/jlib/zrclient.jar:/u01/App/OraHome_2/reports/jl
ib/rwrun.jar:/u01/App/OraHome_2/forms/java/frmwebutil.jar:/u01/App/OraHome_2/forms/java/jacob.jar

REPORTS_PATH=/u02/nis/reports/
UI_ICON=/u02/nis/icons
UI_IMAGES=/u02/nis/images
DATABASE=galaxy
MAIL_PATH =/u02/nis/attach
REPORTS_SERVER=rep_apserver_oracleas2

Formsweb.cfg
baseHTML=webutilbase.htm
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
form=login.fmx
imageBase=CodeBase
width=850
height=800
separateFrame=true
splashScreen=flash.gif
background=flash.gif
lookAndFeel=Oracle
colorScheme=teal
logo=nscpllogo.gif
archive_jini=frmall_jinit.jar, myicon.jar, myimage.jar,frmwebutil.jar, jacob.jar
archive=frmall.jar, myicon.jar, myimage.jar, frmwebutil.jar, jacob.jar
networkRetries=30
jpi_download_page=http://www.oracle.com/technetwork/java/javase/downlo
ads/index.html
jpi_classid=clsid:CAFEEFAC-0016-0000-0027-ABCDEFFEDCBA
jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windowsi586.cab#Version=1,6,0,27
jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_27
em_mode=1

Starting and Shutting Down a Database with


RMAN in Oracle
Problem
You need to start and shut down the Oracle database from the RMAN client during a backup
and recoveryrelated task.
Solution
You can both shut down and start up a database using the equivalent of the usual SQL*Plus
startup and shutdown commands from the RMAN client. The following sections show how to
issue the startup and shutdown commands from RMAN.
Starting a Database
You can use the startup command with several options. Heres an example that shows how the
database is opened using the startup command:
RMAN> startup
RMAN enables you to do more with the nomount option, however. In the following example,
you can see how you can go through all the steps of opening a databasestarting the
instance, restoring the control file, mounting the control files, recovering the database, and,
finally, opening the database. The example shows how to restore the control file while connected
to the recovery catalog. After restoring the control file, the database is mounted with
the alter database mount command. Next you see the recover command, which is mandatory
after restoring a control file. Finally, the database is opened with the open resetlogs
option:
RMAN> connect target /
RMAN> connect catalog rman/rman@catdb
RMAN> startup nomount;
RMAN> restore controlfile;
RMAN> alter database mount;
RMAN> recover database;
RMAN> alter database open resetlogs;
The nomount option also comes in handy when you lose your spfile or are forced to start
the instance without a spfile (and any init.ora file). You can then use the nomount option to
start up the database with a dummy parameter file. For example:
set DBID 1296234570;
startup force nomount; # RMAN will start the instance with a dummy parameter file
Once RMAN starts the database with the dummy parameter file, you can restore the
actual spfile from the autobackup:
restore spfile from autobackup; # restore a server parameter file
startup force; # restart instance with the new server parameter file
After restoring the spfile, you can start the database using that spfile.

You can also use the dba option with the shutdown command to restrict access only to
those users whove been granted the restricted session privilege. Heres how to do that:

RMAN> startup dba pfile=/tmp/initprod1.ora;


The database is now open, but only users with the restricted session privilege will be
able to connect. Typically, DBAs give the restricted session privilege only to each other. It
gives you a way to do work in the database while ensuring that no business users are connected.
Shutting Down a Database
Issue the shutdown command to close down the database and stop the instance. All the standard
SQL*Plus options you can use with the shutdown commandnormal, immediate, abort,
and transactionalhave the same effect and meaning when used from within RMAN. Heres
an example:
RMAN> shutdown immediate;
RMAN> startup mount;
RMAN> backup database;
RMAN> alter database open;
This example shuts down the database, kicking off any current users as soon as their currently
executing SQL statements finish. The database is then backed up and reopened for use.

Potrebbero piacerti anche