
Installgen
Features and Benefits
Installgen
Demo Available for download...
Bookmark This Page

#!/bin/sh
# script: prod1_export_full_db_1.sh (renamed from 35_sol_prod1_export_full_db_1.sh)
# Features: This shell script performs a full database export to the /backup location.
# Note: This script only needs scheduled as a CRON job if the same task has not
# been scheduled via an OEM job.
#
# Script Sequence#: 35
# Used By: CRON job via oracle UNIX account
# Usage:
# ******** Full Oracle Database Export nightly at 11:50PM ********
# 50 23 * * 0-6 /opt/server_scripts/prod1_export_full_db_1.sh
# Copyright 2002 by .com Solutions Inc.
#
# ---------------------- Revision History ---------------
# Date By Changes
# 10-01-2001 dsimpson Initial Release
# 04-29-2002 dsimpson Added NLS_LANG environment variable
# to avoid EXP-0009 errors during export.
# 05-10-2002 dsimpson Updated to use oracle UNIX account.
# This output file was created by Installgen version 1.38 on Sun Nov 10 14:20:50 2002. By .com Solutions Inc. www.dotcomsolutionsinc.net
# define globally used paths/variables
ORACLE_BASE=/u01/v901
ORACLE_HOME=/u01/v901
ORACLE_OWNER=oracle
ORACLE_OWNER_PATH=/export/oracle
ORACLE_GROUP=dba
ORACLE_HOME=/u01/v901
ORACLE_SID=prod1
LD_LIBRARY_PATH=/u01/v901/lib:/u01/v901/lib64:/usr/dt/lib
CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip
ORAENV_ASK=NO
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=/usr/sbin/:/bin:/usr/bin:/usr/ccs/bin:/usr/ucb/bin:/usr/ucb:/usr/openwin/bin:/usr/dt/bin:/usr/local/bin:/opt/bin:/usr/opt/SUNWmd/sbin:/usr/platform/sun4u/sbin:/opt/sfw/bin:.:/usr/local/sbin:/u01/v901/bin
TERM=vt100
NLS_LANG=AMERICAN_AMERICA.US7ASCII
export ORACLE_OWNER ORACLE_OWNER_PATH ORACLE_GROUP ORACLE_HOME ORACLE_SID ORA_BDUMP_DIR LD_LIBRARY_PATH PATH ORAENV_ASK TNS_ADMIN TERM NLS_LANG
# override default client set used for scripts - use database char set for exports
NLS_LANG="AMERICAN_AMERICA.AL32UTF8"
export NLS_LANG
# log into the database and perform a full database export to the /backup directory
#su - oracle -c "$ORACLE_HOME/bin/exp
$ORACLE_HOME/bin/exp USERID='admin/zx-vnm' FILE=/backup/prod1_full_daily.dmp COMPRESS=Y DIRECT=Y ROWS=Y CONSISTENT=Y FULL=Y

