Backup ORACLE_HOME
I need to upgrade my database system, and I would like to back up ORACLE_HOME before I start the upgrade process. If anything goes wrong, I can use this pre-upgraded ORACLE_HOME software for downgrade. My question is:
Do I need to stop any Oracle-related processes before I copy the ORACLE_HOME using cp command?
Thanks!
Hi Hemant
When upgrade is done would be always done on New
Home, form one version to another for Eg from 9 t0 10
should be done on new we cannot perform on the same
Oracle Home. Reason for taking a backup of existing
home is. In event of Revert your Oracle Home would
have Inventory where this says the present patch and
version of existing database, while installation of
new version is done and the Chosen path for Inventory
location is of old home this would overwrite and
would have information of latest versions. To avaoid
any mistake during installation or upgrade, taking a
backup of all is the best practise.
Babu KanickarajIf you configure and your installation properly, the inventory file will not be overwritten.
You should take backup of ORACLE_HOME no matter you upgrade or not, so backup before upgrade is just redundant thing to do. Not like it's going to hurt anything, just some extra step need to take.
Similar Messages
-
To apply a patch it taking around 3 hours including backing up database.
My question is why should i take cold backup, why not hot backup that can be taken online by placing tablespace into backup mode. Then we can reduce the downtime of backup.
oracle 10.2.4If you are talking about Oracle Database patch set/interim patch/CPU patch, you don't need to do a cold backup of the database: if you are doing a hot backup with archived redo logs backups, you can restore database to a point in time just before applying patch (incomplete recovery). Of course, this hot backup must be run before patch installation and not during patch installation.
Note that :
- you must also backup ORACLE_HOME installation directories to be able to restore ORACLE_HOME in this case
- you must also backup Oracle Inventory
- if you using RMAN, you don't need to put tablespace in backup mode when doing a hot backup.
Edited by: P. Forstmann on 6 janv. 2010 11:21 -
"ORA-01203 - wrong creation SCN" got during copy of a db on another machine
Hello colleagues,
I copy a database from a machine to a second one through this procedure:
I set each tablespace (data and temp) in backup mode
I copy the datafiles (data and temp)
I copy the control file
I copy archived redo logs
On the second machine I try to startup the database by the command
On the second machine I try to startup the database but the following errors are got:
SQL> @/usr/Systems/1359HA_9.0.0_Master/HA_EOMS_1_9.0.0_Master/tmp/oracle/CACH
E/apply_redo.sql;
ORACLE instance started.
Total System Global Area 423624704 bytes
Fixed Size 2044552 bytes
Variable Size 209718648 bytes
Database Buffers 209715200 bytes
Redo Buffers 2146304 bytes
Database mounted.
alter database recover automatic from '/usr/Systems/1359HA_9.0.0_Master/HA_EOMS_1_9.0.0_Master/data/warm_rep
l/WarmArchive/CACHE' database until cancel using backup controlfile
but the following errors are got:
SQL> @/usr/Systems/1359HA_9.0.0_Master/HA_EOMS_1_9.0.0_Master/tmp/oracle/CACH
E/apply_redo.sql;
ORACLE instance started.
Total System Global Area 423624704 bytes
Fixed Size 2044552 bytes
Variable Size 209718648 bytes
Database Buffers 209715200 bytes
Redo Buffers 2146304 bytes
Database mounted.
alter database recover automatic from '/usr/Systems/1359HA_9.0.0_Master/HA_EOMS_1_9.0.0_Master/data/warm_rep
l/WarmArchive/CACHE' database until cancel using backup controlfile
ERROR at line 1:
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 1: '/cache/db/db01/system_1.dbf'
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/cache/db/db01/system_1.dbf'
ORA-01203: wrong incarnation of this file - wrong creation SCN
You see the mount command and the error got.
What can I do to troubleshoot the problem?
thanks for the support
Enrico
The complete copy procedure is the following:
#!/bin/ksh
# Step 2 -- Verifying the DBMS ARCHIVELOG mode
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
spool ${ORACLE_TMP_DIR}/archive.log
archive log list;
spool off
EOF
grep NOARCHIVELOG ${ORACLE_TMP_DIR}/archive.log >/dev/null 2>&1
# Step 3 -- Creating DB_filenames.conf / DB_controfile.conf fles
[ -f ${ORACLE_TMP_DIR}/DB_filenames.conf ] && rm -f ${ORACLE_TMP_DIR}/DB_filenames.conf
[ -f ${ORACLE_TMP_DIR}/DB_controfile.conf ] && rm -f ${ORACLE_TMP_DIR}/DB_controfile.conf
[ -f ${ORACLE_TMP_DIR}/DB_TEMP_filenames.conf ] && rm -f ${ORACLE_TMP_DIR}/DB_TEMP_filenames.conf
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
set linesize 600;
spool ${ORACLE_TMP_DIR}/DB_filenames.conf
select 'TABLESPACE=',tablespace_name from sys.dba_data_files;
select 'FILENAME=',file_name from sys.dba_data_files;
select 'LOGFILE=',MEMBER from v\$logfile;
spool off
EOF
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
set linesize 600;
spool ${ORACLE_TMP_DIR}/DB_controfile.conf
select name from v\$controlfile;
spool off
EOF
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
set linesize 600;
spool ${ORACLE_TMP_DIR}/DB_TEMP_filenames.conf
select 'TABLESPACE=',tablespace_name from sys.dba_temp_files;
select 'FILENAME=',file_name from sys.dba_temp_files;
spool off
EOF
note "Executing cp ${ORACLE_TMP_DIR}/DB_filenames.conf ${INSTANCE_DATA_DIR}/DB_filenames.conf ..."
cp ${ORACLE_TMP_DIR}/DB_filenames.conf ${INSTANCE_DATA_DIR}/DB_filenames.conf
[ $? -ne 0 ] && error "Error executing cp ${ORACLE_TMP_DIR}/DB_filenames.conf ${INSTANCE_DATA_DIR}/DB_filenames.conf!"\
&& LocalExit 1
chmod ug+x ${INSTANCE_DATA_DIR}/DB_filenames.conf
note "Executing cp ${ORACLE_TMP_DIR}/DB_controfile.conf ${INSTANCE_DATA_DIR}/DB_controfile.conf ..."
cp ${ORACLE_TMP_DIR}/DB_controfile.conf ${INSTANCE_DATA_DIR}/DB_controfile.conf
[ $? -ne 0 ] && error "Error executing cp ${ORACLE_TMP_DIR}/DB_controfile.conf ${INSTANCE_DATA_DIR}/DB_controfile.conf!"\
&& LocalExit 1
chmod ug+x ${INSTANCE_DATA_DIR}/DB_controfile.conf
note "Executing cp ${ORACLE_TMP_DIR}/DB_TEMP_filenames.conf ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf ..."
cp ${ORACLE_TMP_DIR}/DB_TEMP_filenames.conf ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf
[ $? -ne 0 ] && error "Error executing cp ${ORACLE_TMP_DIR}/DB_TEMP_filenames.conf ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf!"\
&& LocalExit 1
chmod ug+x ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf
set -a
set -A arr_tablespace `grep "^TABLESPACE=" ${INSTANCE_DATA_DIR}/DB_filenames.conf | awk '{ print \$2 }'`
index=`grep "^TABLESPACE" ${INSTANCE_DATA_DIR}/DB_filenames.conf | wc -l`
backup_status=0
i=0
while [ $i -lt $index ]
do
note "tablespace=${arr_tablespace[$i]}"
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
set linesize 600;
spool ${ORACLE_TMP_DIR}/tablespace.log
select 'FILENAME=',file_name from sys.dba_data_files where tablespace_name='${arr_tablespace[$i]}';
spool off
alter tablespace ${arr_tablespace[$i]} end backup;
spool ${ORACLE_TMP_DIR}/backup_tablespace.log
alter tablespace ${arr_tablespace[$i]} begin backup;
spool off
EOF
set -A arr_filename `grep "^FILENAME=" ${ORACLE_TMP_DIR}/tablespace.log | awk '{ print \$2 }'`
index1=`grep "^FILENAME" ${ORACLE_TMP_DIR}/tablespace.log | wc -l`
h=0
while [ $h -lt $index1 ]
do
name=`basename ${arr_filename[$h]}`
note "filename = ${arr_filename[$h]}"
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
host compress -c ${arr_filename[$h]} > ${BACKUP_AREA}/$name.Z
EOF
h=`expr $h + 1`
done
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
spool ${ORACLE_TMP_DIR}/backup_tablespace.log
alter tablespace ${arr_tablespace[$i]} end backup;
spool off
EOF
i=`expr $i + 1`
done
[ $backup_status -eq 1 ] && LocalExit 1
set -a
set -A arr_tablespace `grep "^TABLESPACE=" ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf | awk '{ print \$2 }'`
index=`grep "^TABLESPACE" ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf | wc -l`
${ORACLE_TMP_DIR}/tablespace.logi=0
while [ $i -lt $index ]
do
note "tablespace=${arr_tablespace[$i]}"
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
set linesize 600;
spool ${ORACLE_TMP_DIR}/tablespace.log
select 'FILENAME=',file_name from sys.dba_temp_files where tablespace_name='${arr_tablespace[$i]}';
spool off
EOF
set -A arr_filename `grep "^FILENAME=" ${ORACLE_TMP_DIR}/tablespace.log | awk '{ print \$2 }'`
index1=`grep "^FILENAME" ${ORACLE_TMP_DIR}/tablespace.log | wc -l`
h=0
while [ $h -lt $index1 ]
do
name=`basename ${arr_filename[$h]}`
note "filename = ${arr_filename[$h]}"
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
host compress -c ${arr_filename[$h]} > ${BACKUP_AREA}/$name.Z
EOF
h=`expr $h + 1`
done
i=`expr $i + 1`
done
# "log switch & controlfile backup"
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
spool ${ORACLE_TMP_DIR}/backup_controlfile.log
alter database backup controlfile to '${BACKUP_AREA}/ctrl_pm.ctl' reuse;
host chmod a+rw ${BACKUP_AREA}/ctrl_pm.ctl
alter system archive log current;
spool off
spool ${ORACLE_TMP_DIR}/archive_info.log
archive log list;
spool off
EOF
# Step 5 -- Copying the DBMS on the companion node
note "transferring archived redo log files from ACT to SBY host"
name=`grep 'Archive destination' ${ORACLE_TMP_DIR}/archive_info.log| awk '{ print \$3 }'`
set -A vett_logfiles `grep "^LOGFILE=" ${INSTANCE_DATA_DIR}/DB_filenames.conf | awk '{ print \$2 }'`
index=`grep "^LOGFILE" ${INSTANCE_DATA_DIR}/DB_filenames.conf | wc -l`
i=0
while [ $index -gt 0 ]
do
name=`basename ${vett_logfiles[$i]}`
###MOD001
$ORACLE_HOME/bin/sqlplus /nolog << EOF
connect / as sysdba
host cp ${vett_logfiles[$i]} ${BACKUP_AREA}/$name
host chmod a+rw ${BACKUP_AREA}/$name
EOF
if [ $? -ne 0 ]; then
error "Error copying logfile on LOCAL_BACKUP_AREA"
LocalExit 1
fi
note "log_file=${vett_logfiles[$i]}"
index=`expr $index - 1`
i=`expr $i + 1`
done
note "Executing RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_filenames.conf ${INSTANCE_DATA_DIR}/DB_filenames.conf 0 -k -ret 2 ..."
RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_filenames.conf ${INSTANCE_DATA_DIR}/DB_filenames.conf 0 -k -ret 2
if [ $? -ne 0 ]; then
error "Error executing RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_filenames.conf ${INSTANCE_DATA_DIR}/DB_filenames.conf 0 -ret 2!"
LocalExit 1
fi
note "Executing RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf 0 -k -ret 2 ..."
RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf 0 -k -ret 2
if [ $? -ne 0 ]; then
error "Error executing RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf ${INSTANCE_DATA_DIR}/DB_TEMP_filenames.conf 0 -ret 2!"
LocalExit 1
fi
note "Executing RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_controfile.conf ${INSTANCE_DATA_DIR}/DB_controfile.conf 0 -k -ret 2 ..."
RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_controfile.conf ${INSTANCE_DATA_DIR}/DB_controfile.conf 0 -k -ret 2
if [ $? -ne 0 ]; then
error "Error executing RemoteCopy ${COMPANION_HOSTNAME} ${INSTANCE_DATA_DIR}/DB_controfile.conf ${INSTANCE_DATA_DIR}/DB_controfile.conf 0 -k -ret 2!"
LocalExit 1
fi
note "Executing RemoteCopy ${COMPANION_HOSTNAME} ${BACKUP_AREA} ${RECOVER_AREA} 0 -k -ret 2 ..."
RemoteCopy ${COMPANION_HOSTNAME} ${BACKUP_AREA} ${RECOVER_AREA} 0 -k -ret 2If the Operating system is same :
Working Machine
================
Shutdown the database and copy everything
Copy the init.ora
Copy the pdf,ctl,and log
Copy the bdump, udump etc..
On the second machine
==================
Copy your file in the same path as original i.e
C:\oracle..<dbname>\system.dbf
C:\oracle..<dbname>\system.dbf
Start the database
If your paths in second machine does not match as original update this thread again
Michael
http://mikegeorgiou.blogspot.com -
9.2.0.6 DBCA installation fails on SuSe9 SP1
Hi all,
2*PIII 800Mhz 40GB
Linux SuSe 9 SP1
I istaled Oracle software 9.2.0.4 and then I add 9.2.06 patch.
Then I tryied to create database with DBCA but after I try to start creation by clicking OK button in the last step , in the shell I get message :
/opt/oracle/product/9ir2/bin/dbca: line 124: 3941 Segmentation fault
(core dumped) $JRE_DIR/bin/jre -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m -classpath
$CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
so dbca wont start creating database
BTW, chose general purpose....
thx for your timeMy bad ... didn't pay attention thru installation docs so I missed the fact that this is known problem which can be fixed by:
Step 1--> Backup $ORACLE_HOME/bin/dbca shell script
Step 2--> Change only line #124 in the $ORACLE_HOME/bin/dbca script
to include -native flag as follows
$JRE_DIR/bin/jre -native -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m
-classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
Step 3--> Run the root.sh and continue running the configuration assistants
Metalink note 292278.1 -
9.0.2.x access_logs: how best to minimize in production?
In 9.0.2.x on Windows 2000, bugs prevent the correct use of CustomLog to minimize over-writing to the OHS (Apache) access_logs by DMS and OPMN. The only way to overcome this is with a lengthy workaround. Fun. The following is the default found in httpd.conf and builds monster access_logs:
CustomLog logs/access_log common
I have instead tried to use TransferLog. However, there are other bugs that inhibit its use and one must update the OHS config anyway or the webserver won't re-start. This is a very bad thing. None of the following statements in httpd.conf work:
TransferLog "|rotatelogs.exe D:\ora9ias\apps\apache\apache\logs\access_log 86400"
TransferLog "|rotatelogs.exe logs/access_log 86400"
TransferLog "|rotatelogs.exe logs\access_log 86400"
TransferLog "|rotatelogs.exe access_log 86400"
Is there a simpler more elegant way to keep the log files from growing so large? My only instance is in production and I'd like to avoid making any uninformed changes to the architecture. Daily rollover is preferred but not critical. Thanks! -- Mike
[Note: Per MetaLink, at least one of the TransferLog statements should have worked, especially the third. I could get the OHS (Apache) to start, but beyond creating a zero byte access log, it never began to write to it.]Hi,
Try the following:
1. Backup $ORACLE_HOME/j2ee/*/config/default-web-site.xml
2. Edit $ORACLE_HOME/j2ee/*/config/default-web-site.xml to change the following:
<access-log path="../log/*_default_island_1/default-web-access.log"/>
to :
<access-log path="../log/*_default_island_1/default-web-access.log" split="day" suffix="yyyyMMdd"/>
This should create a new file every day in the format default-web-access20030522.log. Change the split to "week", etc. as you see fit. More information can be found on http"//www.orionserver.com/docs/access-log-format.html
I've been able to get that to work for a 903 middle-tier but not for 9021 OC4J. Good Luck. -
I have Installed Oracle9i Enterprise Edition on a Win 2000 m/c. During the installation steps I choose the pre configured database type to be for data warehousing.
Installation was smooth without any errors. However I do not see any OLAP services running. Also I do not see any /bin folder under ORACLE_HOME/OLAP as refered in some of the forums discussion topics.
Can anybody help me out to get OLAP enabled.We are going to need more information to figure this out. We will need to take a look at your logs. Here are the steps to create them:
Please change the path to fit into your environment.
- Set a SYSTEM environment variable
variable: OES_EA_STARTUP
value: -LogOutput=VDBG
- Reboot the PC
- Stop OLAP Agent if it's running
- Edit a registry key under HKEY_LOCAL_MACHINE
[Software\ORACLE\OLAP\ExpressServer\OLAPServer\I/O Management]
EventLogPath = (REG_SZ) "c:\oracle\ora90\olap\OLAPServer\log"
- Create the corresponding directory if there isn't.
- Rename the following log files for backup
%ORACLE_HOME%\olap\OLAPServer\log\OLAPService.log
%ORACLE_HOME%\olap\log\OLAPServicesAgent.log
- Make sure that Oracle and tnslistener service are running
- Make sure that you can connect as olapsvr/instance in sqlplus
- Start Oracle OLAP Agent from services applet
- Start OLAPServer from services applet
- The following two files will be generated.
%ORACLE_HOME%\olap\OLAPServer\log\OLAPService.log
%ORACLE_HOME%\olap\log\OLAPServicesAgent.log
Pleaser email me your logs. Thanks. -
Could not install supplement db soft for apps rdbms
Hello to all,
i need to add enterprise db options in EBS 11.5.10.2. (rdbms 9.2.0.6) using OUI.
OUI asks: "Enter the full path of the file representing the product(s) you want to install) at “Specify File Locations” form."
There is no file like products.jar (or products.xml) in the staging area of oebs.
It doesn't suits database software 9.2.0.4 (OUI returned error because version 9.2.0.4 (apps using 9.2.06)), or Patch Set 9.2.0.6.
please help…
what file in OUI should i specify for ebs database? or
Where can i take exactly 9.2.0.6 db software?
thanx in advance9.2 support/development is on it's way out. Can you convince your business to upgrade to 10.2? You could install OLS at the time of creating the 10.2.0.1 Oracle Home, then it would be patched up to 10.2.0.3 automatically.
Oracle Applications Release 11i with Oracle 10g Release 2 (10.2.0)
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362203.1
About the only other way would be to use 9.2.0.4 to create a new Oracle Home and install OLS. Then apply 9.2.0.6 patchset and all one-off patches you currently have. Follow the 9.2 11i interop doc to allow you to run autoconfig on the Oracle Home.
Oracle Applications Release 11i with Oracle9i Release 2 (9.2.0)
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=216550.1
If you can afford a several hour downtime, you can backup $ORACLE_HOME/appsutil, blow away the 9.2 Oracle Home, install fresh 9.2.0.4 in it's place with OLS, patch to 9.2.0.6, apply one-off patches, restore appsutil, then run $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh.
Of course, all of that is a little less work then just upgrading to 10gR2. -
Which is the prefered way to rollback a patch set?
Hello,
I am about to apply a patch set to my test database 10.2.0.3. Because of a bug, I need to patch up to patch #27 (7353785). From reading the patch doc, it suggested I backup the ORACLE_HOME mountpoint and also the inventory directory. There is a rollback procedure for rolling back the patch as well.
1) If after the patch has been applied, what would be the best way to back out of the patch say, after the database has been running for a few days after the patch?
2) What would be the best way to back out of the patch, a few hours after the patch?
3) which is preferred, using the rollback procedure (opatch rollback -id 7353785) or using the backup ORACLE_HOME and backup inventory directory taken just before the patch is applied?
Thank you.1) If after the patch has been applied, what would be the best way to back out of the patch say, after the database has been running for a few days after the patch? Use opatch, last option restore from backup.
2) What would be the best way to back out of the patch, a few hours after the patch?Use opatch, last option restore from backup.
3) which is preferred, using the rollback procedure (opatch rollback -id 7353785) or using the backup ORACLE_HOME and backup inventory directory taken just before the patch is applied?Use opatch
Ss -
Hi everyone,
I know that Oracle does not support OpenSuSE, but all previous database versions worked.
With Oracle 12c, the installation fails. I get the error below.
Probably someone has a helpful idea?
Yours, user8632123.
INFO: make -f /home/oracle/base/rdbms/12.101/precomp/lib/ins_precomp.mk relink EXENAME=proc
INFO: make[1]: Entering directory `/home/oracle/base/rdbms/12.101/precomp/lib'
INFO: Linking /home/oracle/base/rdbms/12.101/precomp/lib/proc
INFO: /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /home/oracle/base/rdbms/12.101/lib//libnls12.a(lxhlang.o): undefined reference to symbol '__tls_get_addr@@GLIBC_2.3'
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: '__tls_get_addr@@GLIBC_2.3' is defined in DSO /lib64/ld-linux-x86-64.so.2 so try adding it to the linker command line
/lib64/ld-linux-x86-64.so.2: could not read symbols: Invalid operation
INFO: collect2: error: ld returned 1 exit status
INFO: /bin/chmod: cannot access ‘/home/oracle/base/rdbms/12.101/precomp/lib/proc’
INFO: : No such file or directory
INFO: make[1]: Leaving directory `/home/oracle/base/rdbms/12.101/precomp/lib'
INFO: make[1]: *** [/home/oracle/base/rdbms/12.101/precomp/lib/proc] Error 1
INFO: make: *** [proc] Error 2I'm using opensuse 12.3 and I has this error too.
My solution is
1) backup {ORACLE_HOME}/lib/stubs and then delete it.
2) change RMAN_LINKLINE in the file {ORACLE_HOME}/rdbms/lib/env_rdbms.mk
to
RMAN_LINKLINE=$(LINK) $(OPT) $(S0MAIN) $(SSKRMED) $(SKRMPT) \
$(LLIBDBTOOLS) $(LLIBCLIENT) $(LLIBSQL) $(LLIBPLSQL) \
$(LLIBSNLSRTL) $(LLIBUNLSRTL) $(LLIBNLSRTL) \
$(LLIBSLAX) $(LLIBPLSQL) $(LIBPLCN) $(LINKTTLIBS) -lons
3) relink all. -
Connection to Target RMAN throws insufficient privileges error
I have primary database running over 11.1.0.7.5 and trying to create standby database using below command
connect target sys/password@dgprod
connect auxiliary /
run
allocate auxiliary channel c1 device type disk;
allocate auxiliary channel c2 device type disk;
allocate auxiliary channel c3 device type disk;
allocate auxiliary channel c4 device type disk;
duplicate target database for standby from active database
db_file_name_convert=(
'/u01/oradata/dgprod/datafile','/u01/oradata/dgstd/datafile')
nofilenamecheck;
But I am getting
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-01031: insufficient privileges
I have checked that remote_login_passwordfile paramter over primaray database is set to exclusive and password file has been created over $ORACLE_HOME/dbs
Can anyone please suggest what I am missing here...env | sort
_=/bin/env
CVSROOT=:pserver:buildadm:in@g2cvs:/home/cvsroot
DBA_SQL=/mnt/nas/scripts/shared/dba_sql
DDL_LOG=/home/oracle/ddl_log
EDITOR=vi
G_BROKEN_FILENAMES=1
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=dproddb11.us.traq.com
INPUTRC=/etc/inputrc
KDEDIR=/usr
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/u01/app/oracle/product/11gr1ee/lib:/usr/lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
LG_BACKUP_DIR=/mnt/nas/lg_backup
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
NAS_BASE=/mnt/nas
NLS_LANG=AMERICAN_AMERICA.AL32UTF8
OLDPWD=/u01/app/oracle/admin/dgstd/pfile
ORACLE_ADMIN=/u01/app/oracle/admin
ORACLE_BASE=/u01/app/oracle
ORACLE_BIN=/u01/app/oracle/admin/bin
ORACLE_BKUP_LOGS=/mnt/nas/backups/logs
ORACLE_BKUP=/mnt/nas/backups
ORACLE_HOME=/u01/app/oracle/product/11gr1ee
ORACLE_SID=dgstd
PAGER=/usr/bin/less
PATH=/usr/ccs/bin:/usr/bin/x11:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/usr/local/bin:/u01/app/oracle/product/11gr1ee/bin
PROMPT_COMMAND=echo -ne "\033]0;${ORACLE_SID} ${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"
PS1=dgstd \u@\h:\w >
PWD=/u01/app/oracle/admin/dgstd/create
SCRIPTS_BASE=/mnt/nas/scripts
SHELL=/bin/bash
SHLVL=1
SQLPATH=/mnt/nas/scripts/shared/dba_sql:/u01/app/oracle/product/11gr1ee/rdbms/admin
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_CLIENT=::ffff:172.30.4.5 58102 22
SSH_CONNECTION=::ffff:172.30.4.5 58102 ::ffff:10.2.5.41 22
SSH_TTY=/dev/pts/1
TERM=xterm
USER=oracle -
Scenario:
We have a script that runs a hot backup of each database on a VM server. Because there are multiple databases on the VM we have a mixture of database versions. For example, we might have 8 databases on Server A running 10.2.0.5 and we might have 2 databases on the same server (Server A) running 10.2.0.4 (different homes of course). Our hot backup script sets one single ORACLE_HOME env variable for running a hot backup for all databases.
Question:
Can I safely export the script's ORACLE_HOME as 10.2.0.5 for all the databases on the VM and still get successful hot backups of the 10.2.0.4 and the 10.2.0.5 databases?
Followup Question:
When we eventually start upgrading the 10.2.0.5 databases to 11r2, will a single ORACLE_HOME set by the same hot backup script work knowing that some databases may be 11r2 and some may be 10.2.0.5 on the same VM?
Thanks for your input.The cron job runs a script that builds a script that selects the SIDs on that server and then it runs another script that builds a sqlplus script (script detailed below). The sqlplus script is a file that contains the following commands for each SID on the machine:
set feedback off
set pagesize 0
set termout off
spool /xxx/xxx/b_backup.sql
select 'set termout on' from dual;
select 'set echo on' from dual;
select distinct 'alter tablespace '||tablespace_name||' begin backup;'
from dba_data_files;
select 'select from v$backup;' from dual;*
select 'exit' from dual;
spool off
*@/xxx/xxx/b_backup.sql*
exit
So what we end up with is a sqlplus file that will execute the above commands for each SID on the box. The databases may be different versions though (a mix of 10.2.0.4 and 10.2.0.5).
My basic question is: Will using ORACLE_HOME pointing to 10.2.0.5 sqlplus have any negative effect on backing up a 10.2.0.4 database?
My secondary/follow-up question is concerning future upgrades to 11r2: Will using ORACLE_HOME pointing to 11.2.0.2 sqlplus have any negative effect on backing up the remaining (not yet upgraded) 10.2.0.5 databases?
Does sqlplus version matter when running sqlplus from a different ORACLE_HOME on a database with a different version? -
Why does my archivelog RMAN backups end up in ORACLE_HOME/dbs ?
DB version: 11.2
Platform: Solaris 10
I have noticed that , rman backup pieces containing archivelogs end up in $ORACLE_HOME/dbs directory despite using format parameter. This happened for both Level 0 AND Level 1 backups.
I know that backup files end up in $ORACLE_HOME/dbs when you forget to specify FORMAT. But FORMAT is included in my Level0 and Level 1 Scripts as shown below. Is there anything else wrong with my L0 and L1 scripts ?
Following are my Level0 and Level 1 backup scripts
-- Level0
run
allocate channel LEVEL0_TBLQA device type disk;
crosscheck backup;
delete noprompt obsolete;
backup as backupset incremental level 0 database format='/u04/dbfiles/RMAN_bkp/tblqa/TBLQA_full_%U_%T.bkp' plus archivelog delete input;
release channel LEVEL0_TBLQA;
}--- Level 1
run {
backup as compressed backupset incremental level 1 database format='/u04/dbfiles/RMAN_bkp/tblqa/TBLQA_L1_%U_%T.bkp' plus archivelog delete all input;
}This DB is using control file as catalog.backup as backupset incremental level 0 database format='/u04/dbfiles/RMAN_bkp/tblqa/TBLQA_full_%U_%T.bkp' plus archivelog delete input;
backup as compressed backupset incremental level 1 database format='/u04/dbfiles/RMAN_bkp/tblqa/TBLQA_L1_%U_%T.bkp' plus archivelog delete all input;This is because, the format you have specified stands good only till the backup of database (backup as compressed backupset incremental level 1 database format ".....") and not for the archive log in your script. Hence, the archivelog backups get stored in the $ORACLE_HOME/dbs location and the database backup gets stored in the format location you have mentioned in your RMAN script.
Instead you can use as below:
run
allocate channel LEVEL0_TBLQA device type disk format '/u04/dbfiles/RMAN_bkp/tblqa/TBLQA_full_%U_%T.bkp';
crosscheck backup;
delete noprompt obsolete;
backup as backupset incremental level 0 database plus archivelog delete input;
release channel LEVEL0_TBLQA; -
Zipping the ORACLE_HOME as backup before applying a patch
Hi,
I'm reading the and OPatch User's Guide 10g Release 2 (10.2) for Windows and it states there to backup the oracle home before patching.
+"You can back up the ORACLE_HOME using your preferred method. You can use any method such as zip, cp -r, tar, and cpio to compress the ORACLE_HOME."+
I have a zip.exe and unzip.exe under the oracle_home/bin directory. Unzipping a folder works fine, but i can't manage to zip a folder - I keep getting the following error:
zip error: Nothing to do!
Can someone show me how to zip the oracle_home to another location from the windows command line?
Thanks!Strange, just look at example:
D:\>dir
Directory of D:\Oracle\product\10.1.0\Client\NETWORK\ADMIN
2009.03.05. 15:24 <DIR> .
2009.03.05. 15:24 <DIR> ..
2009.03.05. 15:24 <DIR> SAMPLE
2008.12.23. 10:04 222 sqlnet.ora
2009.03.04. 11:09 984 tnsnames.ora
2 File(s) 1 206 bytes
3 Dir(s) 119 489 515 520 bytes free
D:\>zip zip_test.zip *
adding: SAMPLE/ (stored 0%)
adding: sqlnet.ora (deflated 21%)
adding: tnsnames.ora (deflated 73%)
D:\>
Post Your example and exact commands. -
Dear experts,
I noticed that I have hundreds of files in $ORACLE_HOME that are backup pieces. I have set up the backup location in +FRA. I am not sure how these files get generated and why the cause an error when RMAN ran as you can see below.
I very much appreciate your assistance,
Terry
RMAN> DELETE NOPROMPT OBSOLETE;
RMAN retention policy is set to recovery window of 3 days
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
Backup Set 319 21-JUN-08
Backup Piece 271 21-JUN-08 +FRA/bms/autobackup/2008_06_21/s_657944280.306.657944281
Backup Set 322 21-JUN-08
Backup Piece 274 21-JUN-08 bk_324_1_657950801
Backup Set 323 21-JUN-08
Backup Piece 275 21-JUN-08 c-118945620-20080621-02
Backup Set 333 22-JUN-08
Backup Piece 283 22-JUN-08 /u01/app/oracle/product/10.2.0/db_1/afjjhg2v_1_1
Backup Set 348 23-JUN-08
Backup Piece 296 23-JUN-08 /u01/app/oracle/product/10.2.0/db_1/aujjk4el_1_1
Backup Set 363 24-JUN-08
Backup Piece 309 24-JUN-08 /u01/app/oracle/product/10.2.0/db_1/bdjjmonm_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 06/25/2008 02:00:23
RMAN-06091: no channel allocated for maintenance (of an appropriate type)The confusion is that I have a server that deletes the files based on the retention period and has no issues. The other server has identical setup, but it gives an error and it does not delete the backup piece.
Backup Piece 1402 25-JUN-08 /u01/app/oracle/product/10.2.0/db_1/jbjjpc9a_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 06/26/2008 02:00:21
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
$ORACLE_HOME files generated from the channel fornat:
-rw-r----- 1 oracle oinstall 294626304 Jun 25 07:06 rcjjpu2r_1_1
-rw-r----- 1 oracle oinstall 98304 Jun 25 07:07 rdjjpu4m_1_1
-rw-r----- 1 oracle oinstall 244966912 Jun 26 07:07 rljjsifj_1_1
-rw-r----- 1 oracle oinstall 98304 Jun 26 07:07 rmjjsih3_1_1
Files generated from +FRA pfile location:
ASMCMD> pwd
+FRA/DBWS/BACKUPSET
ASMCMD> ls -ltr
Type Redund Striped Time Sys Name
Y 2008_06_15/
Y 2008_06_16/
Y 2008_06_17/
Y 2008_06_18/
Y 2008_06_19/
Y 2008_06_20/
Y 2008_06_21/
Y 2008_06_22/
Y 2008_06_23/
Y 2008_06_24/
Y 2008_06_25/
Y 2008_06_26/
ASMCMD> cd 2008_06_26/
ASMCMD> ls -ltr
Type Redund Striped Time Sys Name
BACKUPSET MIRROR COARSE JUN 26 07:00:00 Y ncnnf0_TAG20080626T070124_0.1101.658393401
BACKUPSET MIRROR COARSE JUN 26 07:00:00 Y nnndf0_TAG20080626T070124_0.1159.658393287
BACKUPSET MIRROR COARSE JUN 26 07:00:00 Y nnndf0_TAG20080626T070124_0.850.658393285 -
RMan backup stores backupsets into $ORACLE_HOME
Rman backups are currently storing backupsets into the $ORACLE_Home
WHy would that be.???????
how can i check the default dsik device????ok herewith is the out as requested.
oracle $ rman
Recovery Manager: Release 11.2.0.2.0 - Production on Thu Mar 10 11:55:17 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> connect target
connected to target database: MAC (DBID=710471977)
RMAN> connect catalog rman/sun011gR2@sun0
connected to recovery catalog database
RMAN> show all
2> ;
RMAN configuration parameters for database with db_unique_name MAC_D are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u1/oracle/product/11.2.0/db_1/dbs/snapcf_MAC.f'; # default
RMAN>
{Code}
Did not see any changes...or might have overlooked.
Maybe you are looking for
-
Help with complex Acrobat forms
Hi Everyone, Background: I worked with another developer and completed a form for one of our clients but I need to know if the below change requests are even possible and if so if anyone would like to help with finishing the form. I am definitely wil
-
Hello. I have a problem with OEL 6.5 and ocfs2. When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC. fstab: UUID=32130a0b-
-
'Error 30644: Page Group name should be unique' after page group is removed
Hi, I have removed a page group with name 'X'. But when i tried to create a new page group with the same name 'X', i encountered the following error message: 'Error 30644: Page Group name should be unique' What could i do to create page group with th
-
Problem with JAI medialib accelorator
I use JAI to display images. Recently after loading an IBM Websphere product my Java 1.4.0 programs(which have nothing to do with Websphere) started displaying this message in the command window: Could not load mediaLib accelerator wrapper classes. C
-
What's the most current OX system can I run on the power Mac g5
What's the most current OX system can I run on the power Mac g5