Using RMAN for creating a Dataguard Standby db.
Hello,
I have two 11.2.0.1.0 oracle instances running on two cloned Red Hat Enterprise Linux (rhel98 and rhel99). Linux version:
Linux rhel99 2.6.32-100.34.1.el6uek.x86_64 #1 SMP Wed May 25 17:46:45 EDT 2011 x86_64 x86_64 x86_64 GNU/LinuxI am trying to perform a "duplicate target database for standby" as part of the list of steps to get a Physical Standby located at the rhel99 server with DB_UNIQUE_NAME ORCL99. But I am missing something because it keeps failing with this error:
RMAN-05556: not all datafiles have backups that can be recovered to SCN 2818790
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 5 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restoreI double checked the directory structure on primary (rhel98) and standby (rhel99), and it's the same. As control file is restored during the duplicate process I cannot perform the catalog start with, so the backups were placed on the same locations at rhel98 and 99.
According to that error message it is not finding any of the datafile backups.
[oracle@rhel98 ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 29 01:36:06 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL98 (DBID=2386038834)
RMAN> connect auxiliary sys/*****@ORCL99
connected to auxiliary database: ORCL98 (not mounted)
RMAN> run
2> {
3> set until sequence=6 thread=1;
4> duplicate target database for standby
5> dorecover;
6> }
executing command: SET until clause
Starting Duplicate Db at 29-MAY-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=20 device type=DISK
contents of Memory Script:
set until scn 2818790;
restore clone standby controlfile;
executing Memory Script
executing command: SET until clause
Starting restore at 29-MAY-13
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece /oracle/app/oracle/rman_bkp/orcl/0aoa2pd2_1_1
channel ORA_AUX_DISK_1: piece handle=/oracle/app/oracle/rman_bkp/orcl/0aoa2pd2_1_1 tag=TAG20130520T022122
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
output file name=/oracle/app/oracle/oradata/standby/control01.ctl
Finished restore at 29-MAY-13
contents of Memory Script:
sql clone 'alter database mount standby database';
executing Memory Script
sql statement: alter database mount standby database
contents of Memory Script:
set until scn 2818790;
set newname for tempfile 1 to
"/oracle/app/oracle/oradata/standby/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/oracle/app/oracle/oradata/standby/system01.dbf";
set newname for datafile 2 to
"/oracle/app/oracle/oradata/standby/sysaux01.dbf";
set newname for datafile 3 to
"/oracle/app/oracle/oradata/standby/undotbs01.dbf";
set newname for datafile 4 to
"/oracle/app/oracle/oradata/standby/users01.dbf";
set newname for datafile 5 to
"/oracle/app/oracle/oradata/standby/example01.dbf";
set newname for datafile 6 to
"/oracle/app/oracle/oradata/standby/ws_app_data01.dbf";
set newname for datafile 7 to
"/oracle/app/oracle/oradata/standby/ws_app_idx01.dbf";
restore
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
renamed tempfile 1 to /oracle/app/oracle/oradata/standby/temp01.dbf 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
executing command: SET NEWNAME
Starting restore at 29-MAY-13
using channel ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/29/2013 01:40:33
RMAN-05556: not all datafiles have backups that can be recovered to SCN 2818790
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 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
RMAN>And the backup pieces are located at (where oracle has rw privs and also owns the dirs):
[oracle@rhel98 orcl]$ ls -ldhtr /oracle/app/oracle/rman_bkp/orcl/
drwxr-xr-x. 2 oracle oinstall 4.0K May 29 01:16 /oracle/app/oracle/rman_bkp/orcl/
[oracle@rhel99 orcl]$ ls -ldhtr /oracle/app/oracle/rman_bkp/orcl/
drwxr-xr-x. 2 oracle oinstall 4.0K May 29 01:57 /oracle/app/oracle/rman_bkp/orcl/Backup was taken using RMAN, by executing a "backup database plus archivelogs" and it was completed with no errors. As you can see backup were taken yesterday and are available.
[oracle@rhel98 ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 29 03:20:54 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL98 (DBID=2386038834)
RMAN> list backup summary;
using target database control file instead of recovery catalog
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
2 B F A DISK 20-MAY-13 1 1 NO TAG20130520T022122
3 B F A DISK 21-MAY-13 1 1 NO TAG20130521T025112
4 B A A DISK 29-MAY-13 1 1 NO TAG20130529T010612
5 B F A DISK 29-MAY-13 1 1 NO TAG20130529T010902
6 B F A DISK 29-MAY-13 1 1 NO TAG20130529T010902
7 B A A DISK 29-MAY-13 1 1 NO TAG20130529T011634
RMAN> list backup completed after '29-MAY-13';
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
4 669.15M DISK 00:02:37 29-MAY-13
BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20130529T010612
Piece Name: /oracle/app/oracle/rman_bkp/orcl/ORCL98_DB_0coaqcc4_12_1
List of Archived Logs in backup set 4
Thrd Seq Low SCN Low Time Next SCN Next Time
1 1 2785395 19-MAY-13 2800632 19-MAY-13
1 2 2800632 19-MAY-13 2814507 20-MAY-13
1 3 2814507 20-MAY-13 2817219 20-MAY-13
1 4 2817219 20-MAY-13 2817222 20-MAY-13
1 5 2817222 20-MAY-13 2818790 20-MAY-13
1 6 2818790 20-MAY-13 2818794 20-MAY-13
1 7 2818794 20-MAY-13 2853065 20-MAY-13
1 8 2853065 20-MAY-13 2885773 25-MAY-13
1 9 2885773 25-MAY-13 2903820 25-MAY-13
1 10 2903820 25-MAY-13 2925244 25-MAY-13
1 11 2925244 25-MAY-13 2934284 25-MAY-13
1 12 2934284 25-MAY-13 2935793 25-MAY-13
1 13 2935793 25-MAY-13 2937653 25-MAY-13
1 14 2937653 25-MAY-13 2939617 25-MAY-13
1 15 2939617 25-MAY-13 2960715 25-MAY-13
1 16 2960715 25-MAY-13 2975590 26-MAY-13
1 17 2975590 26-MAY-13 3013551 27-MAY-13
1 18 3013551 27-MAY-13 3029786 28-MAY-13
1 19 3029786 28-MAY-13 3050776 28-MAY-13
1 20 3050776 28-MAY-13 3088118 28-MAY-13
1 21 3088118 28-MAY-13 3099950 29-MAY-13
BS Key Type LV Size Device Type Elapsed Time Completion Time
5 Full 1.09G DISK 00:06:53 29-MAY-13
BP Key: 5 Status: AVAILABLE Compressed: NO Tag: TAG20130529T010902
Piece Name: /oracle/app/oracle/rman_bkp/orcl/ORCL98_DB_0doaqche_13_1
List of Datafiles in backup set 5
File LV Type Ckp SCN Ckp Time Name
1 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/system01.dbf
2 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/sysaux01.dbf
3 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/undotbs01.dbf
4 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/users01.dbf
5 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/example01.dbf
6 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/ws_app_data01.dbf
7 Full 3100062 29-MAY-13 /oracle/app/oracle/oradata/orcl/ws_app_idx01.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
6 Full 9.36M DISK 00:00:09 29-MAY-13
BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20130529T010902
Piece Name: /oracle/app/oracle/rman_bkp/orcl/ORCL98_DB_0eoaqcue_14_1
SPFILE Included: Modification time: 29-MAY-13
SPFILE db_unique_name: ORCL98
Control File Included: Ckp SCN: 3101140 Ckp time: 29-MAY-13
BS Key Size Device Type Elapsed Time Completion Time
7 23.06M DISK 00:00:11 29-MAY-13
BP Key: 7 Status: AVAILABLE Compressed: NO Tag: TAG20130529T011634
Piece Name: /oracle/app/oracle/rman_bkp/orcl/ORCL98_DB_0foaqcvi_15_1
List of Archived Logs in backup set 7
Thrd Seq Low SCN Low Time Next SCN Next Time
1 22 3099950 29-MAY-13 3101157 29-MAY-13
RMAN>db_recovery_file_dest is the same for both ORCL98 and ORCL99:
*.db_recovery_file_dest='/oracle/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032If needed I can upload the complete initORCL98.ora and initORCL99.ora files.
Any suggestion/comments?
Thanks in advance.
Edited by: martin.morono on May 29, 2013 8:56 PM
Thanks Hemant but the issue is the same with sequence 6 or 22. I posted the RMAN log from an old duplicate I ran yesterday using sequence 6, but as you can see below the error is not changing with setting "until sequence 22"
Hemant K Chitale wrote:
Your database datafile backups are as of Checkpoint SCN 3100062 which is higher than the archivelogs (and certainly higher than SEQ#6).
Possibly SEQUENCE#22 will cover the database checkpoint SCN. Therefore, the minimum UNTIL SEQUENCE would be 23 or higher.
Hemant K Chitale
[oracle@rhel98 ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 29 02:37:51 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL98 (DBID=2386038834)
RMAN> connect auxiliary sys/manager@ORCL99
connected to auxiliary database: ORCL98 (not mounted)
RMAN> run
2> {
3> set until sequence=22 thread=1;
4> duplicate target database for standby
5> backup location '/oracle/app/oracle/rman_bkp/orcl/'
6> dorecover;
7> }
executing command: SET until clause
Starting Duplicate Db at 29-MAY-13
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=20 device type=DISK
contents of Memory Script:
set until scn 3099950;
restore clone standby controlfile;
executing Memory Script
executing command: SET until clause
Starting restore at 29-MAY-13
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: copied control file copy
input file name=/oracle/app/oracle/oradata/orcl/control_standby01.ctl
output file name=/oracle/app/oracle/oradata/standby/control01.ctl
Finished restore at 29-MAY-13
contents of Memory Script:
sql clone 'alter database mount standby database';
executing Memory Script
sql statement: alter database mount standby database
contents of Memory Script:
set until scn 3099950;
set newname for tempfile 1 to
"/oracle/app/oracle/oradata/standby/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/oracle/app/oracle/oradata/standby/system01.dbf";
set newname for datafile 2 to
"/oracle/app/oracle/oradata/standby/sysaux01.dbf";
set newname for datafile 3 to
"/oracle/app/oracle/oradata/standby/undotbs01.dbf";
set newname for datafile 4 to
"/oracle/app/oracle/oradata/standby/users01.dbf";
set newname for datafile 5 to
"/oracle/app/oracle/oradata/standby/example01.dbf";
set newname for datafile 6 to
"/oracle/app/oracle/oradata/standby/ws_app_data01.dbf";
set newname for datafile 7 to
"/oracle/app/oracle/oradata/standby/ws_app_idx01.dbf";
restore
clone database
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
renamed tempfile 1 to /oracle/app/oracle/oradata/standby/temp01.dbf 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
executing command: SET NEWNAME
Starting restore at 29-MAY-13
using channel ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/29/2013 02:40:00
RMAN-05556: not all datafiles have backups that can be recovered to SCN 3099950
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 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 just in case, the initORCL.ora files:
initORCL98.ora
orcl.__db_cache_size=150994944
ORCL98.__db_cache_size=209715200
orcl.__java_pool_size=4194304
ORCL98.__java_pool_size=4194304
orcl.__large_pool_size=4194304
ORCL98.__large_pool_size=4194304
orcl.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
ORCL98.__oracle_base='/oracle/app/oracle','/oracle/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=226492416
ORCL98.__pga_aggregate_target=226492416
orcl.__sga_target=402653184
ORCL98.__sga_target=402653184
orcl.__shared_io_pool_size=0
ORCL98.__shared_io_pool_size=0
orcl.__shared_pool_size=234881024
ORCL98.__shared_pool_size=176160768
orcl.__streams_pool_size=0
ORCL98.__streams_pool_size=0
*.audit_file_dest='/oracle/app/oracle/admin/orcl/adump'
*.audit_trail='DB'
*.compatible='11.2.0.0.0'
*.control_files='/oracle/app/oracle/oradata/orcl/control01.ctl','/oracle/app/oracle/flash_recovery_area/orcl/control02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='ORCL98'
*.db_recovery_file_dest='/oracle/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/oracle/app/oracle'
*.dispatchers='(protocol=TCP)'
*.fal_client='ORCL98'
*.fal_server='ORCL99'
*.job_queue_processes=1000
*.log_archive_config='DG_CONFIG=(ORCL98,ORCL99)'
*.log_archive_dest_1='location=/oracle/app/oracle/archivelog/orcl/ valid_for=(all_logfiles,all_roles) db_unique_name=ORCL98'
*.log_archive_dest_2='SERVICE=ORCL99 valid_for=(online_logfiles,primary_role) db_unique_name=ORCL99'
*.log_archive_dest_state_1='ENABLE'
*.log_archive_dest_state_2='DEFER'
*.log_archive_format='orcl_%R_%T_%S_%d.arc'
*.memory_target=629145600
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_max_size=402653184
*.shared_servers=1
*.standby_file_management='AUTO'
*.undo_tablespace='UNDOTBS1'initORCL99.ora
orcl.__db_cache_size=150994944
orcl98.__db_cache_size=163577856
orcl99.__db_cache_size=243269632
ORCL99.__db_cache_size=218103808
orcl.__java_pool_size=4194304
orcl98.__java_pool_size=4194304
orcl99.__java_pool_size=4194304
ORCL99.__java_pool_size=4194304
orcl.__large_pool_size=4194304
orcl98.__large_pool_size=4194304
orcl99.__large_pool_size=4194304
ORCL99.__large_pool_size=4194304
orcl.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
orcl98.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
orcl99.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
ORCL99.__oracle_base='/oracle/app/oracle'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=226492416
orcl98.__pga_aggregate_target=226492416
orcl99.__pga_aggregate_target=251658240
ORCL99.__pga_aggregate_target=251658240
orcl.__sga_target=402653184
orcl98.__sga_target=402653184
orcl99.__sga_target=377487360
ORCL99.__sga_target=377487360
orcl.__shared_io_pool_size=0
orcl98.__shared_io_pool_size=0
orcl99.__shared_io_pool_size=0
ORCL99.__shared_io_pool_size=0
orcl.__shared_pool_size=234881024
orcl98.__shared_pool_size=222298112
orcl99.__shared_pool_size=117440512
ORCL99.__shared_pool_size=142606336
orcl.__streams_pool_size=0a
orcl98.__streams_pool_size=0
orcl99.__streams_pool_size=0
ORCL99.__streams_pool_size=0
*.audit_file_dest='/oracle/app/oracle/admin/orcl/adump'
*.audit_trail='DB'
*.compatible='11.2.0.0.0'
*.control_files='/oracle/app/oracle/oradata/standby/control01.ctl'
#*.control_files='/oracle/app/oracle/oradata/orcl/control_standby01.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='ORCL98'
*.db_unique_name='ORCL99'
*.db_recovery_file_dest='/oracle/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=4070572032
*.diagnostic_dest='/oracle/app/oracle'
*.dispatchers='(protocol=TCP)'
*.job_queue_processes=1000
*.log_archive_dest_1='location=/oracle/app/oracle/archivelog/orcl'
*.log_archive_format='orcl_%R_%T_%S_%d.arc'
*.memory_target=629145600
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_max_size=402653184
*.shared_servers=1
*.undo_tablespace='UNDOTBS1'
*.db_file_name_convert=('/oracle/app/oracle/oradata/orcl/','/oracle/app/oracle/oradata/standby/')
*.log_file_name_convert=('/oracle/app/oracle/oradata/orcl/','/oracle/app/oracle/oradata/standby/')Once again, many thanks for your prompt response.
Thanks in advance.
Martin
Similar Messages
-
Using RMAN to create single instance standby from 2 node rac
Any advice on the RMAN command to take a non catalog full rman backup from a two node 11gr2 rac node and use it to create the STANDBY single instance.
The RAC two node instance is in ASM (Linux)
The Physical Standby is Normal File System (Linux)
The command that I get from Metalink suggests:
rman target sys/passwd@primary catalog RMAN/RMAN@RMAN auxiliary sys/passwd
RMAN> run {
allocate auxiliary channel C1 device type disk;
duplicate target database for standby;
When I took the rman backup I did not use catalog. Please suggest how to accomplish the same task without catalog. ThanksListener.ora
SID_LIST_STANDBY_LSNR =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = KEMETRAC.respecti.com)
(SID_NAME = STANDBY)
(ORACLE_HOME = /u02/standby/11.2.0.3/STANDBY)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u02/standby/11.2.0.3/STANDBY)
(PROGRAM = extproc)
ADR_BASE_STANDBY = /u02/standby/11.2.0.3
TRACE_LEVEL_STANDBY = OFF
STANDBY_LSNR =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.respecti.com)(PORT = 2012))
LOGGING_STANDBY = OFF
...... Tnsnames.ora
STANDBY.RESPECTI.COM,STANDBY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = standby.respecti.com)(PORT = 2012))
(CONNECT_DATA =
(SERVICE_NAME = STANDBY.respecti.com)
KEMETRAC1.respecti.com, KEMETRAC1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip.respecti.com)(PORT = 2012))
(CONNECT_DATA =
(SERVICE_NAME = kemetrac1.respecti.com)
KEMETRAC2.respecti.com, KEMETRAC2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip.respecti.com)(PORT = 2012))
(CONNECT_DATA =
(SERVICE_NAME = kemetrac2.respecti.com)
# TAF 2 Node RAC
KEMETRAC.respecti.com, KEMETRAC =
(DESCRIPTION =
(ADDRESS_LIST =
(FAILOVER = ON)
(LOAD_BALANCE = ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip.respecti.com)(PORT = 2012))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip.respecti.com)(PORT = 2012))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = kemetrac.respecti.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
The Standby has been started up with nomount.
standby> rman target sys/[email protected] auxiliary sys/pw
Recovery Manager: Release 11.2.0.3.0 - Production on Wed Jan 18 18:16:46 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: KEMETRAC (DBID=1448030790)
connected to auxiliary database: KEMETRAC (not mounted)
RMAN>
RMAN> run {
2> duplicate target database for standby from active database dorecover nofilenamecheck;}
Starting Duplicate Db at 18-JAN-12
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 01/18/2012 18:23:06
RMAN-05501: aborting duplication of target database
RMAN-06217: not connected to auxiliary database with a net service name
RMAN> -
Why use Dreamweaver for create web pages
Hi I am new in Dreamweaver and I want to know why use Dreamweaver for create web pages?
Twitter
http://twitter.com/altweb
Blog
http://alt-web.blogspot.com/
Site
http://alt-web.com/ -
Using instruction for creating field catalog to archive object "MM_MATNR"
Hi all,
I need a using instruction for creating a new field catalog to archive object "MM_MATNR". I'd like to create a field catalog using some fields of tables mara, makt, mvke and marc.
Thanks for your help!Hi,
Go to following link;
[Material Master Archiving|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f75a80-867f-2d10-7aa6-ac164e43e89f?quicklink=index&overridelayout=true] -
I have SSRS reports with each 5 parameters. Parameter datasets includes statements like WHERE @CategoryKey
I have 20 tables in SQL Server. We don't have OLAP cube.
I have created SQL Server Profiler trace. I have clicked all reports during process.
I have opened Database Engine Tuning Advisor.
I have selected all tables to Tune.
Tuning options are Indexes/No Partitioning/Keep all existing PDS
Result is following:
14% improvement
10 recommendations (8 statistic for Calender table and 2 index for Calender)
Tuning logs:
S008 exec sp_executesql N' LongSQLStatment including IN (@CategoryKey) Event does not reference any tables
S007 Replaced event exec sp_executesql
My question is that why I did not get any recommendations for other tables that Calender?
Could it be because of SSRS parameters like @CategoryKey?
Is it possible at all to use SQL Server profile for creating workload in case of SSRS reports with parameters?
I have tables and reports like ProductSales, which I suppose should be get indexedbecause of WHERE statements.
I have where statement like Month and Category and Color.Yes it is possible to capture a trace using profiler, but please provide the t-sql behind your dataset before I can answer your question about the DTA recommandations.
Regards
Rasmus Glibstrup
http://blog.sqlguy.dk -
Backup procedure using RMAN for 11i Instance
Hi,
we have 11.5.10.2 instance
Node 1 = Application Tier ( 11.5.10.2)
Node 2 = DB Tier ( 9.2.0.7)
as of now, we are taking daily cold backup of both instances.
we want to implement RMAN online backup for DB and take cold backup every week end only.
so, what are the best procedures for implementing RMAN for 11i Database.
Please share your experience, if you have anybody implemented?
which one you prefer in RMAN backup ( backupsets or copy option or backupsets with compressed option) interms of performance.. our db size is 60 GB only.
we apply apps tier patches very rarely . so we want to take RMAN online backup for DB daily and take cold backup for entire apps and db in the week ends.Hi,
This time, i am going to implement for Oracle 11i Database. thats why, i need you guys advice regarding 11i Database.Well, the same is applicable to 11i/R12 databases. You just need to configure RMAN the same way you configure it on any standalone database.
If you have implemented any where RMAN, can you share, how you are taking RMAN backup? I can share the scripts we use for backup using RMAN. If you are interested, let me know and I shall send it by email.
if we want to clone, are you cloning the TEST instance with RMAN backup or using cold backup.We use both, depends on the time frame of the cloning task and whether it is possible to use cold backup for cloning or not.
Please have a look at the following notes, it should be helpful.
Note: 230672.1 - Cloning Oracle Applications Release 11i with Rapid Clone
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230672.1
Note: 760772.1 - Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=760772.1
Note: 362473.1 - Cloning E-Business Suite Using Hot Backup for Minimal Downtime of Source Environment
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362473.1
Regards,
Hussein -
Use JAXP for creating XML document
Hi,
I have used JAXP to create a XML docuemnt. But when I use Jaxp to parse it, it returns parsing error ''null''.
I open the XML document in XMLspy and save again, then it can be parsed.
Any suggestion for that? Thanks a lot.Are there any differences between the version created with jaxp and the one with xmlspy? are you using the validating parser? if you aren't you might be having trouble with white space. just a guess.
-
How to use Bapi for creating sales order
Dear All,
I am facing problem in creating Sales orders using BAPI.
Actually I am getting one file as an input and after validating the contents in the file i am preparing an internal table which has 6 fields - Customer number,PO Number,Material Number,Quantity,Price,Unit of measure.
Now my doubt is that while using BAPI_SALESORDER_CREATEFROMDAT2 , I am not getting how to pass PO Number and Customer number.
Please Help.
Regards,
ShwetaHi shweta upadhyay
I have gone through you are post i have done some coding for creating sales order using bapi , I think it is helpful for you.
*& Report YOBJ_BAPI_SALESORDER
*& REPORT : CREATING SALES ORDER USING STANDARD BAPI
*& AUTHOR : S.PAVAN KUMAR INUMARTHY
REPORT YOBJ_BAPI_SALESORDER.
DATA : ORDER_HEADER_IN LIKE STANDARD TABLE OF BAPISDHD1 WITH HEADER LINE.
DATA : ORDER_ITEMS_IN LIKE STANDARD TABLE OF BAPISDITM WITH HEADER LINE.
DATA : ORDER_PARTNERS LIKE STANDARD TABLE OF BAPIPARNR WITH HEADER LINE.
DATA : RETURN TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
DATA : SALESDOCUMENT LIKE BAPIVBELN-VBELN.
*APPENDING VALUES FOR HEADER.
ORDER_HEADER_IN-DOC_TYPE = 'TA'.
ORDER_HEADER_IN-SALES_ORG = '1000'.
ORDER_HEADER_IN-DISTR_CHAN = '10'.
ORDER_HEADER_IN-DIVISION = '00'.
ORDER_HEADER_IN-SALES_GRP = '130'.
ORDER_HEADER_IN-SALES_OFF = '1030'.
APPEND ORDER_HEADER_IN.
*APPENDING VALUES FOR ITEM
ORDER_ITEMS_IN-MATERIAL = 'M-13'.
ORDER_ITEMS_IN-PLANT = '1000'.
ORDER_ITEMS_IN-SALES_UNIT = 'ST'.
ORDER_ITEMS_IN-DIVISION = '07'.
ORDER_ITEMS_IN-GROSS_WGHT = '28000'.
ORDER_ITEMS_IN-NET_WEIGHT = '28000'.
ORDER_ITEMS_IN-UNTOF_WGHT = 'KG'.
ORDER_ITEMS_IN-VOLUME = '0.780'.
ORDER_ITEMS_IN-VOLUNIT = 'M3'.
APPEND ORDER_ITEMS_IN.
*APPENDING VALUES FOR PARTNER
ORDER_PARTNERS-PARTN_ROLE = 'AG'.
ORDER_PARTNERS-PARTN_NUMB = '0000001000'.
ORDER_PARTNERS-COUNTRY = 'DE'.
ORDER_PARTNERS-TRANSPZONE = 'D000080000'.
APPEND ORDER_PARTNERS.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
* SALESDOCUMENTIN =
ORDER_HEADER_IN = ORDER_HEADER_IN
* ORDER_HEADER_INX =
* SENDER =
* BINARY_RELATIONSHIPTYPE =
* INT_NUMBER_ASSIGNMENT =
* BEHAVE_WHEN_ERROR =
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
IMPORTING
SALESDOCUMENT = SALESDOCUMENT
TABLES
RETURN = RETURN
ORDER_ITEMS_IN = ORDER_ITEMS_IN
* ORDER_ITEMS_INX =
ORDER_PARTNERS = ORDER_PARTNERS
* ORDER_SCHEDULES_IN =
* ORDER_SCHEDULES_INX =
* ORDER_CONDITIONS_IN =
* ORDER_CONDITIONS_INX =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* ORDER_CCARD =
* ORDER_TEXT =
* ORDER_KEYS =
* EXTENSIONIN =
* PARTNERADDRESSES =
IF SY-SUBRC = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
ENDIF.
WRITE : 'SALES ORDER IS :', SALESDOCUMENT.
This will be very helpful for you .
this one is the correct answer I have tried it and I am posting it for you.
Message was edited by: pavan inumarthy -
Hi Friends
We usually use ECN for making any changes to Bom or Routing. Any idea whether change number could also be used for creating Boms, Routings? Or rather, when we do not put an ecn number while creating Bom, system should give an hard stop.
thanks and regards
L.RameshHi Mr.Ramesh,
As u asked,ECN can be made as a mandatory field while creating & changing a material,BOM,Routing.
<b>1.For material,ECN can be made as mandatory by using a field exit.For Field exit,you can check in SE37.
2.For BOM,Check in SPRO-Prod-Basic Data-BOM-Control Data for BOM-Define modification parameters(OS27).Also Check in OS25,for more settings.
Check whether there's a tick mark in the check box for EC Management Active.
3.For routing,Check in OP5A,Prod-Basic Data-Rotuing-Control Data-Define Field Selection.</b>
I hope this will be helping you.
If useful reward your points.
Thanks & Regards
Mangal -
Error using BAPI_PO_CREATE1 for creating PO with services
Hi,
I'm getting an error saying 'EnTER account assignment data for item' when I use BAPI_PO_CREATE1 and try to create POs with Service Items. I have filled all the required details, even then the system throws up this error message. Thanks for any help.
Regards,
Vijaywhat have you passed to the table POACCOUNT? and POACCOUNTX?
Regards,
Ravi -
Can I use ODI for creating warehouse in MYSQL?
Hi,
I have Oracle 10g database. However, for the reporting and dashboarding purpose I want to create a warehouse.
Can I use ODI to pick data from this existing Oracle 10g database and create a warehouse using MYSQL?
Then I will use this MYSQL warehouse as source in OBIEE repository.
Kindly help.
Any documents/pointers would be really useful.
Regards,
PriyaHi,
I have Oracle 10g database. However, for the reporting and dashboarding purpose I want to create a warehouse.
Can I use ODI to pick data from this existing Oracle 10g database and create a warehouse using MYSQL?
Then I will use this MYSQL warehouse as source in OBIEE repository.
Kindly help.
Any documents/pointers would be really useful.
Regards,
Priya -
Using ADM for create custom drawed items
Hi,
I've started a new color selector plugin for CS3. The Win version works well. But the Mac version doesn't call the draw procs (set by Item Suite's SetDrawProc).
I've create all items on the dialog box by ADM Dialog Suite (CreateItem).
All the track and notify procs are called. The dialog's draw proc also called. But the individual item-s draw proc doesn't.
The dialog created by this:
ADMInt32 item = gGlobalData->gDialogSuite->Modal
gGlobalData->gPluginRef,
GetLocalizedString(locDialogCaption),
0,
kADMModalDialogStyle,
DoUIInit,
NULL,
kADMTrackEnterBeforeDialogDoesOK
In DoUIInit :
_item = gGlobalData->gDialogSuite->CreateItem(dialog, Enums::kItemColorWheel, kADMUserType, &_colorWheel, ColorWheelItemInitProc, NULL, 0);
In ColorWheelItemInitProc:
gGlobalData->gItemSuite->SetDrawProc(item, ColorWheelDrawProc);
gGlobalData->gItemSuite->SetTrackProc(item, ColorWheelTrackProc);
The ColorWheelTrackProc's called the ColorWheelDrawProc doesn't.
I've tried other item types also. They didn't worked too.
The ADM Doc says: ADM dialogs, ADM items, and ADM entries can all have custom draw handlers, which
draw the object on the screen.
So where is the truth?
Regards
ZoltánThank you for your notice (twice).
In the future release of this plugin we will use native dialog code for win and mac. Until then we have to use ADM. Right now we have no other choice because of the deadline. -
Using BAPI_ACTIVITYCRM_CREATEMULTI for creating sales order in CRM
Hello Experts,
I am creating a sales order using BAPI_ACTIVITYCRM_CREATEMULTI, But I am getting the following errors:
1. Reference Object Type (ORGMAN) not allowed
2. Reference Object Type (PARTNER) not allowed
3. Incomplete interface data - No reference specified
4. Item was not found
Can you please help me with the mandatory fields, that has to be filled in the BAPI, and do I need to use Commit BAPI after this BAPI.
Please I am in critical postion,
Now I am able to create a sales order there is no data it like the partner number and Item.May be I am missing some important fileds.
Please help.
Thanks,
Suma
Edited by: Suma B on Aug 8, 2008 1:05 PMHi,
I am passing data using SE37 T-Code.
I was told by the fucntioal guys that GUID will be generated by CRM, so we dont need to send that as an input.
Still facing the same error...
These are my input fields:
REF_HANDLE
REF_GUID
R
OBJECTNAME
LOGICAL_KEY
FIELDNAME
C
|
0000000000
ORDERADM_H
PROCESS_TYPE
0000000000
ORDERADM_H
POSTING_DATE
0000000000
ACTIVITY_H
CATEGORY
0000000000
ACTIVITY_H
PRIORITY
0000000000
ACTIVITY_H
DIRECTION
0000000000
PARTNER
000000000022XXXXXXX
REF_PARTNER_FCT
0000000000
PARTNER
000000000022XXXXXXX
REF_PARTNER_NO
0000000000
PARTNER
000000000022XXXXXXX
PARTNER_FCT
0000000000
PARTNER
000000000022XXXXXXX
PARTNER_NO
0000000000
ORGMAN
DIS_CHANNEL
0000000000
ORGMAN
DIVISION
0000000000
ORGMAN
SALES_ORG
0000000000
ORDERADM_I
PRODUCT
0000000001
B
SCHEDLIN
00000000000000000000000000000000
QUANTITY
|
This is error log:
T
ID
NUM
MESSAGE
LOG_NO
LOG_MS
MESSAGE_V1
MESSAGE_V2
MESSAGE_V3
MESSAGE_V4
PARAMETER
ROW
FIELD
SYSTEM
|
W
CRM_ORDER
004
Referenced object type (ORGMAN) not allowed
$000001
000001
ORGMAN
ORDER
0
CR5CLNT100
W
CRM_ORDER
004
Referenced object type (PARTNER) not allowed
$000001
000002
PARTNER
ORDER
0
CR5CLNT100
W
CRM_ORDER
005
Incomplete interface data - No reference specified
$000001
000003
ORDER
0
CR5CLNT100
E
CRM_ORDERADM_I
006
Item was not found.
$000001
000004
ORDER
0
CR5CLNT100
E
CRM_ORDER
005
Incomplete interface data - No reference specified
$000001
000005
ORDER
0
CR5CLNT100
S
CRM_MESSAGES
005
A log has been generated for single document
$000001
000006
MESSAGES
0
CR5CLNT100
E
COM_PARTNER
119
Enter Sold-To Party
$000002
000001
Sold-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Ship-To Party
$000002
000002
Ship-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Bill-To Party
$000002
000003
Bill-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Payer
$000002
000004
Payer
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Sold-To Party
00000000000000047612
000001
Sold-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Ship-To Party
00000000000000047612
000002
Ship-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Bill-To Party
00000000000000047612
000003
Bill-To Party
PARTNER
0
PARTNER_NO
CR5CLNT100
E
COM_PARTNER
119
Enter Payer
00000000000000047612
000004
Payer
PARTNER
0
PARTNER_NO
CR5CLNT100
|
Thanks,
Suma -
Can anyone recommend a VERY easy to use program for creating a very basic app for my iPhone4?
I just want to be able to enter a few fields of data and have it emailed to my office. Any suggestions? I am not a programmer, so easy is the key word here.
I work for a craft brewery and I want to be able to enter some basic repedative info from kegs of beer and how the beer pours back to our brewery for quality controll.
Thanks gang!This is easily accomplished using HTML5 and JavaScript. In this case, the most difficult part will be encoding the mailto URL. Most people don't realize that the you can stuff an entire email message into a mailto URL, not just an e-mail address.
In this model, you would compose a web-page (one or more files) and include a manifest file (that lists the files used for that page), and reference the manifest file in the page itself. You would then browse to the page, and save a bookmark to the page on the phone's springboard (an icon on the home screen). By including a manifest, all the files that make up the page are copied to your device and you can use the application locally.
In fact, HTML5 on iOS permits you to write databases, draw graphs, make animations, etc. What you can't do is access other apps from within the HTML5 app (outside of using URLs).
In your particular scenario, though, if there's network connectivity in the brewery, I would suggest a regular web-application on the phone and write a little front-end to some database. You also have options like FileMaker Go, Numbers for iPhone, etc. -
String contains class name: how to use it for creating new objects
Hi All
I've seen things like this in scripting languages, so I was wondering if things like this are possible in java. Here is an not working example:
String s = "MyClass" ;
MyClass mc = new s() ; // or: s mc = new s() ;
if ( mc instanceof s ) { ..... }
Is something like this possible ?
Thnx in advance
LuCajeanluca wrote:
I've seen things like this in scripting languages, so I was wondering if things like this are possible in java. Here is an not working example:
Is something like this possible ?AFAIK, it is only possible in a very limited way as noted above and is nearly always not recommended and definitely not necessary. The variable name has little importance, but OTOH the object reference has great importance. Instead learn about arrays, Lists, and Maps.
Maybe you are looking for
-
Laserwriter 4/600 not working after 10.6.8 update
Hi, my old Apple laser writer 4/600 used to work like a charme as a network printer via an old MDD Mac when I would print from my iMac 27 2010 in any Snow Leopard version up to 10.6.7. With the 10.6.8 update it broke and would not print anything from
-
[SOLVED]How do I get rw access to a vfat partition?
I need user rw access to my vfat partition how would I go about setting it up. Disk /dev/sda: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x19b819b8 Devic
-
Unable to attach formula with Element
Hi All, I have written a formula with type Oracle Payroll that is 10% based on Basic pay and return a value in a variable,after writing I am unable to associate it with element , If I take the type element input validation it appears in the input val
-
We are experiencing issues with cached credentials and login delays using the Active Directory DirectoryServices plugin under 10.5. In our case, the plugin works fine as long as the system is on one of our networks, and credential caching works when
-
Adobe premier pro cs5.5 and canon 6d
i have adobe premier pro cs5.5 and unable to pull in videos from my canon 6d. what do need to make this work? thanks