Set AUDIT_FILE_DEST
while trying to implement auditing with OS option i am gettig the following error.
SQL> alter system set audit_trail=OS scope=spfile;
System altered.
SQL> alter system set AUDIT_FILE_DEST = 'c:\oracle\product' scope=spfile
2 ;
alter system set AUDIT_FILE_DEST = 'c:\oracle\product' scope=spfile
ERROR at line 1:
ORA-02065: illegal option for ALTER SYSTEM
DB version is is 10.1.0.2.0
Is there anything wrong with the syntax?
If your operating system supports an audit trail, then its location is operating system specific. For example, the Windows operating systems writes audit records as events to the application event log. You can view and manage these events using Event Viewer. You are not allowed to specify the AUDIT_FILE_DEST initialization parameter for Windows platforms
Similar Messages
-
RA-12514: TNS:listener does not in 11g Standby and Primary
Hi,
We are under process of creating active database in Linux,when i am trying to connect to auxiliary database from primary , i am hitting below error, any ideas.
rman target sys/oracle@adg auxiliary sys/oracle@adg1
I am able to do tnsping from both servers.
from standby
[oracle@adg1 admin]$ tnsping adg
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 18-AUG-2011 18:49:15
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = adg.xxxx.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = adg.xxxx.com) (UR=A)))
OK (0 msec)
[oracle@adg1 admin]$ tnsping adg1
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 18-AUG-2011 18:49:15
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = adg1.xxxxcom)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = adg1.xxxx.com) (UR=A)))
OK (0 msec)
[oracle@adg1 admin]$
From Primary:
========
[oracle@adg admin]$ tnsping adg
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 19-AUG-2011 10:06:29
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = adg.xxx.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = adg.xxxx.com)(UR=A)))
OK (10 msec)
[oracle@adg admin]$ tnsping adg1
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 19-AUG-2011 10:06:29
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = adg1.xxx.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = adg1.xxx.com) (UR=A)))
OK (0 msec)
[oracle@adg admin]$
================================
standby listener.ora
[oracle@adg1 admin]$ cat listener.ora
# listener.ora Network Configuration File: /u01/app/11.2.0/grid/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = adg1.xxx.com)(PORT = 1521))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = ADG)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(SID_NAME = ADG1)
standby tnsnames.ora
[oracle@adg1 admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/11.2.0/grid/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ADG1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = adg1.xxx.com)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = adg1.xxx.com) (UR=A)
ADG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = adg.xx.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = adg.xxx.com) (UR=A)
[oracle@adg1 admin]$I am trying to create active database from standby, how ever its failing with below error, any ideas..?
Here is RMAN error log.
ADG: Primary
ADG1:Standby
==============
Recovery Manager: Release 11.2.0.1.0 - Production on Tue Sep 6 03:26:09 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> connect target *
2> connect auxiliary *
3> run {
4> allocate channel prmy1 type disk;
5> allocate channel prmy2 type disk;
6> allocate channel prmy3 type disk;
7> allocate channel prmy4 type disk;
8> allocate channel prmy5 type disk;
9> allocate auxiliary channel stby1 type disk;
10> duplicate target database for standby from active database
11> spfile parameter_value_convert 'adg','adg1'
12> set db_unique_name='adg1'
13> set standby_file_management='AUTO'
14> set db_create_file_dest='+DATA'
15> set db_recovery_file_dest='+DATA'
16> set DB_RECOVERY_FILE_DEST_SIZE='8G'
17> set control_files='+DATA/ADG1/controlfile/control01.ctl'
18> set log_archive_max_processes='5'
19> set fal_client='adg1'
20> set fal_server='adg'
21> set log_archive_config='dg_config=(adg1,adg)'
22> nofilenamecheck
23> ;
24> }
25>
connected to target database: ADG (DBID=1317755151)
connected to auxiliary database: ADG1 (not mounted)
using target database control file instead of recovery catalog
allocated channel: prmy1
channel prmy1: SID=29 device type=DISK
allocated channel: prmy2
channel prmy2: SID=22 device type=DISK
allocated channel: prmy3
channel prmy3: SID=156 device type=DISK
allocated channel: prmy4
channel prmy4: SID=152 device type=DISK
allocated channel: prmy5
channel prmy5: SID=148 device type=DISK
allocated channel: stby1
channel stby1: SID=96 device type=DISK
Starting Duplicate Db at 06-SEP-11
contents of Memory Script:
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/orapwadg' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/orapwadg1' targetfile
'+DATA/adg/spfileadg.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/db_1/dbs/spfileadg1.ora' ;
sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileadg1.ora''";
executing Memory Script
Starting backup at 06-SEP-11
Finished backup at 06-SEP-11
sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileadg1.ora''
contents of Memory Script:
sql clone "alter system set audit_file_dest =
''/u01/app/oracle/admin/adg1/adump'' comment=
'''' scope=spfile";
sql clone "alter system set dispatchers =
''(PROTOCOL=TCP) (SERVICE=adg1XDB)'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_1 =
''Location=/u01/archvie VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=adg1'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_2 =
''SERVICE=adg11 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=adg1'' comment=
'''' scope=spfile";
sql clone "alter system set db_unique_name =
''adg1'' comment=
'''' scope=spfile";
sql clone "alter system set standby_file_management =
''AUTO'' comment=
'''' scope=spfile";
sql clone "alter system set db_create_file_dest =
''+DATA'' comment=
'''' scope=spfile";
sql clone "alter system set db_recovery_file_dest =
''+DATA'' comment=
'''' scope=spfile";
sql clone "alter system set DB_RECOVERY_FILE_DEST_SIZE =
8G comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''+DATA/ADG1/controlfile/control01.ctl'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_max_processes =
5 comment=
'''' scope=spfile";
sql clone "alter system set fal_client =
''adg1'' comment=
'''' scope=spfile";
sql clone "alter system set fal_server =
''adg'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_config =
''dg_config=(adg1,adg)'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set audit_file_dest = ''/u01/app/oracle/admin/adg1/adump'' comment= '''' scope=spfile
sql statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE=adg1XDB)'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_1 = ''Location=/u01/archvie VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=adg1'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_2 = ''SERVICE=adg11 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=adg1'' comment= '''' scope=spfile
sql statement: alter system set db_unique_name = ''adg1'' comment= '''' scope=spfile
sql statement: alter system set standby_file_management = ''AUTO'' comment= '''' scope=spfile
sql statement: alter system set db_create_file_dest = ''+DATA'' comment= '''' scope=spfile
sql statement: alter system set db_recovery_file_dest = ''+DATA'' comment= '''' scope=spfile
sql statement: alter system set DB_RECOVERY_FILE_DEST_SIZE = 8G comment= '''' scope=spfile
sql statement: alter system set control_files = ''+DATA/ADG1/controlfile/control01.ctl'' comment= '''' scope=spfile
sql statement: alter system set log_archive_max_processes = 5 comment= '''' scope=spfile
sql statement: alter system set fal_client = ''adg1'' comment= '''' scope=spfile
sql statement: alter system set fal_server = ''adg'' comment= '''' scope=spfile
sql statement: alter system set log_archive_config = ''dg_config=(adg1,adg)'' comment= '''' scope=spfile
Oracle instance shut down
released channel: prmy1
released channel: prmy2
released channel: prmy3
released channel: prmy4
released channel: prmy5
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/06/2011 03:26:19
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-01031: insufficient privileges
Recovery Manager complete.
Here is alert.log error.
=============
*** 2011-09-06 03:20:24.156
Redo shipping client performing standby login
*** 2011-09-06 03:20:24.200 4539 krsu.c
Logged on to standby successfully
Client logon and security negotiation successful!
Error 16058 attaching RFS server to standby instance at host 'adg1'
Error 16058 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'adg1'
ORA-16058: standby database instance is not mounted
*** 2011-09-06 03:20:24.205 4132 krsh.c
PING[ARC3]: Heartbeat failed to connect to standby 'adg1'. Error is 16058.
*** 2011-09-06 03:20:24.205 2747 krsi.c
krsi_dst_fail: dest:2 err:16058 force:0 blast:1
Redo shipping client performing standby login
OCISessionBegin failed -1
.. Detailed OCI error val is 1034 and errmsg is 'ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1034 and errmsg is 'ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1034 and errmsg is 'ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
*** 2011-09-06 03:26:24.324 4132 krsh.c
Error 1034 received logging on to the standby
*** 2011-09-06 03:26:24.325 869 krsu.c
Error 1034 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'adg1'
Error 1034 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'adg1'
ORA-01034: ORACLE not available
*** 2011-09-06 03:26:24.325 4132 krsh.c
PING[ARC3]: Heartbeat failed to connect to standby 'adg1'. Error is 1034.
*** 2011-09-06 03:26:24.325 2747 krsi.c
krsi_dst_fail: dest:2 err:1034 force:0 blast:1 -
Standby Database not succeeded
Hi experts, I need your assistance.
I am configuring physical stby database on the same host on oracle Release 11.1.0.6.0 win xp. But not not succeeded.
These are the steps I followed
Host name = sumanr
Primary database = orcl
Stby database = stby
1. On the same host I created the instance as 'stby' for the standby database using oradim
2. created the password file using orapwd
3. added the entry for stby databse in tnsnames and listener files
4. created the initstby.ora file with the single entry for db_name=orcl
5. started the stby database in nomount mode.
-------On Primary created the stby redologs
alter database add standby logfile group 4
('C:\app\oracle\oradata\orcl\sby_redo01.rdo') size 50M;
alter database add standby logfile group 5
('C:\app\oracle\oradata\orcl\sby_redo02.rdo') size 50M;
alter database add standby logfile group 6
('C:\app\oracle\oradata\orcl\sby_redo03.rdo') size 50M;
alter database add standby logfile group 7
('C:\app\oracle\oradata\orcl\sby_redo04.rdo') size 50M;
--------OnStandby
sqlplus / as sysdba
startup nomount
------On Primary RMAN
connect target sys/oracle@orcl
connect auxiliary sys/oracle@stby
run {
allocate channel c1 type disk;
allocate auxiliary channel s1 type disk;
duplicate target database
for standby
from active database
dorecover
spfile
parameter_value_convert 'orcl','stby'
set db_unique_name='stby'
set db_file_name_convert='orcl','stby'
set log_file_name_convert='orcl','stby'
set control_files='C:\app\oracle\oradata\stby\control01.ctl','C:\app\oracle\oradata\stby\control02.ctl','C:\app\oracle\oradata\stby\control03.ctl'
set fal_client='stby'
set fal_server='orcl'
set standby_file_management='AUTO'
set log_archive_config='dg_config=(orcl,stby)'
set log_archive_dest_2='service=orcl LGWR ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stby'
set log_archive_dest_state_2='enable'
set log_archive_format='stby_%t_%s_%r.arc';
sql channel c1 "alter system archive log current";
run {
allocate auxiliary channel s1 type disk;
sql channel s1 "alter database recover managed standby database using current logfile disconnect";
}Now in stby when I check v$log, it gives
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
FIRST_CHANGE# FIRST_TIM
1 1 0 52428800 1 YES UNUSED
2064244 17-AUG-09
2 1 0 52428800 1 NO CURRENT
2064280 17-AUG-09
3 1 0 52428800 1 YES UNUSED
2063000 17-AUG-09where as in primary it is
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
FIRST_CHANGE# FIRST_TIM
1 1 67 52428800 1 NO CURRENT
2067534 17-AUG-09
2 1 65 52428800 1 YES INACTIVE
2067226 17-AUG-09
3 1 66 52428800 1 YES INACTIVE
2067532 17-AUG-09dont know what I am missing. Pl. help me.
ThnaksHello SYbrand
Thanks for your resply. I have created the stby redologs in the primary and RMAN is creating them in the standby database.As I checked in the standby
SQL> select type,member
2 from v$logfile;
TYPE
MEMBER
ONLINE
C:\APP\ORACLE\ORADATA\STBY\REDO03.LOG
ONLINE
C:\APP\ORACLE\ORADATA\STBY\REDO02.LOG
ONLINE
C:\APP\ORACLE\ORADATA\STBY\REDO01.LOG
TYPE
MEMBER
STANDBY
C:\APP\ORACLE\ORADATA\STBY\SBY_REDO01.RDO
STANDBY
C:\APP\ORACLE\ORADATA\STBY\SBY_REDO02.RDO
STANDBY
C:\APP\ORACLE\ORADATA\STBY\SBY_REDO03.RDO
TYPE
MEMBER
STANDBY
C:\APP\ORACLE\ORADATA\STBY\SBY_REDO04.RDO
7 rows selected.
SQL>This is my RMAN outcome
Recovery Manager11.1.0.6.0
RMAN> connect auxiliary sys/oracle@stby
connected to auxiliary database: ORCL (not mounted)
RMAN> connect target sys/oracle@orcl
connected to target database: ORCL (DBID=1222322644)
RMAN>
RMAN>
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24>
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=114 device type=DISK
allocated channel: s1
channel s1: SID=97 device type=DISK
Starting Duplicate Db at 17-AUG-09
contents of Memory Script:
backup as copy reuse
file 'C:\app\oracle\product\11.1.0\db_1\DATABASE\PWDorcl.ORA' auxiliary format
'C:\app\oracle\product\11.1.0\db_1\DATABASE\PWDstby.ORA' file
'C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILEORCL.ORA' auxiliary format
'C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILESTBY.ORA' ;
sql clone "alter system set spfile= ''C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILESTBY.ORA''";
executing Memory Script
Starting backup at 17-AUG-09
Finished backup at 17-AUG-09
sql statement: alter system set spfile= ''C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SPFILESTBY.ORA''
contents of Memory Script:
sql clone "alter system set audit_file_dest =
''C:\app\oracle\admin\stby\adump'' comment=
'''' scope=spfile";
sql clone "alter system set dispatchers =
''(PROTOCOL=TCP) (SERVICE=stbyXDB)'' comment=
'''' scope=spfile";
sql clone "alter system set db_unique_name =
''stby'' comment=
'''' scope=spfile";
sql clone "alter system set db_file_name_convert =
''orcl'', ''stby'' comment=
'''' scope=spfile";
sql clone "alter system set log_file_name_convert =
''orcl'', ''stby'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''C:\app\oracle\oradata\stby\control01.ctl'', ''C:\app\oracle\oradata\stby\control02.ctl'', ''C:\app\oracle\oradata\stby\control03.ctl'' comment=
'''' scope=spfile";
sql clone "alter system set fal_client =
''stby'' comment=
'''' scope=spfile";
sql clone "alter system set fal_server =
''orcl'' comment=
'''' scope=spfile";
sql clone "alter system set standby_file_management =
''AUTO'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_config =
''dg_config=(orcl,stby)'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_2 =
''service=orcl LGWR ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stby'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_state_2 =
''enable'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_format =
''stby_%t_%s_%r.arc'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount ;
executing Memory Script
sql statement: alter system set audit_file_dest = ''C:\app\oracle\admin\stby\adump'' comment= '''' scope=spfile
sql statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE=stbyXDB)'' comment= '''' scope=spfile
sql statement: alter system set db_unique_name = ''stby'' comment= '''' scope=spfile
sql statement: alter system set db_file_name_convert = ''orcl'', ''stby'' comment= '''' scope=spfile
sql statement: alter system set log_file_name_convert = ''orcl'', ''stby'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''C:\app\oracle\oradata\stby\control01.ctl'', ''C:\app\oracle\oradata\stby\control02.ctl'', ''C:\app\oracle\oradata\stby\control03.ctl'' comment= '''' scope=spfile
sql statement: alter system set fal_client = ''stby'' comment= '''' scope=spfile
sql statement: alter system set fal_server = ''orcl'' comment= '''' scope=spfile
sql statement: alter system set standby_file_management = ''AUTO'' comment= '''' scope=spfile
sql statement: alter system set log_archive_config = ''dg_config=(orcl,stby)'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_2 = ''service=orcl LGWR ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stby'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_state_2 = ''enable'' comment= '''' scope=spfile
sql statement: alter system set log_archive_format = ''stby_%t_%s_%r.arc'' comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 535662592 bytes
Fixed Size 1334380 bytes
Variable Size 171967380 bytes
Database Buffers 356515840 bytes
Redo Buffers 5844992 bytes
contents of Memory Script:
backup as copy current controlfile for standby auxiliary format 'C:\APP\ORACLE\ORADATA\STBY\CONTROL01.CTL';
restore clone controlfile to 'C:\APP\ORACLE\ORADATA\STBY\CONTROL02.CTL' from
'C:\APP\ORACLE\ORADATA\STBY\CONTROL01.CTL';
restore clone controlfile to 'C:\APP\ORACLE\ORADATA\STBY\CONTROL03.CTL' from
'C:\APP\ORACLE\ORADATA\STBY\CONTROL01.CTL';
sql clone 'alter database mount standby database';
executing Memory Script
Starting backup at 17-AUG-09
channel c1: starting datafile copy
copying standby control file
output file name=C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\SNCFORCL.ORA tag=TAG20090817T150925 RECID=19 STAMP=695142585
channel c1: datafile copy complete, elapsed time: 00:00:15
Finished backup at 17-AUG-09
Starting restore at 17-AUG-09
channel clone_default: skipped, AUTOBACKUP already found
channel c1: copied control file copy
Finished restore at 17-AUG-09
Starting restore at 17-AUG-09
channel clone_default: skipped, AUTOBACKUP already found
channel c1: copied control file copy
Finished restore at 17-AUG-09
sql statement: alter database mount standby database
contents of Memory Script:
set newname for tempfile 1 to
"C:\APP\ORACLE\ORADATA\STBY\TEMP01.DBF";
set newname for tempfile 2 to
"C:\APP\ORACLE\ORADATA\STBY\CHECKUP_TEMP_1";
set newname for tempfile 3 to
"C:\APP\ORACLE\ORADATA\STBY\CHECKUP_TEMP_2";
switch clone tempfile all;
set newname for datafile 1 to
"C:\APP\ORACLE\ORADATA\STBY\SYSTEM01.DBF";
set newname for datafile 2 to
"C:\APP\ORACLE\ORADATA\STBY\SYSAUX01.DBF";
set newname for datafile 3 to
"C:\APP\ORACLE\ORADATA\STBY\UNDOTBS01.DBF";
set newname for datafile 4 to
"C:\APP\ORACLE\ORADATA\STBY\USERS01.DBF";
set newname for datafile 5 to
"C:\APP\ORACLE\ORADATA\STBY\EXAMPLE01.DBF";
set newname for datafile 6 to
"C:\APP\ORACLE\ORADATA\STBY\CHECKUP_DFLT.DAT";
backup as copy reuse
datafile 1 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\SYSTEM01.DBF" datafile
2 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\SYSAUX01.DBF" datafile
3 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\UNDOTBS01.DBF" datafile
4 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\USERS01.DBF" datafile
5 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\EXAMPLE01.DBF" datafile
6 auxiliary format
"C:\APP\ORACLE\ORADATA\STBY\CHECKUP_DFLT.DAT" ;
sql 'alter system archive log current';
executing Memory Script
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
renamed tempfile 1 to C:\APP\ORACLE\ORADATA\STBY\TEMP01.DBF in control file
renamed tempfile 2 to C:\APP\ORACLE\ORADATA\STBY\CHECKUP_TEMP_1 in control file
renamed tempfile 3 to C:\APP\ORACLE\ORADATA\STBY\CHECKUP_TEMP_2 in control file
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting backup at 17-AUG-09
channel c1: starting datafile copy
input datafile file number=00006 name=C:\APP\ORACLE\ORADATA\ORCL\CHECKUP_DFLT.DAT
output file name=C:\APP\ORACLE\ORADATA\STBY\CHECKUP_DFLT.DAT tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:02:55
channel c1: starting datafile copy
input datafile file number=00001 name=C:\APP\ORACLE\ORADATA\ORCL\SYSTEM01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\SYSTEM01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:35
channel c1: starting datafile copy
input datafile file number=00002 name=C:\APP\ORACLE\ORADATA\ORCL\SYSAUX01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\SYSAUX01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:35
channel c1: starting datafile copy
input datafile file number=00005 name=C:\APP\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\EXAMPLE01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:07
channel c1: starting datafile copy
input datafile file number=00003 name=C:\APP\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\UNDOTBS01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:03
channel c1: starting datafile copy
input datafile file number=00004 name=C:\APP\ORACLE\ORADATA\ORCL\USERS01.DBF
output file name=C:\APP\ORACLE\ORADATA\STBY\USERS01.DBF tag=TAG20090817T151028 RECID=0 STAMP=0
channel c1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 17-AUG-09
sql statement: alter system archive log current
contents of Memory Script:
backup as copy reuse
archivelog like "C:\APP\ORACLE\PRODUCT\11.1.0\DB_1\RDBMS\ARC00067_0694541910.001" auxiliary format
"C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_%U_.ARC" archivelog like
"C:\APP\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2009_08_17\O1_MF_1_67_58LLGDYR_.ARC" auxiliary format
"C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_%U_.ARC" ;
catalog clone recovery area;
switch clone datafile all;
executing Memory Script
Starting backup at 17-AUG-09
channel c1: starting archived log copy
input archived log thread=1 sequence=67 RECID=119 STAMP=695142910
output file name=C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC RECID=0 STAMP=0
channel c1: archived log copy complete, elapsed time: 00:00:01
channel c1: starting archived log copy
input archived log thread=1 sequence=67 RECID=120 STAMP=695142910
output file name=C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2JKMU2G4_.ARC RECID=0 STAMP=0
channel c1: archived log copy complete, elapsed time: 00:00:01
Finished backup at 17-AUG-09
searching for all files in the recovery area
List of Files Unknown to the Database
=====================================
File Name: C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC
File Name: C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2JKMU2G4_.ARC
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC
File Name: C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2JKMU2G4_.ARC
datafile 1 switched to datafile copy
input datafile copy RECID=19 STAMP=695142923 file name=C:\APP\ORACLE\ORADATA\STBY\SYSTEM01.DBF
datafile 2 switched to datafile copy
input datafile copy RECID=20 STAMP=695142923 file name=C:\APP\ORACLE\ORADATA\STBY\SYSAUX01.DBF
datafile 3 switched to datafile copy
input datafile copy RECID=21 STAMP=695142923 file name=C:\APP\ORACLE\ORADATA\STBY\UNDOTBS01.DBF
datafile 4 switched to datafile copy
input datafile copy RECID=22 STAMP=695142924 file name=C:\APP\ORACLE\ORADATA\STBY\USERS01.DBF
datafile 5 switched to datafile copy
input datafile copy RECID=23 STAMP=695142924 file name=C:\APP\ORACLE\ORADATA\STBY\EXAMPLE01.DBF
datafile 6 switched to datafile copy
input datafile copy RECID=24 STAMP=695142924 file name=C:\APP\ORACLE\ORADATA\STBY\CHECKUP_DFLT.DAT
contents of Memory Script:
set until scn 2080890;
recover
standby
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 17-AUG-09
starting media recovery
archived log for thread 1 with sequence 67 is already on disk as file C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC
archived log file name=C:\APP\ORACLE\FLASH_RECOVERY_AREA\STBY\ARCHIVELOG\2009_08_17\O1_MF_1_67_ARCH_D-ORCL_ID-1222322644_S-67_T-1_A-694541910_2IKMU2G0_.ARC thread=1 sequence=67
media recovery complete, elapsed time: 00:00:03
Finished recover at 17-AUG-09
Finished Duplicate Db at 17-AUG-09
sql statement: alter system archive log current
released channel: c1 -
RMAN Active Cloning fails with RMAN-06054: missing log file
Version Details:
O.S Version HP-UX B.11.31 U ia64
Oracle DB Version 11.2.0.3.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Scenario :
Using RMAN Active cloning to duplicate a RAC database from Production to Development environment.
Problem:
At the end of the cloning the below errors are reported;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/14/2013 07:03:43
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 24751 and starting SCN of 89285945274
RMAN Script used for Active cloning:
#!/bin/ksh
. setdb entDBu
start_dt=`date +%Y%m%d_%H%M`
job=`basename $0 ".sh"`
rman >> ${job}_${start_dt}.log 2>&1 <<eof
set echo on;
connect target sys/@DCC&(_O@entDBp1
connect auxiliary sys/@DCC&(_O@entDBuu
run {
allocate channel prmy1 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database
to entDBu
from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initentDBu.ora;
show all;
exit
eof
end_dt=`date +%Y%m%d_%H%M`
mailx -s "DR RMAN Job: $job done" "[email protected]" <<eof2
started: ${start_dt}
finish: ${end_dt}
eof2How to prevent the error of RMAN-06054: media recovery requesting unknown archived log for thread with sequence and starting SCN of while performing the RMAN Active Cloning? I do NOT want to use UNTIL clause.Sivaprasad S wrote:
Version Details:
O.S Version HP-UX B.11.31 U ia64
Oracle DB Version 11.2.0.3.0
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Scenario :
Using RMAN Active cloning to duplicate a RAC database from Production to Development environment.
Problem:
At the end of the cloning the below errors are reported;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/14/2013 07:03:43
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 24751 and starting SCN of 89285945274RMAN Script used for Active cloning:
#!/bin/ksh
. setdb entDBu
start_dt=`date +%Y%m%d_%H%M`
job=`basename $0 ".sh"`
rman >> ${job}_${start_dt}.log 2>&1 <<eof
set echo on;
connect target sys/@DCC&(_O@entDBp1
connect auxiliary sys/@DCC&(_O@entDBuu
run {
allocate channel prmy1 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database
to entDBu
from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initentDBu.ora;
show all;
exit
eof
end_dt=`date +%Y%m%d_%H%M`
mailx -s "DR RMAN Job: $job done" "[email protected]" <<eof2
started: ${start_dt}
finish: ${end_dt}
eof2How to prevent the error of RMAN-06054: media recovery requesting unknown archived log for thread with sequence and starting SCN of while performing the RMAN Active Cloning? I do NOT want to use UNTIL clause.Where UNTIL clause in your script I didn't saw.
Please try following RMAN script
DUPLICATE TARGET DATABASE FOR STANDBY
FROM ACTIVE DATABASE
SPFILE
SET "control_files"="/u01/app/oracle/oradata/stbdbcontrol01.ctl"
SET "db_name"="prmdb"
SET "db_unique_name"="stbdb"
SET "db_file_name_convert"="/u01/app/oracle/oradata/prmdb","/u01/app/oracle/oradata/stbdb"
SET "log_file_name_convert"="/u01/app/oracle/oradata/prmdb","/u01/app/oracle/oradata/stbdb"
SET "db_recovery_file_dest"="/u01/app/oracle/fra"
SET "diagnostic_dest"=/u01/app/oracle"
SET "audit_file_dest"="/u01/app/oracle/admin/stbdb/adump"
PASSWORD FILE
NOFILENAMECHECK;
{code}
Please change parameters for your environment.
Regards
Mahir M. Quluzade -
Clone from standby ended in ARC: Cannot archive online log based on backup
Hi
I m into scenario where my prod db is in one data center and standby is in other data center.
Both are geographically separated. I have to get a copy of prod on to standby data center side.
Sending data over the network is taking long time either with duplicate db from active db or take backup and copy over standby side and restore it.
so i thought of duplicate db from standby db which is in same data center, using 11g RMAN duplicate from active standby command.
I have simulated scenario which is as below
oracle version 11.2.0.1
os version REHL 5.4
My procedure & parameter are as below.
on standby side from where i m copying (TARGET)
1) on standby
alter database recover managed standby db cancel;
2)alter database convert to snapshot standby;
which gave me
/u01/data/DGSTD/archive/1_152_750425930.dbf
/u01/data/DGSTD/archive/1_153_750425930.dbf
*/u01/data/DGSTD/archive/1_1_752604441.dbf*
*/u01/data/DGSTD/archive/1_2_752604441.dbf*
3) alter database open;
4) alter system switch logfile;
now from rman
RMAN> connect target sys/system@DGSTD
connect auxiliary sys/system@GGR
connected to target database: DGPRM (DBID=578436102)
RMAN>
connected to auxiliary database: NOTREAL (not mounted)
RMAN>
run{
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate channel prmy5 type disk;
allocate auxiliary channel stby1 type disk;
duplicate target database to ggr from active database
spfile
parameter_value_convert='DGSTD','GGR','/u01/data/DGSTD/','/u01/data/ggr/'
set db_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
set log_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
set 'db_unique_name'='ggr'
set 'audit_file_dest'='/u00/app/oracle/admin/ggr/adump'
set 'sga_max_size'='140m'
set 'pga_aggregate_target'='28940697'
nofilenamecheck;
and when output of rman reaches up below
Starting backup at 31-MAY-11
channel prmy1: starting datafile copy
input datafile file number=00001 name=/u01/data/DGSTD/datafile/system01.dbf
channel prmy2: starting datafile copy
input datafile file number=00002 name=/u01/data/DGSTD/datafile/sysaux01.dbf
in alert log of clone db it gives massive error saying
ARC3: Cannot archive online log based on backup controlfile
ARC2: Cannot archive online log based on backup controlfile
ARC3: Cannot archive online log based on backup controlfile
ARC2: Cannot archive online log based on backup controlfile
and it fill up whole fs. and finally duplicate command throws error.
not sure what i m missing of inside duplicate command or is it valid to duplicate database from snapshot standby.
can somebody light on it please
Edited by: user12281508 on Jun 1, 2011 10:26 AM
Edited by: user12281508 on Jun 1, 2011 10:28 AMduplicate target database to ggr from active database
spfile
parameter_value_convert='DGSTD','GGR','/u01/data/DGSTD/','/u01/data/ggr/'
set db_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
set log_file_name_convert='/u01/oradata/DGSTD/','/u01/data/ggr/'
set 'db_unique_name'='ggr'
set 'audit_file_dest'='/u00/app/oracle/admin/ggr/adump'
set 'sga_max_size'='140m'
set 'pga_aggregate_target'='28940697'
nofilenamecheck;
}I think you should use standby cluase as
DUPLICATE TARGET DATABASE TO dup1 FOR STANDBY FROM ACTIVE DATABASE; -
Oracle 11.2 default instance volume is 50 GiB - How can I increase size?
Hi,
I created an ebs Oracle 11.2 instance that defaulted to a volume size of 50GiB.
Does anyone know how to increase the volume size to 300GiB?
This didn't work:
I created another volume (300Gib), attached it to the instance, mounted the drive, but when I ran the Oracle install script - that drive didn't show up:
Select a disk device to store your datafiles and redo logs on:
ID DEVICE_NAME
[0] Refresh List
[1] Use Default
[2] /dev/sdc1
Thanks.I didnt have any luck with the scripts it comes with the AMI so I just cut and paste of what I need heres the script I use.
You can mount the 300G to /u02 or whatever you want
and change the ORACLE_SID to <YOUR_SID_NAME>
Also you have to run it as user oracle instead of Root
and make sure that the ORACLE_HOME is correct
ORACLE_SID=<YOUR_SID_NAME>
SID=${ORACLE_SID}
GLOBAL_NAME=${SID}
SYS_PWD=s
SYSTEM_PWD=s
DBSNMP_PWD=s
SYSMAN_PWD=s
DBF_MOUNT=/u02
FRA_MOUNT=/u02
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
DBCA_TEMPLATE_DIR=${ORACLE_HOME}/assistants/dbca/templates
DBCA_TEMPLATE_NAME=${DBCA_TEMPLATE_DIR}/General_Purpose.dbc
ORACLE_OWNER=oracle
DBCA=${ORACLE_HOME}/bin/dbca
SQLPLUS=${ORACLE_HOME}/bin/sqlplus
EMCTL=${ORACLE_HOME}/bin/emctl
DB_FILE_DIR=${DBF_MOUNT}/oradata
RECO_AREA=${FRA_MOUNT}/flash_recovery_area
CHARSET=AL32UTF8
export ORACLE_SID=${SID}
mkdir -p ${DBF_MOUNT}/admin/${ORACLE_SID}
mkdir -p ${DBF_MOUNT}/admin/${ORACLE_SID}/dbs
mkdir -p ${DBF_MOUNT}/admin/${ORACLE_SID}/adump
export EMKEY_LOCATION=${DBF_MOUNT}/admin/${ORACLE_SID}/dbs
echo
echo "Please wait while your database is created..."
echo
${DBCA} -silent -createDatabase -templateName ${DBCA_TEMPLATE_NAME} -gdbName ${GLOBAL_NAME} -sid ${SID} -sysPassword ${SYS_PWD} -systemPassword ${SYSTEM_PWD} -dbsnmpPassword ${DBSNMP_PWD} -sysmanPassword ${SYSMAN_PWD} -emConfiguration LOCAL -storageType FS -datafileJarLocation ${DBCA_TEMPLATE_DIR} -sampleSchema true -datafileDestination ${DB_FILE_DIR} -recoveryAreaDestination ${RECO_AREA} -characterSet AL32UTF8
RV=$?
if [ $RV -ne 0 ]
then
echo
echo "There was a problem creating your database. Please review the log file shown above."
else
${EMCTL} stop dbconsole
${SQLPLUS} /nolog << EOF
${SQLPLUS} /nolog << EOF
connect / as sysdba
alter system set audit_file_dest='${DBF_MOUNT}/admin/${ORACLE_SID}/adump' scope=spfile;
EXEC DBMS_XDB.SETHTTPPORT(8080);
ALTER USER anonymous ACCOUNT UNLOCK
@${ORACLE_HOME}/apex/.apxxepwd_custom.sql ${APEX_PWD}
shutdown immediate
exit
EOF
mv $ORACLE_HOME/dbs/spfile${ORACLE_SID}.ora ${DBF_MOUNT}/admin/${ORACLE_SID}/dbs/.
mv $ORACLE_HOME/dbs/orapw${ORACLE_SID} ${DBF_MOUNT}/admin/${ORACLE_SID}/dbs/.
ln -s ${DBF_MOUNT}/admin/${ORACLE_SID}/dbs/spfile${ORACLE_SID}.ora ${ORACLE_HOME}/dbs/.
ln -s ${DBF_MOUNT}/admin/${ORACLE_SID}/dbs/orapw${ORACLE_SID} ${ORACLE_HOME}/dbs/.
${SQLPLUS} /nolog << EOF
connect / as sysdba
startup mount
alter database archivelog;
alter database open;
exit
EOF
${SQLPLUS} /nolog << EOF
connect sysman/${SYSMAN_PWD}
@/home/oracle/scripts/osbws/submit_osb_cloud_backup.pls
exit
EOF
${EMCTL} start dbconsole
echo
grep ORACLE_SID /home/oracle/.bash_profile > /dev/null 2>&1
if [ $? -eq 0 ]
then
echo "Not adding ORACLE_SID=${SID} to /home/oracle/.bash_profile"
echo "because ORACLE_SID is already set in that file."
else
echo "Adding ORACLE_SID=${SID} to /home/oracle/.bash_profile"
echo "export ORACLE_SID=${SID}" >> /home/oracle/.bash_profile
fi
OH="\/u01\/app\/oracle\/product\/11.2.0\/db_1"
cp /etc/oratab /tmp/oratab.bak
sed "s/${ORACLE_SID}:${OH}:N/${ORACLE_SID}:${OH}:Y/" /tmp/oratab.bak > /etc/oratab
echo
echo "The database was created successfully."
fi
echo
echo
/home/oracle/scripts/setup_osbws.sh
echo
echo "You can connect to your database as follows:"
echo
echo "Command Line: sqlplus sys/<your-password> as sysdba"
echo "Enterprise Manager Database Console: https://${ORACLE_HOSTNAME}:<port number>/em e.g. https://${ORACLE_HOSTNAME}:1158/em"
echo "Oracle Application Express (APEX): http://${ORACLE_HOSTNAME}:<port number>/apex e.g. http://${ORACLE_HOSTNAME}:8080/apex"
echo "Actual ports numbers can be found in ${ORACLE_HOME}/install/portlist.ini file. If this is the first database being created on this machine, the above example URLs should work."
echo
echo "Thank You for choosing Oracle Database on EC2."Edited by: vxwo0owxv on May 11, 2011 1:01 PM -
Duplicate database from RMAN. Physical Dataguard. Error
Hi All,
it is really frustrating. I have used the same script and it worked. versions are same 11.2.0.3.2 on both AIX 5.3 servers. tns entries are correct . listener entries correct.
Here is script and errors
set -x
export NLS_DATE_FORMAT='mm/dd/yyyy hh24:mi:ss'
export ORACLE_BASE=/a0277/oracle
export ORACLE_HOME=/a0277/oracle/app/oracle/product/11203/db_1
export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
export LD_LIBRARY_PATH=$LIBPATH
export CLASSPATH=$ORACLE_HOME/jlib
export PATH=/a0277/oracle/app/oracle/product/11203/db_1/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
export ORACLE_SID=ufms777
rman <<EOF
connect auxiliary sys/sys_143_npr#555@ufms777
connect target sys/sys_143_npr#555@ufms555
run
allocate channel d01 type disk;
allocate channel d02 type disk;
allocate channel d03 type disk;
allocate channel d04 type disk;
allocate channel d05 type disk;
allocate auxiliary channel stby01 type disk;
allocate auxiliary channel stby02 type disk;
duplicate target database for standby from active database
spfile
parameter_value_convert '+DATA/ufms555/','+DATA/','ufms555','ufms777' set db_create_file_dest='+DATA'
set db_unique_name='ufms777'
set control_files='+DATA'
set audit_file_dest='/a0277/oracle/admin/ufms777/adump'
set diagnostic_dest='/a0277/oracle';
release channel d01;
release channel d02;
release channel d03;
release channel d04;
release channel d05;
release channel stby01 ;
release channel stby02 ;
quit;
EOF
ERROR.
+ export NLS_DATE_FORMAT=mm/dd/yyyy hh24:mi:ss
+ export ORACLE_BASE=/a0277/oracle
+ export ORACLE_HOME=/a0277/oracle/app/oracle/product/11203/db_1
+ export LIBPATH=/a0277/oracle/app/oracle/product/11203/db_1/lib:/a0277/oracle/app/oracle/product/11203/db_1/lib32
+ export LD_LIBRARY_PATH=/a0277/oracle/app/oracle/product/11203/db_1/lib:/a0277/oracle/app/oracle/product/11203/db_1/lib32
+ export CLASSPATH=/a0277/oracle/app/oracle/product/11203/db_1/jlib
+ export PATH=/a0277/oracle/app/oracle/product/11203/db_1/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
+ export ORACLE_SID=ufms777
+ rman
+ 0< /tmp/sh4391202.2
Recovery Manager: Release 11.2.0.3.0 - Production on Mon Oct 15 10:47:25 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
RMAN>
connected to auxiliary database: UFMS555 (not mounted)
RMAN>
connected to target database: UFMS555 (DBID=1402717741)
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24>
using target database control file instead of recovery catalog
allocated channel: d01
channel d01: SID=629 device type=DISK
allocated channel: d02
channel d02: SID=681 device type=DISK
allocated channel: d03
channel d03: SID=733 device type=DISK
allocated channel: d04
channel d04: SID=785 device type=DISK
allocated channel: d05
channel d05: SID=837 device type=DISK
allocated channel: stby01
channel stby01: SID=583 device type=DISK
allocated channel: stby02
channel stby02: SID=699 device type=DISK
Starting Duplicate Db at 10/15/2012 10:47:35
contents of Memory Script:
backup as copy reuse
targetfile '/a0143/oracle/product/11203/db_1/dbs/orapwufms555' auxiliary format
'/a0277/oracle/app/oracle/product/11203/db_1/dbs/orapwufms777' targetfile
'/a0143/oracle/product/11203/db_1/dbs/spfileufms555.ora' auxiliary format
'/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora' ;
sql clone "alter system set spfile= ''/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora''";
executing Memory Script
Starting backup at 10/15/2012 10:47:35
Finished backup at 10/15/2012 10:47:36
sql statement: alter system set spfile= ''/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora''
contents of Memory Script:
sql clone "alter system set dispatchers =
''(PROTOCOL=TCP) (SERVICE=ufms777XDB)'' comment=
'''' scope=spfile";
sql clone "alter system set log_archive_dest_1 =
''LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=ufms777'' comment=
'''' scope=spfile";
sql clone "alter system set db_create_file_dest =
''+DATA'' comment=
'''' scope=spfile";
sql clone "alter system set db_unique_name =
''ufms777'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''+DATA'' comment=
'''' scope=spfile";
sql clone "alter system set audit_file_dest =
''/a0277/oracle/admin/ufms777/adump'' comment=
'''' scope=spfile";
sql clone "alter system set diagnostic_dest =
''/a0277/oracle'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
executing Memory Script
sql statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE=ufms777XDB)'' comment= '''' scope=spfile
sql statement: alter system set log_archive_dest_1 = ''LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=ufms777'' comment= '''' scope=spfile
sql statement: alter system set db_create_file_dest = ''+DATA'' comment= '''' scope=spfile
sql statement: alter system set db_unique_name = ''ufms777'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''+DATA'' comment= '''' scope=spfile
sql statement: alter system set audit_file_dest = ''/a0277/oracle/admin/ufms777/adump'' comment= '''' scope=spfile
sql statement: alter system set diagnostic_dest = ''/a0277/oracle'' comment= '''' scope=spfile
Oracle instance shut down
released channel: d01
released channel: d02
released channel: d03
released channel: d04
released channel: d05
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/15/2012 10:47:44
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password; logon denied
RMAN>
Recovery Manager complete.Thanks Osama for quick response.
Here is output
(NP) SYS@ufms777 AS SYSDBA> startup nomount pfile=$ORACLE_HOME/dbs/initufms777.oraORACLE instance started.
Total System Global Area 1770434560 bytes
Fixed Size 2222320 bytes
Variable Size 1056966416 bytes
Database Buffers 704643072 bytes
Redo Buffers 6602752 bytes
(NP) SYS@ufms777 AS SYSDBA> eit
SP2-0042: unknown command "eit" - rest of line ignored.
(NP) SYS@ufms777 AS SYSDBA> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
k801ora@jd1su277 in /exports/scripts : sqlplus sys/sys_143_npr#555@ufms777 as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Oct 15 11:08:04 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
(NP) SYS@ufms777 AS SYSDBA> -
Data Guard - insufficient privileges
Spec:
Windows 2008
Oracle 11.1.0.2
I continue to get an error when running my below RMAN script to create data guard for a very small database.
The error is stating that I don't have privilege to write to the remote server - here is the script and error included below:
RMAN> run {
2> allocate channel prmy3 type disk;
3> allocate channel prmy4 type disk;
4> allocate auxiliary channel stby1 type disk;
5> duplicate target database for standby from active database
6> spfile
7> parameter_value_convert 'test1', 'test1'
8> set 'db_unique_name'='test1_coop'
9> set control_files='D:\oradata\test1\control01.ctl'
10> set db_create_file_dest='D:\oradata\test1'
11> set audit_file_dest='C:\app\diag\rdbms\test1'
12> set diagnostic_dest='C:\app\diag\rdbms\test1'
13> set db_create_online_log_dest_1='D:\oradata\test1'
14> set db_recovery_file_dest='D:\Flash_Recovery_Area'
15> set db_recovery_file_dest_size='5G'
16> nofilenamecheck;
17> }
using target database control file instead of recovery catalog
allocated channel: prmy3
channel prmy3: SID=149 device type=DISK
allocated channel: prmy4
channel prmy4: SID=148 device type=DISK
allocated channel: stby1
channel stby1: SID=94 device type=DISK
Starting Duplicate Db at 23-FEB-12
contents of Memory Script:
backup as copy reuse
file 'C:\app\product\11.1.0\db_1\DATABASE\PWDtest1.ORA' auxiliary format
'C:\app\product\11.1.0\db_1\DATABASE\PWDtest1.ORA' file
'C:\APP\PRODUCT\11.1.0\DB_1\DATABASE\SPFILETEST1.ORA' auxiliary format
'C:\APP\PRODUCT\11.1.0\DB_1\DATABASE\SPFILETEST1.ORA' ;
sql clone "alter system set spfile= ''C:\APP\PRODUCT\11.1.0\DB_1\DATABASE\SPF
ILETEST1.ORA''";
executing Memory Script
Starting backup at 23-FEB-12
RMAN-03009: failure of backup command on prmy3 channel at 02/23/2012 18:43:29
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01031: insufficient privileges
ORA-17629: Cannot connect to the remote database server
continuing other job steps, job failed will not be re-run
released channel: prmy3
released channel: prmy4
released channel: stby1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/23/2012 18:43:29
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on prmy4 channel at 02/23/2012 18:43:29
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01031: insufficient privileges
ORA-17629: Cannot connect to the remote database serverThe Parameter should be in the INIT file
remote_login_passwordfile='EXCLUSIVE'
you mean copy the password from the primary database? Yes! And rename
I have an example - give me a second
If my Primary password file is 'orapwRECOVER2'
I would copy that to the Standby server and rename to orapwSTANDBY ( STANDBY would be your database name )
My path for this is
/u01/app/oracle/product/11.2.0.2/dbs
It will be different on Windows.
Are you doing an Active Duplicate?
mseberg
Edited by: mseberg on Feb 24, 2012 11:53 AM
Overview RMAN DUPLICATE FOR STANDBY
1. Standby database need small INIT file for Duplicate in most cases.
2. You can either create a backup on the Primary and move it, or do an Active Duplication
3. The Tnsnames.ora should hold entries for both the Primary and Standby database on BOTH servers.
4. Having a Static listener entry for the Standby ( which does not exist yet is import ) restart the listener
Tnsnames.ora Example
Tnsnames.ora
RECOVER2=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=hostname)
(PORT=1521)
(CONNECT_DATA=
(SERVICE_NAME=RECOVER2.hostname)
(UR = A)
RECLONE=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=hostname)
(PORT=1521)
(CONNECT_DATA=
(SERVICE_NAME=RECLONE.hostname)
(UR = A)
Listener.ora Example
BEFORE
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
(PROGRAM = extproc)
AFTER
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
(PROGRAM = extproc)
(SID_DESC =
(global_dbname = RECLONE.hostname)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0.2)
(sid_name = RECLONE)
)So the extra entry for the clone database is needed because otherwise RMAN has nothing to connect to.
Prevent Timeouts
Add these to both servers
To listener.ora
INBOUND_CONNECT_TIMEOUT_ = 120
To sqlnet.ora
SQLNET.INBOUND_CONNECT_TIMEOUT = 120
Then stop and start the listener.So on the Primary you could make a backup like this :
RUN {
allocate channel d1 type disk;
backup format 'c:\backups\PRIMARY\df_t%t_s%s_p%p' database;
sql 'alter system archive log current';
backup format 'c:\backups\PRIMARY\al_t%t_s%s_p%p' archivelog all;
backup current controlfile for standby format 'c:\backups\PRIMARY\sb_t%t_s%s_p%p';
release channel d1;
}And then after moving it to the Standby Server duplicate like this
run {
allocate channel C1 device type disk;
allocate auxiliary channel C2 device type disk;
duplicate target database for standby nofilenamecheck;
}Edited by: mseberg on Feb 24, 2012 12:24 PM -
RMAN-06023: no backup or copy of datafile 12 found to restore
Hi
I'm getting the above error when trying to create a duplicate database on the same server.
Steps
1) Create backup.
CONFIGURE CONTROLFILE AUTOBACKUP ON;
backup as copy
incremental level 0
spfile
database
include current controlfile;
2) Restore / Duplicate
Have database orcl2 which is on the same server as ORCL1. Performing a no catalog recovery.
I get the following error.
executing Memory Script
executing command: SET until clause
Starting restore at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=555 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 16:02:24
RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
All the datafiles are not found. Not sure how this is possible as I just did the backup.
Command for Duplication :
DUPLICATE TARGET DATABASE TO ORCL2
DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
SPFILE
PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
Additional Information
RMAN> list backup
2> ;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
13 Full 16.77M DISK 00:00:01 14-MAR-11
BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20110314T155530
Piece Name: D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACKUP\2011_03_14\O1_
MF_S_745775730_6QWWOM7G_.BKP
SPFILE Included: Modification time: 14-MAR-11
SPFILE db_unique_name: ORCL1
Control File Included: Ckp SCN: 731378 Ckp time: 14-MAR-11
RMAN>
Any help would be appreciated.
Thanks.ORADBA , thank you for your help.
Did as you suggested but still getting the same error
RMAN> DUPLICATE TARGET DATABASE TO ORCL2
2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
3> SPFILE
4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
6> until scn = 666967;
Starting Duplicate Db at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=537 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:12:47
RMAN-06136: ORACLE error from auxiliary database: ORA-01565: error in identifyin
g file 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
RMAN> exit
Recovery Manager complete.
C:\Documents and Settings\Administrator>rman target sys/mariorun@orcl1 nocatalog
Recovery Manager: Release 11.1.0.7.0 - Production on Mon Mar 14 18:13:20 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: ORCL1 (DBID=1129792691)
using target database control file instead of recovery catalog
RMAN> connect auxiliary sys/mariorun@orcl2
connected to auxiliary database: ORCL2 (not mounted)
RMAN>
RMAN> DUPLICATE TARGET DATABASE TO ORCL2
2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
3> SPFILE
4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
6> until scn = 666967;
Starting Duplicate Db at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=97 device type=DISK
contents of Memory Script:
set until scn 666967;
restore clone spfile to 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA';
sql clone "alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFIL
EORCL2.ORA''";
executing Memory Script
executing command: SET until clause
Starting restore at 14-MAR-11
using channel ORA_AUX_DISK_1
WARNING: A restore time was estimated based on the supplied UNTIL SCN
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring SPFILE
output file name=C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA
channel ORA_AUX_DISK_1: reading from backup piece D:\ORACLE\FAST_RECOVERY_AREA\O
RCL1\AUTOBACKUP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP
channel ORA_AUX_DISK_1: piece handle=D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACK
UP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP tag=TAG20110314T155530
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 14-MAR-11
sql statement: alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFI
LEORCL2.ORA''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL2'' comment=
''duplicate'' scope=spfile";
sql clone "alter system set audit_file_dest =
''c:\oracle\ora11g\admin\orcl2\adump'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''c:\oracle\ora11g\oradata\orcl2\control01.ctl'', ''c:\oracle\ora11g\oradata\or
cl2\control02.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control03.ctl'' comment=
'''' scope=spfile";
sql clone "alter system set LOG_FILE_NAME_CONVERT =
''\orcl1'', ''\orcl2'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount ;
executing Memory Script
sql statement: alter system set db_name = ''ORCL2'' comment= ''duplicate'' sco
pe=spfile
sql statement: alter system set audit_file_dest = ''c:\oracle\ora11g\admin\orc
l2\adump'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''c:\oracle\ora11g\oradata\orc
l2\control01.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control02.ctl'', ''c:\oracl
e\ora11g\oradata\orcl2\control03.ctl'' comment= '''' scope=spfile
sql statement: alter system set LOG_FILE_NAME_CONVERT = ''\orcl1'', ''\orcl2''
comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 267825152 bytes
Fixed Size 1346712 bytes
Variable Size 100664168 bytes
Database Buffers 163577856 bytes
Redo Buffers 2236416 bytes
contents of Memory Script:
set until scn 666967;
set newname for datafile 1 to
"D:\ORACLE\ORADATA\ORCL2\SYSTEM01.DBF";
set newname for datafile 2 to
"D:\ORACLE\ORADATA\ORCL2\SYSAUX01.DBF";
set newname for datafile 3 to
"D:\ORACLE\ORADATA\ORCL2\UNDOTBS01.DBF";
set newname for datafile 4 to
"D:\ORACLE\ORADATA\ORCL2\IM_DATA_01.DAT";
set newname for datafile 5 to
"D:\ORACLE\ORADATA\ORCL2\IM_IDX_01.DAT";
set newname for datafile 6 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_01.DAT";
set newname for datafile 7 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_02.DAT";
set newname for datafile 8 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_01.DAT";
set newname for datafile 9 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_02.DAT";
set newname for datafile 10 to
"D:\ORACLE\ORADATA\ORCL2\IM_PROC_LOG_01.DAT";
set newname for datafile 11 to
"D:\ORACLE\ORADATA\ORCL2\IM_PROC_NOLOG_01.DAT";
set newname for datafile 12 to
"D:\ORACLE\ORADATA\ORCL2\USERS01.DBF";
restore
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=555 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:13:59
RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
Any suggestions are appreciated. -
Help needed for hash_area_size setting for Datawarehouse environment
We have an Oracle 10g Datawarehousing environment , running on 3 - node RAC
with 16 GB RAM & 4 CPUs each and roughly we have 200 users and night jobs running on this D/W .
We find that query performance of all ETL Processes & joins are quite slow .
How much should we increase the value of hash_area_size parameter for this Datawarehouse environment ? This is a Production database, with Oracle Database 10g Enterprise Edition Release 10.1.0.5.0.
We use OWB 10g Tool for this D/W and we need to change the hash_area_size to increase the performance of the ETL Processes.
This is the Oracle init parameter settings used, as shown below : -
Kindly suggest ,
Thanks & best regards ,
===========================================================
ORBIT
__db_cache_size 1073741824
__java_pool_size 67108864
__large_pool_size 318767104
__shared_pool_size 1744830464
optimizercost_based_transformation OFF
active_instance_count
aq_tm_processes 1
archive_lag_target 0
asm_diskgroups
asm_diskstring
asm_power_limit 1
audit_file_dest /dboracle/orabase/product/10.1.0/rdbms/audit
audit_sys_operations FALSE
audit_trail NONE
background_core_dump partial
background_dump_dest /dborafiles/orbit/ORBIT01/admin/bdump
backup_tape_io_slaves TRUE
bitmap_merge_area_size 1048576
blank_trimming FALSE
buffer_pool_keep
buffer_pool_recycle
circuits
cluster_database TRUE
cluster_database_instances 3
cluster_interconnects
commit_point_strength 1
compatible 10.1.0
control_file_record_keep_time 90
control_files #NAME?
core_dump_dest /dborafiles/orbit/ORBIT01/admin/cdump
cpu_count 4
create_bitmap_area_size 8388608
create_stored_outlines
cursor_sharing EXACT
cursor_space_for_time FALSE
db_16k_cache_size 0
db_2k_cache_size 0
db_32k_cache_size 0
db_4k_cache_size 0
db_8k_cache_size 0
db_block_buffers 0
db_block_checking FALSE
db_block_checksum TRUE
db_block_size 8192
db_cache_advice ON
db_cache_size 1073741824
db_create_file_dest #NAME?
db_create_online_log_dest_1 #NAME?
db_create_online_log_dest_2 #NAME?
db_create_online_log_dest_3
db_create_online_log_dest_4
db_create_online_log_dest_5
db_domain
db_file_multiblock_read_count 64
db_file_name_convert
db_files 999
db_flashback_retention_target 1440
db_keep_cache_size 0
db_name ORBIT
db_recovery_file_dest #NAME?
db_recovery_file_dest_size 2.62144E+11
db_recycle_cache_size 0
db_unique_name ORBIT
db_writer_processes 1
dbwr_io_slaves 0
ddl_wait_for_locks FALSE
dg_broker_config_file1 /dboracle/orabase/product/10.1.0/dbs/dr1ORBIT.dat
dg_broker_config_file2 /dboracle/orabase/product/10.1.0/dbs/dr2ORBIT.dat
dg_broker_start FALSE
disk_asynch_io TRUE
dispatchers
distributed_lock_timeout 60
dml_locks 9700
drs_start FALSE
enqueue_resources 10719
event
fal_client
fal_server
fast_start_io_target 0
fast_start_mttr_target 0
fast_start_parallel_rollback LOW
file_mapping FALSE
fileio_network_adapters
filesystemio_options asynch
fixed_date
gc_files_to_locks
gcs_server_processes 2
global_context_pool_size
global_names FALSE
hash_area_size 131072
hi_shared_memory_address 0
hpux_sched_noage 0
hs_autoregister TRUE
ifile
instance_groups
instance_name ORBIT01
instance_number 1
instance_type RDBMS
java_max_sessionspace_size 0
java_pool_size 67108864
java_soft_sessionspace_limit 0
job_queue_processes 10
large_pool_size 318767104
ldap_directory_access NONE
license_max_sessions 0
license_max_users 0
license_sessions_warning 0
local_listener
lock_name_space
lock_sga FALSE
log_archive_config
log_archive_dest
log_archive_dest_1 LOCATION=+ORBT_A06635_DATA1_ASM/ORBIT/ARCHIVELOG/
log_archive_dest_10
log_archive_dest_2
log_archive_dest_3
log_archive_dest_4
log_archive_dest_5
log_archive_dest_6
log_archive_dest_7
log_archive_dest_8
log_archive_dest_9
log_archive_dest_state_1 enable
log_archive_dest_state_10 enable
log_archive_dest_state_2 enable
log_archive_dest_state_3 enable
log_archive_dest_state_4 enable
log_archive_dest_state_5 enable
log_archive_dest_state_6 enable
log_archive_dest_state_7 enable
log_archive_dest_state_8 enable
log_archive_dest_state_9 enable
log_archive_duplex_dest
log_archive_format %t_%s_%r.arc
log_archive_local_first TRUE
log_archive_max_processes 2
log_archive_min_succeed_dest 1
log_archive_start FALSE
log_archive_trace 0
log_buffer 1167360
log_checkpoint_interval 0
log_checkpoint_timeout 1800
log_checkpoints_to_alert FALSE
log_file_name_convert
logmnr_max_persistent_sessions 1
max_commit_propagation_delay 700
max_dispatchers
max_dump_file_size UNLIMITED
max_enabled_roles 150
max_shared_servers
nls_calendar
nls_comp
nls_currency #
nls_date_format DD-MON-RRRR
nls_date_language ENGLISH
nls_dual_currency ?
nls_iso_currency UNITED KINGDOM
nls_language ENGLISH
nls_length_semantics BYTE
nls_nchar_conv_excp FALSE
nls_numeric_characters
nls_sort
nls_territory UNITED KINGDOM
nls_time_format HH24.MI.SSXFF
nls_time_tz_format HH24.MI.SSXFF TZR
nls_timestamp_format DD-MON-RR HH24.MI.SSXFF
nls_timestamp_tz_format DD-MON-RR HH24.MI.SSXFF TZR
O7_DICTIONARY_ACCESSIBILITY FALSE
object_cache_max_size_percent 10
object_cache_optimal_size 102400
olap_page_pool_size 0
open_cursors 1024
open_links 4
open_links_per_instance 4
optimizer_dynamic_sampling 2
optimizer_features_enable 10.1.0.5
optimizer_index_caching 0
optimizer_index_cost_adj 100
optimizer_mode ALL_ROWS
os_authent_prefix ops$
os_roles FALSE
parallel_adaptive_multi_user TRUE
parallel_automatic_tuning TRUE
parallel_execution_message_size 4096
parallel_instance_group
parallel_max_servers 80
parallel_min_percent 0
parallel_min_servers 0
parallel_server TRUE
parallel_server_instances 3
parallel_threads_per_cpu 2
pga_aggregate_target 8589934592
plsql_code_type INTERPRETED
plsql_compiler_flags INTERPRETED
plsql_debug FALSE
plsql_native_library_dir
plsql_native_library_subdir_count 0
plsql_optimize_level 2
plsql_v2_compatibility FALSE
plsql_warnings DISABLE:ALL
pre_page_sga FALSE
processes 600
query_rewrite_enabled TRUE
query_rewrite_integrity enforced
rdbms_server_dn
read_only_open_delayed FALSE
recovery_parallelism 0
remote_archive_enable TRUE
remote_dependencies_mode TIMESTAMP
remote_listener
remote_login_passwordfile EXCLUSIVE
remote_os_authent FALSE
remote_os_roles FALSE
replication_dependency_tracking TRUE
resource_limit FALSE
resource_manager_plan
resumable_timeout 0
rollback_segments
serial_reuse disable
service_names ORBIT
session_cached_cursors 0
session_max_open_files 10
sessions 2205
sga_max_size 3221225472
sga_target 3221225472
shadow_core_dump partial
shared_memory_address 0
shared_pool_reserved_size 102760448
shared_pool_size 318767104
shared_server_sessions
shared_servers 0
skip_unusable_indexes TRUE
smtp_out_server
sort_area_retained_size 0
sort_area_size 65536
sp_name ORBIT
spfile #NAME?
sql_trace FALSE
sql_version NATIVE
sql92_security FALSE
sqltune_category DEFAULT
standby_archive_dest ?/dbs/arch
standby_file_management MANUAL
star_transformation_enabled TRUE
statistics_level TYPICAL
streams_pool_size 0
tape_asynch_io TRUE
thread 1
timed_os_statistics 0
timed_statistics TRUE
trace_enabled TRUE
tracefile_identifier
transactions 2425
transactions_per_rollback_segment 5
undo_management AUTO
undo_retention 7200
undo_tablespace UNDOTBS1
use_indirect_data_buffers FALSE
user_dump_dest /dborafiles/orbit/ORBIT01/admin/udump
utl_file_dir /orbit_serial/oracle/utl_out
workarea_size_policy AUTOThe parameters are already unset in the environment, but do show up in v$parameter, much like shared_pool_size is visible in v$parameter despite only sga_target being set.
SQL> show parameter sort
NAME TYPE VALUE
sortelimination_cost_ratio integer 5
nls_sort string binary
sort_area_retained_size integer 0
sort_area_size integer 65536
SQL> show parameter hash
NAME TYPE VALUE
hash_area_size integer 131072
SQL> exit
Only set hash_area_size and sort_area_size should only be set when not using automatic undo, which is not supported in EBS databases.
Database Initialization Parameters for Oracle Applications 11i
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=216205.1 -
ORA-12709: error while loading create database character set after upgrade
Dear All
i m getting ORA-12709: error while loading create database character set, After upgraded the database from 10.2.0.3 to 11.2.0.3 in ebusiness suit env.
current application version 12.0.6
please help me to resolve it.
SQL> startup;
ORACLE instance started.
Total System Global Area 1.2831E+10 bytes
Fixed Size 2171296 bytes
Variable Size 2650807904 bytes
Database Buffers 1.0133E+10 bytes
Redo Buffers 44785664 bytes
ORA-12709: error while loading create database character set
-bash-3.00$ echo $ORA_NLS10
/u01/oracle/PROD/db/teche_st/11.2.0/nls/data/9idata
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=/u01/oracle/PROD/db/tech_st/11.2.0
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/site_perl/5.10.0
export ORA_NLS10=/u01/oracle/PROD/db/teche_st/11.2.0/nls/data/9idata
export ORACLE_SID=PROD
-bash-3.00$ pwd
/u01/oracle/PROD/db/tech_st/11.2.0/nls/data/9idata
-bash-3.00$ ls -lh |more
total 56912
-rw-r--r-- 1 oracle oinstall 951 Jan 15 16:05 lx00001.nlb
-rw-r--r-- 1 oracle oinstall 957 Jan 15 16:05 lx00002.nlb
-rw-r--r-- 1 oracle oinstall 959 Jan 15 16:05 lx00003.nlb
-rw-r--r-- 1 oracle oinstall 984 Jan 15 16:05 lx00004.nlb
-rw-r--r-- 1 oracle oinstall 968 Jan 15 16:05 lx00005.nlb
-rw-r--r-- 1 oracle oinstall 962 Jan 15 16:05 lx00006.nlb
-rw-r--r-- 1 oracle oinstall 960 Jan 15 16:05 lx00007.nlb
-rw-r--r-- 1 oracle oinstall 950 Jan 15 16:05 lx00008.nlb
-rw-r--r-- 1 oracle oinstall 940 Jan 15 16:05 lx00009.nlb
-rw-r--r-- 1 oracle oinstall 939 Jan 15 16:05 lx0000a.nlb
-rw-r--r-- 1 oracle oinstall 1006 Jan 15 16:05 lx0000b.nlb
-rw-r--r-- 1 oracle oinstall 1008 Jan 15 16:05 lx0000c.nlb
-rw-r--r-- 1 oracle oinstall 998 Jan 15 16:05 lx0000d.nlb
-rw-r--r-- 1 oracle oinstall 1005 Jan 15 16:05 lx0000e.nlb
-rw-r--r-- 1 oracle oinstall 926 Jan 15 16:05 lx0000f.nlb
-rw-r--r-- 1 oracle oinstall 1.0K Jan 15 16:05 lx00010.nlb
-rw-r--r-- 1 oracle oinstall 958 Jan 15 16:05 lx00011.nlb
-rw-r--r-- 1 oracle oinstall 956 Jan 15 16:05 lx00012.nlb
-rw-r--r-- 1 oracle oinstall 1005 Jan 15 16:05 lx00013.nlb
-rw-r--r-- 1 oracle oinstall 970 Jan 15 16:05 lx00014.nlb
-rw-r--r-- 1 oracle oinstall 950 Jan 15 16:05 lx00015.nlb
-rw-r--r-- 1 oracle oinstall 1.0K Jan 15 16:05 lx00016.nlb
-rw-r--r-- 1 oracle oinstall 957 Jan 15 16:05 lx00017.nlb
-rw-r--r-- 1 oracle oinstall 932 Jan 15 16:05 lx00018.nlb
-rw-r--r-- 1 oracle oinstall 932 Jan 15 16:05 lx00019.nlb
-rw-r--r-- 1 oracle oinstall 951 Jan 15 16:05 lx0001a.nlb
-rw-r--r-- 1 oracle oinstall 944 Jan 15 16:05 lx0001b.nlb
-rw-r--r-- 1 oracle oinstall 953 Jan 15 16:05 lx0001c.nlb
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options.
ORACLE_HOME = /u01/oracle/PROD/db/tech_st/11.2.0
System name: SunOS
Node name: proddb3.zakathouse.org
Release: 5.10
Version: Generic_147440-19
Machine: sun4u
Using parameter settings in server-side spfile /u01/oracle/PROD/db/tech_st/11.2.0/dbs/spfilePROD.ora
System parameters with non-default values:
processes = 200
sessions = 400
timed_statistics = TRUE
event = ""
shared_pool_size = 416M
shared_pool_reserved_size= 40M
nls_language = "american"
nls_territory = "america"
nls_sort = "binary"
nls_date_format = "DD-MON-RR"
nls_numeric_characters = ".,"
nls_comp = "binary"
nls_length_semantics = "BYTE"
memory_target = 11G
memory_max_target = 12G
control_files = "/u01/oracle/PROD/db/apps_st/data/cntrl01.dbf"
control_files = "/u01/oracle/PROD/db/tech_st/10.2.0/dbs/cntrl02.dbf"
control_files = "/u01/oracle/PROD/db/apps_st/data/cntrl03.dbf"
db_block_checksum = "TRUE"
db_block_size = 8192
compatible = "11.2.0.0.0"
log_archive_dest_1 = "LOCATION=/u01/oracle/PROD/db/apps_st/data/archive"
log_archive_format = "%t_%s_%r.dbf"
log_buffer = 14278656
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
db_files = 512
db_file_multiblock_read_count= 8
db_recovery_file_dest = "/u01/oracle/fast_recovery_area"
db_recovery_file_dest_size= 14726M
log_checkpoints_to_alert = TRUE
dml_locks = 10000
undo_management = "AUTO"
undo_tablespace = "APPS_UNDOTS1"
db_block_checking = "FALSE"
session_cached_cursors = 500
utl_file_dir = "/usr/tmp"
utl_file_dir = "/usr/tmp"
utl_file_dir = "/u01/oracle/PROD/db/tech_st/10.2.0/appsutil/outbound"
utl_file_dir = "/u01/oracle/PROD/db/tech_st/10.2.0/appsutil/outbound/PROD_proddb3"
utl_file_dir = "/usr/tmp"
plsql_code_type = "INTERPRETED"
plsql_optimize_level = 2
job_queue_processes = 2
cursor_sharing = "EXACT"
parallel_min_servers = 0
parallel_max_servers = 8
core_dump_dest = "/u01/oracle/PROD/db/tech_st/10.2.0/admin/PROD_proddb3/cdump"
audit_file_dest = "/u01/oracle/admin/PROD/adump"
db_name = "PROD"
open_cursors = 600
pga_aggregate_target = 1G
workarea_size_policy = "AUTO"
optimizer_secure_view_merging= FALSE
aq_tm_processes = 1
olap_page_pool_size = 4M
diagnostic_dest = "/u01/oracle"
max_dump_file_size = "20480"
Tue Jan 15 16:16:02 2013
PMON started with pid=2, OS id=18608
Tue Jan 15 16:16:02 2013
PSP0 started with pid=3, OS id=18610
Tue Jan 15 16:16:03 2013
VKTM started with pid=4, OS id=18612 at elevated priority
VKTM running at (10)millisec precision with DBRM quantum (100)ms
Tue Jan 15 16:16:03 2013
GEN0 started with pid=5, OS id=18616
Tue Jan 15 16:16:03 2013
DIAG started with pid=6, OS id=18618
Tue Jan 15 16:16:03 2013
DBRM started with pid=7, OS id=18620
Tue Jan 15 16:16:03 2013
DIA0 started with pid=8, OS id=18622
Tue Jan 15 16:16:03 2013
MMAN started with pid=9, OS id=18624
Tue Jan 15 16:16:03 2013
DBW0 started with pid=10, OS id=18626
Tue Jan 15 16:16:03 2013
LGWR started with pid=11, OS id=18628
Tue Jan 15 16:16:03 2013
CKPT started with pid=12, OS id=18630
Tue Jan 15 16:16:03 2013
SMON started with pid=13, OS id=18632
Tue Jan 15 16:16:04 2013
RECO started with pid=14, OS id=18634
Tue Jan 15 16:16:04 2013
MMON started with pid=15, OS id=18636
Tue Jan 15 16:16:04 2013
MMNL started with pid=16, OS id=18638
DISM started, OS id=18640
ORACLE_BASE from environment = /u01/oracle
Tue Jan 15 16:16:08 2013
ALTER DATABASE MOUNT
ORA-12709 signalled during: ALTER DATABASE MOUNT...ORA-12709 signalled during: ALTER DATABASE MOUNT...Do you have any trace files generated at the time you get this error?
Please see these docs.
ORA-12709: WHILE STARTING THE DATABASE [ID 1076156.6]
Upgrading from 9i to 10gR2 Fails With ORA-12709 : Error While Loading Create Database Character Set [ID 732861.1]
Ora-12709 While Trying To Start The Database [ID 311035.1]
ORA-12709 when Mounting the Database [ID 160478.1]
How to Move From One Database Character Set to Another at the Database Level [ID 1059300.6]
Thanks,
Hussein -
Files in AUDIT_FILE_DEST
Hello;
I am looking to turn on AUDIT_SYS_OPERATIONS and have found somthing that puzzles me. My current Parameter Values are:
audit_file_dest = /u00/app/oracle/admin/MYSID/adump
audit_sys_operations = FALSE
audit_syslog_level = NULL
audit_trail = DB
This would lead my to think that no files(current) should be found in /u00/app/oracle/admin/MYSID/adump. However that is not the case. I am finding a bunch of file with current time stamps.
-rw-rw---- 1 oracle oinstall 595 Jul 28 20:25 ora_7977.aud
-rw-rw---- 1 oracle oinstall 595 Jul 28 20:25 ora_7974.aud
-rw-r----- 1 oracle oinstall 1189 Jul 29 00:02 ora_21315.aud
-rw-rw---- 1 oracle oinstall 597 Jul 29 00:02 ora_21312.aud
-rw-rw---- 1 oracle oinstall 597 Jul 29 00:02 ora_21329.aud
-rw-rw---- 1 oracle oinstall 597 Jul 29 00:02 ora_21327.aud
-rw-rw---- 1 oracle oinstall 1189 Jul 29 00:02 ora_21325.aud
-rw-rw---- 1 oracle oinstall 1189 Jul 29 00:02 ora_21323.aud
-rw-rw---- 1 oracle oinstall 597 Jul 29 00:02 ora_21321.aud
-rw-rw---- 1 oracle oinstall 597 Jul 29 00:02 ora_21319.aud
-rw-rw---- 1 oracle oinstall 597 Jul 29 00:02 ora_21331.aud
The number in the file name relates to a OS PID. Inside the ora_21331.aud file:
Audit file /u00/app/oracle/admin/MYSID/adump/ora_21331.aud
Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
ORACLE_HOME = /u00/app/oracle/product/11.1.0/db_1
System name: Linux
Node name: mydbserver.mydoman.com
Release: 2.6.18-238.19.1.el5
Version: #1 SMP Sun Jul 10 08:43:41 EDT 2011
Machine: x86_64
Instance name: MYSID
Redo thread mounted by this instance: 1
Oracle process number: 38
Unix process pid: 21331, image: [email protected]
Fri Jul 29 00:02:07 2011
ACTION : 'CONNECT'
DATABASE USER: 'sys'
PRIVILEGE : SYSDBA
CLIENT USER: oracle
CLIENT TERMINAL:
STATUS: 0
I understand this is a SYS level connection being made by the oracel user on my database server but why is it being written and why one file per OS PID?
Any help would be great!Hi Srini;
Thanks for the reply. I am actually doing my work from the document you pointed out. So when I set AUDIT_SYS_OPERATIONS = TRUE i will begin to see the actions taken not just the connections? Is it normal that every OS PID creates a new file? -
Hi,ALL
After I set patch on oracle 10.2.0.1.0,update to 10.2.0.4.0,it does not wrk at all. Error as below
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
When startup upgrade execute till to Redo Buffers ,it stopped.
I want to konow why startup upgrade stop ?
How can connect to orcale instance?
SQL> conn sys/system as sysdba
SQL> startup upgrade
Total System Global Area 167772160 bytes
Fixed Size 1295608 bytes
Variable Size 96471816 bytes
Database Buffers 62914560 bytes
Redo Buffers 7090176 bytesThanks!
Fri Jun 11 14:22:23 2010
ORACLE V10.2.0.4.0 - Production vsnsta=0
vsnsql=14 vsnxtr=3
Windows XP Version V5.1 Service Pack 2
CPU : 2 - type 586
Process Affinity : 0x00000000
Memory (Avail/Total): Ph:627M/1022M, Ph+PgF:1014M/1691M, VA:1925M/2047M
Fri Jun 11 14:22:23 2010
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.4.0.
System parameters with non-default values:
processes = 150
__shared_pool_size = 71303168
__large_pool_size = 4194304
__java_pool_size = 20971520
__streams_pool_size = 0
spfile = D:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILEORACLE10.ORA
sga_target = 167772160
control_files = D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLE10\CONTROL01.CTL, D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLE10\CONTROL02.CTL, D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLE10\CONTROL03.CTL
db_block_size = 8192
__db_cache_size = 62914560
compatible = 10.2.0.1.0
db_file_multiblock_read_count= 16
db_recovery_file_dest = D:\oracle\product\10.2.0/flash_recovery_area
db_recovery_file_dest_size= 2147483648
undo_management = AUTO
undo_tablespace = UNDOTBS2
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=oracle10XDB)
job_queue_processes = 10
audit_file_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORACLE10\ADUMP
background_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORACLE10\BDUMP
user_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORACLE10\UDUMP
core_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORACLE10\CDUMP
db_name = oracle10
open_cursors = 300
blank_trimming = TRUE
pga_aggregate_target = 16777216
PMON started with pid=2, OS id=2616
PSP0 started with pid=3, OS id=2884
MMAN started with pid=4, OS id=3040
DBW0 started with pid=5, OS id=760
LGWR started with pid=6, OS id=3900
CKPT started with pid=7, OS id=4880
SMON started with pid=8, OS id=3072
RECO started with pid=9, OS id=3144
CJQ0 started with pid=10, OS id=1664
MMON started with pid=11, OS id=2156
Fri Jun 11 14:22:25 2010
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
MMNL started with pid=12, OS id=3224
Fri Jun 11 14:22:25 2010
starting up 1 shared server(s) ...
Fri Jun 11 14:22:25 2010
alter database mount exclusive
Fri Jun 11 14:22:30 2010
Setting recovery target incarnation to 2
Fri Jun 11 14:22:31 2010
Successful mount of redo thread 1, with mount id 2453315617
Fri Jun 11 14:22:31 2010
Database mounted in Exclusive Mode
Completed: alter database mount exclusive
Fri Jun 11 14:22:31 2010
alter database open
Fri Jun 11 14:22:31 2010
Beginning crash recovery of 1 threads
parallel recovery started with 2 processes
Fri Jun 11 14:22:32 2010
Started redo scan
Fri Jun 11 14:22:33 2010
Completed redo scan
1 redo blocks read, 0 data blocks need recovery
Fri Jun 11 14:22:33 2010
Started redo application at
Thread 1: logseq 884, block 2, scn 12004491273
Fri Jun 11 14:22:33 2010
Recovery of Online Redo Log: Thread 1 Group 1 Seq 884 Reading mem 0
Mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLE10\REDO01.LOG
Fri Jun 11 14:22:33 2010
Completed redo application
Fri Jun 11 14:22:33 2010
Completed crash recovery at
Thread 1: logseq 884, block 3, scn 12004511275
0 data blocks read, 0 data blocks written, 1 redo blocks read
Fri Jun 11 14:22:35 2010
Thread 1 advanced to log sequence 885 (thread open)
Thread 1 opened at log sequence 885
Current log# 2 seq# 885 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLE10\REDO02.LOG
Successful open of redo thread 1
Fri Jun 11 14:22:35 2010
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Fri Jun 11 14:22:35 2010
SMON: enabling cache recovery
Fri Jun 11 14:22:37 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\udump\oracle10_ora_5440.trc:
ORA-00704: ????????
ORA-39700: ??? UPGRADE ???????
Fri Jun 11 14:22:37 2010
Error 704 happened during db open, shutting down database
USER: terminating instance due to error 704
Fri Jun 11 14:22:37 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\bdump\oracle10_lgwr_3900.trc:
ORA-00704: bootstrap process failure
Fri Jun 11 14:22:37 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\bdump\oracle10_dbw0_760.trc:
ORA-00704: bootstrap process failure
Fri Jun 11 14:22:37 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\bdump\oracle10_ckpt_4880.trc:
ORA-00704: bootstrap process failure
Fri Jun 11 14:22:37 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\bdump\oracle10_pmon_2616.trc:
ORA-00704: bootstrap process failure
Fri Jun 11 14:22:37 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\bdump\oracle10_reco_3144.trc:
ORA-00704: bootstrap process failure
Fri Jun 11 14:22:37 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\bdump\oracle10_smon_3072.trc:
ORA-00704: bootstrap process failure
Fri Jun 11 14:22:40 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\bdump\oracle10_psp0_2884.trc:
ORA-00704: bootstrap process failure
Fri Jun 11 14:22:41 2010
Errors in file d:\oracle\product\10.2.0\admin\oracle10\bdump\oracle10_mman_3040.trc:
ORA-00704: bootstrap process failure
Instance terminated by USER, pid = 5440
ORA-1092 signalled during: alter database open...
Fri Jun 11 14:22:43 2010
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 2
Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
Autotune of undo retention is turned on.
IMODE=BR
ILAT =18
LICENSE_MAX_USERS = 0
SYS auditing is disabled
ksdpec: called for event 13740 prior to event group initialization
Starting up ORACLE RDBMS Version: 10.2.0.4.0.
System parameters with non-default values:
processes = 150
__shared_pool_size = 71303168
__large_pool_size = 4194304
__java_pool_size = 20971520
__streams_pool_size = 0
spfile = D:\ORACLE\PRODUCT\10.2.0\DB_1\DBS\SPFILEORACLE10.ORA
sga_target = 167772160
control_files = D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLE10\CONTROL01.CTL, D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLE10\CONTROL02.CTL, D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORACLE10\CONTROL03.CTL
db_block_size = 8192
__db_cache_size = 62914560
compatible = 10.2.0.1.0
db_file_multiblock_read_count= 16
db_recovery_file_dest = D:\oracle\product\10.2.0/flash_recovery_area
db_recovery_file_dest_size= 2147483648
undo_management = AUTO
undo_tablespace = UNDOTBS2
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=oracle10XDB)
job_queue_processes = 10
audit_file_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORACLE10\ADUMP
background_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORACLE10\BDUMP
user_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORACLE10\UDUMP
core_dump_dest = D:\ORACLE\PRODUCT\10.2.0\ADMIN\ORACLE10\CDUMP
db_name = oracle10
open_cursors = 300
blank_trimming = TRUE
pga_aggregate_target = 16777216
PMON started with pid=2, OS id=5088
PSP0 started with pid=3, OS id=5092
MMAN started with pid=4, OS id=4748
DBW0 started with pid=5, OS id=5468
LGWR started with pid=6, OS id=1240
CKPT started with pid=7, OS id=5024
SMON started with pid=8, OS id=2464
RECO started with pid=9, OS id=5676
CJQ0 started with pid=10, OS id=5100
MMON started with pid=11, OS id=4832
Fri Jun 11 14:22:44 2010
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
MMNL started with pid=12, OS id=5104
Fri Jun 11 14:22:44 2010
starting up 1 shared server(s) ...
Fri Jun 11 14:22:44 2010
ALTER DATABASE MOUNT -
If sga_target set explicitly, result cache become disabled
hi all,
I am using 11g R2 and automatic memory management. I realized something. if I explicitly declare sga_target parameter in parameter file, result cache become disabled.
as you know if you use automatic memory management, sga_target is set to 0 automatically already but if I write that to the parameter file than whatever I set for result_cache_max_size parameter, instance always opens with result_cache_max_size=0 (I saw that in alert log).
is there any reason for that ?
here is my pfile contents.
orcl.__db_cache_size=922746880
orcl.__java_pool_size=33554432
orcl.__large_pool_size=16777216
orcl.__oracle_base='C:\app\paranoyakX'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=838860800
orcl.__sga_target=1258291200
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=251658240
orcl.__streams_pool_size=16777216
*.audit_file_dest='C:\app\paranoyakX\admin\orcl\adump'
*.audit_trail='DB_EXTENDED'
*.compatible='11.2.0.0.0'
*.control_files='C:\app\paranoyakX\oradata\orcl\control01.ctl','C:\app\paranoyakX\flash_recovery_area\orcl\control02.ctl'
*.db_16k_cache_size=0
*.db_4k_cache_size=0
*.db_block_size=8192
*.db_domain='oracle.com'
*.db_flashback_retention_target=1000
*.db_keep_cache_size=0
*.db_name='orcl'
*.db_recovery_file_dest='C:\app\paranoyakX\flash_recovery_area'
*.db_recovery_file_dest_size=10737418240
*.diagnostic_dest='C:\app\paranoyakX'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.memory_max_target=34359738368
*.memory_target=2097152000
*.nls_language='TURKISH'
*.nls_territory='TURKEY'
*.open_cursors=300
*.pga_aggregate_target=528482304
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.resource_limit=TRUE
*.undo_tablespace='UNDOTBS1'
*.result_cache_max_size=5000000
*.sga_target=0I would suggest that you pay more attention to documentation and don't jump to conclusion in a haste. Just because the parameter result_cache_max_size is set to 0, it does not mean that the result cache in itself is disabled. This is the maximum size of the result cache. See below,
[oracle@edbar2p0-orcl ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 14 08:35:00 2011
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> sho parameter result
NAME TYPE VALUE
client_result_cache_lag big integer 3000
client_result_cache_size big integer 0
result_cache_max_result integer 5
result_cache_max_size big integer 1184K
result_cache_mode string MANUAL
result_cache_remote_expiration integer 0
SQL> show parameter sga
NAME TYPE VALUE
lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 460M
sga_target big integer 0
SQL> set autot trace exp
selSQL> ect /*+ result_cache */ * from scott.dept;
Execution Plan
Plan hash value: 3383998547
| Id | Operation | Name | Rows | Bytes | Cost (
%CPU)| Time |
| 0 | SELECT STATEMENT | | 4 | 80 | 3
(0)| 00:00:01 |
| 1 | RESULT CACHE | 1c13q1afp56bq0jpnmysvywx7g | | |
| |
| 2 | TABLE ACCESS FULL| DEPT | 4 | 80 | 3
(0)| 00:00:01 |
Result Cache Information (identified by operation id):
1 - column-count=3; dependencies=(SCOTT.DEPT); name="select /*+ result_cache
*/ * from scott.dept"
SQL> exit
Disconnected from 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 optionsThe value for the result_cache parameter is automatically set by oracle depending on either you have Memory_target/SGA_TARGET or Shared_Pool parameter set. Please see oracle documentation for more information.
HTH
Aman.... -
Hi All,
I am trying to set the database auditing to OS and totally confused by now.....
Following are the steps i followed -
i have set all the audit parameters -
SQL> show parameter audit
NAME TYPE VALUE
audit_file_dest string /home/oracle/oracle/product/10
.2.0.4.0/admin/unicode/audit_t
est
audit_sys_operations boolean TRUE
audit_syslog_level string LOCAL1.WARNING
audit_trail string OS
I have set the audit_file_dest for auditing, Now if i coonect as sysdba and create a user, its not getting any audit file for that -
SQL> create user tt1 identified by tt1;
User created.
bash-3.00$ pwd
/home/oracle/oracle/product/10.2.0.4.0/admin/unicode/audit_test
bash-3.00$ ls -lrt
total 0
bash-3.00$
Did i miss any parameter in setting up the sys operations' audit?
Thanks
AbhinavI have the same problem on Windows XP Pro with Oracle 10.2.0.4, AUDIT_SYS_OPERATIONS is set to TRUE and AUDIT_FILE_DEST directory is empty but I have audit entries in Windows Event Log. Maybe you have audit entries in Linux syslog ?
Maybe you are looking for
-
How to find out web-inf path from the physical drive?
How to find out web-inf path from the physical drive? I have some user profiles in web-inf directory.SO I want to know the path from root directory like d:/program files/allaire/jrun/appname/web-inf/profiles/username like that. Presently I am able to
-
How to avoid seeing data for a particular member in the row level
Hello,<BR>I am using Essbase. In that i am having members like taks n/a, demand n/a. Purpose of these members are, if i load data for demand, task wont have data so i am mapping to task n/a.And same for the task loading.I am using alphablox for repor
-
How to: Slide in violin software instrument?
Hi, I'm wondering how you guys make the Violin (software instrument) in slide mode? Maybe I'm using the wrong term, but what I'm trying to question is how to slide up from C1 to C2? I'm trying to edit it via Hyper Draw > Pitch Bend, but not works! Pl
-
What does this key combo mean, what's it doing?
mark an in and mark an out - anywhere in the timeline of an open sequence, type the following keyboard combo: Control, O or Control, I Whats up with the red line that now extends between marks in the timeline and canvas?? Is it setting me up to creat
-
How to update apps with iOS4?
How do I update apps in iTunes 9.2 with an iOS4 iPhone?