Backup via Grid Control backs up to wrong location.
When creating a backup job via CG it seems to be backing up to the default directory of $ORACLE_HOME/dbs. However, rman is configured to backup to a different location. Below is the backup script that GC created.
If I manual run backup database from RMAN the backup goes to the correct location.
$rman_script="run {
allocate channel oem_backup_disk1 type disk maxpiecesize 5 G;
backup as BACKUPSET tag '%TAG' database;
backup as BACKUPSET tag '%TAG' archivelog all not backed up delete all input;
backup tag '%TAG' current controlfile;
release channel oem_backup_disk1;
allocate channel for maintenance type disk;
delete noprompt obsolete device type disk;
release channel;
&br_save_agent_env();
&br_prebackup($l_db_connect_string, $l_is_cold_backup, $l_use_rcvcat, $l_db_10_or_higher, $l_backup_strategy, "FALSE");
my $result = &br_backup();
exit($result);
I believe it's the one holding the rman repository. Is your rman repository on a windows box? Make sure that account has log on as batch job privilege.
Similar Messages
-
Oracle Grid Control 11g Release 1 (11.1.0.1.0)
(64bit)
Oracle Enterprise Linux Server release 5.4 x86_64
Oracle Database 11.2.0.3 (64bit)
1. Grid Control>Targets>Databases
2.Click on pc01prmy (Primary)
3.Availability > Data Guard > Setup and Manage
4.Add Standby Database
5.Create a new physical standby database.
Fails with message:
38706 at /u01/app/oracle/agent11g/sysman/admin/scripts/db/dg/dgutil.pl line 99.
I can create a standby with a rman script without problems, but via the Grid Control page fails.
Have you seen this before?I contact Oracle Support on this issue, here are the details.
Generic Note
Hi Marcelo, the note you sited Creating Standby Database With Enterprise Manager Failing [ID 1400482.1
Says something a little different than what you tried.
You did RECOVER DATABASE for manual recover and the error says use backup control file.
For a standby to do manual recovery it's
*alter database recover standby database ;*
It may behave better.
But the note implies to just apply enough redo to have the standby consistent enough to turn on flashback.
This can be done by starting managed recovery and applying some redo log sequences.
So the flashback being turned on is too soon, but should have worked anyway. I think it would turn on managed recovery though.
This also happens since the job doesn't use dorecover since recovery can be done with managed recovery.
So most likely there isn't enough activity on the primary and the online redo has not been archived yet.
So some log switches on the primary will send enough redo to get consistent so you can turn on flashback and finish it.
*So why did it happen?*
Possibly
Bug 13250486 - ADD STANDBY DATABASE FOR TARGET WITH FLASHBACK ON FAILS WITH ERROR
Base bug 12923814 FLASHBACK AND ARL DELETION OPTIONS IGNORED IN ADD STANDBY DATABASE WIZARD
fixed in Grid Control 12.1c
There is currently no patch available for 11.1.0.1 Grid Control. We would have to open a bug to confirm you hit this in 11.1.0.1 and get a patch.
*A workaround would be to turn off flashback at the primary then try to create the standby.*
*Once the standby is created you can turn flashback back on for the primary and if required, the standby.*
You can try again to see, or finish the standby manually as I stated above.
I will still need the diagnostic information below.
Action Plan
=========
The product verion in this SR is for 12.1.0.1 Grid Control. I assume it should be 11.1 since you stated it is.
Grid Control job log that shows the errors.
alert logs from the primary and standby.
Please run these two diagnostic scripts and upload the output.
Script to Collect Data Guard Primary Site Diagnostic (Doc ID 241374.1)
Script to Collect Data Guard Physical Standby Diagnostic (Doc ID 241438.1)
Edited by: Marcelo Marques - ESRI on Mar 24, 2012 9:51 AM -
Create physical standby database via grid control Errror
Hi
I wonder if anyone has seen the following problem
I am creating a standby database using EM Grid Control wizard. It all configures fine and starts the job goes through all steps including copying datafiles etc. but when it hits the step CREATE STANDBY DATABASE it fails with no explanation. In the oms log all it says is an error about cant find the sid name
EM Grid COntrol is 10.2.0.5 version
Windows Primary is Windows 2003 server 10.2.0.4 db
Trying to create on windows 2003 server with same oracle version
Thanks
DDid you search the same on Metalink ?
please also cehck
EM: Creation process for a physical standby DB failed with SQL Exception
Regards
Rajesh -
Monitoring of Standby Instance via Grid Control
Hi DBAs,
I have setup the Data Guard single instance to single instance in Oracle 10.2.0.4. Is it possible that if I install the agent on standby database server, can I monitor these server using Grid Control. Also is there any other tool for monitoring of standby databases (database is applying the archives, latency or any other issue) ?
Thanks
-Samar-Hi; Yes u can. Check the following:
http://download.oracle.com/docs/cd/B19306_01/server.102/b25159/monitor.htm#i1007244
http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/gui.htm#DGBKR400
You can also use some scripting to monitor your dataguard status.
http://emrebaransel.blogspot.com/2009/07/shell-script-to-check-dataguard-status.html
http://emrebaransel.blogspot.com/2008/08/how-to-query-dataguard-status.html
There are also some 3th party tools for dataguard monitoring & managing purpose. -
I trying to create a DG from a two node RAC instance.
All the machines are at the same patch levels and OS levels (11.1.0.7/Solaris 2.10). Our GRID CONTROL is at 10.2.0.5 and patched to what I think is the latest level.
The wizards works fine and the creation process creates the duplicate DB without any problems. When it gets to the very last step (#13 CREATE STANDBY DATABASE) I get this error:
SQL> Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
dgcreate.DGgetRecoverySCN102: SELECT CHECKPOINT_CHANGE# FROM V$DATABASE
dgcreate.DGrecoverStby102: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE UNTIL CHANGE 3038710446200
dgcreate.DGrecoverStby102: ALTER DATABASE OPEN READ ONLY
*10458 at /u01/app/oracle/product/agent10g/sysman/admin/scripts/db/dg/dgutil.pl line 93.*
Anyone run into this before?I recreated the STANDBY again (same error).
Here is the tail end of the alert log on the standby:
Media Recovery Not Required
Signalling error 1152 for datafile 1!
ORA-1547 signalled during: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE UNTIL CHANGE 3038791960334...
ALTER DATABASE OPEN READ ONLY
Data Guard Broker initializing...
Data Guard Broker initialization complete
Signalling error 1152 for datafile 1!
Beginning standby crash recovery.
Fast Parallel Media Recovery enabled
Managed Standby Recovery starting Real Time Apply
parallel recovery started with 15 processes
Media Recovery Log +ELM1DATA/egstby1/archivelog/2010_08_17/thread_1_seq_395.427.727280107
Media Recovery Waiting for thread 2 sequence 402
Standby crash recovery need archive log for thread 1084416 sequence 1089759 to continue.
Please verify that primary database is transporting redo logs to the standby database.
Standby crash recovery aborted due to error 16016.
Errors in file /u01/app/oracle/diag/rdbms/egstby1/egstby1/trace/egstby1_ora_19850.trc:
ORA-16016: archived log for thread 2 sequence# 402 unavailable
Shutting down recovery slaves due to error 16016
Recovery interrupted!
Tue Aug 17 14:15:44 2010
RFS[6]: Assigned to RFS process 20207
RFS[6]: Identified database type as 'physical standby': Client is ARCH pid 24808
Completed standby crash recovery.
Signalling error 1152 for datafile 1!
RFS[6]: Opened log for thread 2 sequence 403 dbid 1850521674 branch 726078384
ORA-10458 signalled during: ALTER DATABASE OPEN READ ONLY...
Archived Log entry 4 added for thread 2 sequence 403 rlc 726078384 ID 0x6e4d4647 dest 2:
Tue Aug 17 14:16:06 2010
RFS[7]: Assigned to RFS process 20257
RFS[7]: Identified database type as 'physical standby': Client is ARCH pid 8783
Tue Aug 17 14:16:06 2010
RFS[8]: Assigned to RFS process 20259
RFS[8]: Identified database type as 'physical standby': Client is ARCH pid 24819
Tue Aug 17 14:16:06 2010
RFS[6]: Opened log for thread 1 sequence 396 dbid 1850521674 branch 726078384
Archived Log entry 5 added for thread 1 sequence 396 rlc 726078384 ID 0x6e4d4647 dest 2:
Tue Aug 17 14:16:07 2010
RFS[5]: Opened log for thread 2 sequence 404 dbid 1850521674 branch 726078384
Archived Log entry 6 added for thread 2 sequence 404 rlc 726078384 ID 0x6e4d4647 dest 2: -
RMAN Backup of Standby by Grid Control
Hello Friends,
i am trying to take backup of standby..by rman..but when i am trying to create customize backup in grid control, it is saying that you should connect to the recovery catalog. Now i set the recovery catalog in primary database, but still it is giving same message. What should i do..?
VivekI am using seperate instance for catalog on separate machine...These are the steps ---
1) Register primary database to the recovery catalog (REP its on other node)
2) Now i assume that the standby will also register to the catalog, because my SID and DBID is same for primary and standby.
3) But when i go to the grid control, and try to schedule the backup..then customize backup...i got error message--- Error - Backing up a physical standby database requires a recovery catalog.
Please suggest solution..? -
Grid Control architecture.
Can I have 64 bits primary and 32 bits standby logical server controlled by 32 bits Grid Control.
Primary server (64 bits) + Standby server (logical) 32 bits + Grid Control (32 bits)Oliver,
Thanks for the comments. The article is based on practical experience. If one was to recommend a pool of 2 management servers for a large corporate with 1000 servers, what that would mean is that if 1 server was brought down for any maintenance reason (for eg. applying an EM patch), all the EM work load would be on the remaining management server. So it is better to have 3 management servers instead of 2 when the EM system is servicing so many targets. Otherwise, the DBAs would be a tad angry since only 1 remaining managment server would not be able to service them properly during the time of the maintainance fix on the first management server.
The article ends with these words: "You can easily manage hundreds or even *thousands* of targets with such an architecture. The large corporate which had deployed this project scaled easily up to managing 600 to 700 targets with a pool of just three management servers, and the future plan is to manage *2,000 or more* targets which is quite achievable." The 2000 or more is based on the same architecture of 3 managment servers.
So as per the best practice document, 2 management servers would be fine for 1000 servers, although I would still advise 3 servers in practice.
For your case of 200 servers, it depends on the level of monitoring you are planning to do, and the type of database managment activities that
will be done by the DBAs. For eg, if the Dbas are planning on creating standby databases now and then through Grid Control, running backups daily
via Grid Control, cloning databases in Grid Control, patching databases in Grid Control and so on, I would definitely advise a pool of 2 servers
in your case. 2 is always better than 1.
Regards,
Porus.
Edited by: Porushh on Feb 21, 2009 12:51 AM -
Grid Control Architecture for Very Large Sites: New Article published
A new article on Grid Control was published recently:
Grid Control Architecture for Very Large Sites
http://www.oracle.com/technology/pub/articles/havewala-gridcontrol.htmlOliver,
Thanks for the comments. The article is based on practical experience. If one was to recommend a pool of 2 management servers for a large corporate with 1000 servers, what that would mean is that if 1 server was brought down for any maintenance reason (for eg. applying an EM patch), all the EM work load would be on the remaining management server. So it is better to have 3 management servers instead of 2 when the EM system is servicing so many targets. Otherwise, the DBAs would be a tad angry since only 1 remaining managment server would not be able to service them properly during the time of the maintainance fix on the first management server.
The article ends with these words: "You can easily manage hundreds or even *thousands* of targets with such an architecture. The large corporate which had deployed this project scaled easily up to managing 600 to 700 targets with a pool of just three management servers, and the future plan is to manage *2,000 or more* targets which is quite achievable." The 2000 or more is based on the same architecture of 3 managment servers.
So as per the best practice document, 2 management servers would be fine for 1000 servers, although I would still advise 3 servers in practice.
For your case of 200 servers, it depends on the level of monitoring you are planning to do, and the type of database managment activities that
will be done by the DBAs. For eg, if the Dbas are planning on creating standby databases now and then through Grid Control, running backups daily
via Grid Control, cloning databases in Grid Control, patching databases in Grid Control and so on, I would definitely advise a pool of 2 servers
in your case. 2 is always better than 1.
Regards,
Porus.
Edited by: Porushh on Feb 21, 2009 12:51 AM -
Monitor oracle connection manager (cman) in grid control
How to montior oracle connection manager listener/instace in Grid Control. When I installed grid agent on the box where oracle connection manager running, agent is not able to discover the oracle connection manager instance. Is it possible to montior this via Grid Control?
please send configuration file of cman.ora, listener.ora
-
How to Transfer Data from editable ALV grid control to internal table?
Hi,
Can anyone give me a simple example by which I can transfer data from editable alv grid control back to the internal table. The ALV has been created by OO approach.
I would appreciate if the solution is provided without handling any events.
Regards,
AuroHello Auro
You simply need to call method <b>go_grid->check_changed_data</b> at PAI of the dynpro displaying the ALV grid. If data have been changed on the editable ALV grid then this method will raise event DATA_CHANGED. If you do not want or need to handle this event (e.g. for validating the edited values) then you do not define any event handler method.
Regards
Uwe -
Backing up database and archivelogs with grid control.
So I was scheduling a job to backup the entire database and archive logs to an ASM diskgroup. Well for some reason.... the backup of both the datafiles and archivelog files keep going to my $ORACLE_HOME/db/dbs directory. I have no clue as I've dropped the job and recreated it and made sure it was going to <diskgroup>. Anyone have any idea what might be happening? I'm using 10.2.0.4 for the database and ASM. My Grid control is also 10.2.0.4.
Thanks in advance
LukeGrid Control:
Disk Backup Location: I've tried to leave it blank so that it will goto my flash recovery area(Which is on ASM) and I even tried to explicitly state an ASM diskgroup, but both of those fail and start backing up to /dbs directory
RMAN:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTRONLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '%U';
CONFIGURE MAXSETSIZE TO UNLIMITED;
CONFIGURE ENCRYPTION FOR DATABASE OFF;
CONFIGURE ENCRYPTION ALGORITHM 'AES128;
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/SOMEDIR/';
Edited by: Luke22 on Feb 2, 2010 12:07 PM -
My ipad just froze on me with an error message "this ipad hasn't been backed up for 2 weeks. Backups happen when this ipad is plugged in, locked, and connected to Wi-Fi. All this has been done including trying to backup via itunes (on my PC). all this still doesn't solve the problem. Anyone have a possible solution?
Hold the Sleep/Wake and Home button down together until you see the Apple Logo.
Note: You must hold both buttons down together. -
Problem in deleting backup job in Grid Control
Hi,
The topology and versions are as follows:
1 windows 2003 server with Oracle Grid Control 10.2.0.4.0.
1 windows 2003 server with Oracle Databases 10.2.0.3.
1 windows 2003 server with Oracle Databases 10.2.0.3 - Data Guard setup
I have tried to stop (and delete) some scheduled fullbackup jobs from Grid Control.
The job has now status SUSPEND. I have tried to stop and delete the job, but I get the message:
All executions of the job were stopped successfully. Currently running steps will not be stopped.
I cannot delete the job and the job is not running.
I have run this procedure in order to delete the job:
DECLARE
jguid RAW;
BEGIN
SELECT job_id
INTO jguid
FROM mgmt_job
WHERE job_name = '<name of your job>'
AND job_owner = '<owner of your job>';
mgmt_job_engine.stop_all_executions_with_id(jguid,TRUE);
COMMIT;
END;
With no effect. The job is still shown in Grid Control with status SUSPEND.
I have restarted all servers and all the components in Grid Control, but the jobs will not disappear from Grid Control although they have been deleted.
I am struggling with this for about 2 days now.
I have search in Metalink and the internet, but I have not found anything that provides a solution.
Any help will be very much appreciated.hi,
I have in the past used the following from metalink
Do you have a metalink account?
SET verify OFF
SET linesize 255
SET pagesize 128
SET trimout ON
SET trimspool ON
SPOOL jobdump.log
ALTER SESSION SET nls_date_format='MON-DD-YYYY hh:mi:ss pm';
COLUMN status format a15
COLUMN job_name FORMAT a64
COLUMN job_type FORMAT a32
COLUMN job_owner FORMAT a32
COLUMN job_status format 99
COLUMN target_type format a64
COLUMN frequency_code format a20
COLUMN interval format 99999999
VARIABLE JOBID VARCHAR2(64);
PROMPT *********************** JOB INFO ********************************
REM Get the job id
SET serveroutput on
BEGIN
SELECT job_id INTO :JOBID
FROM MGMT_JOB
WHERE job_name='&&jobName'
AND job_owner='&&jobOwner'
AND nested=0;
EXCEPTION
WHEN NO_DATA_FOUND THEN
BEGIN
DBMS_OUTPUT.put_line('JOB NOT FOUND, TRYING NAME ONLY');
SELECT job_id INTO :JOBID
FROM MGMT_JOB
WHERE job_name='&&jobName'
AND nested=0
AND ROWNUM=1;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.put_line('JOB NOT FOUND');
END;
END;
SELECT job_name, job_owner, job_type, system_job, job_status, target_type
FROM MGMT_JOB
WHERE job_id=HEXTORAW(:JOBID);
PROMPT *********************** JOB SCHEDULE ****************************
SELECT DECODE(frequency_code,
1, 'Once',
2, 'Interval',
3, 'Daily',
4, 'Day of Week',
5, 'Day of Month',
6, 'Day of Year', frequency_code) "FREQUENCY_CODE",
start_time, end_time, execution_hours, execution_minutes,
interval, months, days, timezone_info, timezone_target_index,
timezone_offset, timezone_region
FROM MGMT_JOB_SCHEDULE s, MGMT_JOB j
WHERE s.schedule_id=j.schedule_id
AND j.job_id=HEXTORAW(:JOBID);
PROMPT ********************** PARAMETERS ********************************
SELECT parameter_name,
decode(parameter_type,
0, 'Scalar',
1, 'Vector',
2, 'Large', parameter_type) "PARAMETER_TYPE",
scalar_value, vector_value
FROM MGMT_JOB_PARAMETER
WHERE job_id=HEXTORAW(:JOBID)
AND execution_id=HEXTORAW('0000000000000000')
ORDER BY parameter_name;
PROMPT ********************** TARGETS ********************************
SELECT target_name, target_type
FROM MGMT_JOB_TARGET jt, MGMT_TARGETS t
WHERE job_id=HEXTORAW(:JOBID)
AND execution_id=HEXTORAW('0000000000000000')
AND jt.target_guid=t.target_guid
ORDER BY target_type, target_name;
PROMPT ********************** FLAT TARGETS ********************************
SELECT target_name, target_type
FROM MGMT_JOB_FLAT_TARGETS jft, MGMT_TARGETS t
WHERE job_id=HEXTORAW(:JOBID)
AND jft.target_guid=t.target_guid
ORDER BY target_type, target_name;
PROMPT ************************ EXECUTIONS *******************************
SELECT execution_id,
DECODE(status,
1, 'SCHEDULED',
2, 'RUNNING',
3, 'FAILED INIT',
4, 'FAILED',
5, 'SUCCEEDED',
6, 'SUSPENDED',
7, 'AGENT DOWN',
8, 'STOPPED',
9, 'SUSPENDED/LOCK',
10, 'SUSPENDED/EVENT',
11, 'SUSPENDED/BLACKOUT',
12, 'STOP PENDING',
13, 'SUSPEND PENDING',
14, 'INACTIVE',
15, 'QUEUED',
16, 'FAILED/RETRIED',
17, 'WAITING',
18, 'SKIPPED', status) "STATUS",
scheduled_time, start_time, end_time
FROM MGMT_JOB_EXEC_SUMMARY e
WHERE job_id=HEXTORAW(:JOBID)
ORDER BY scheduled_time;
UNDEFINE jobName
UNDEFINE jobOwner
UNDEFINE JOBID
SPOOL OFFAlan -
Repository Database shows at wrong version in Grid Control
Hi all,
I have successfully installed Grid Control and have upgraded the repository database to version 10.2.0.3. When I log into sqlplus to check the version number fit shows 10.2.0.3, but when I look at the database in Grid Control it is displaying as 10.2.0.1.
Does anyone have any idea why that would happen? Where does GC get its information from?
Thanks,
PaulaIt is also worth mentioning that when I used DBUA to upgrade the repository database from 10.2.0.1 to 10.2.0.3 the EM config part failed. Having googled this it seems that this is fine for a Grid Control repository database, as it does not have an EM db console element to it anyway and therefore it cannot be upgraded, but I thoguht I best mention that in case it has a bearing on this issue.
thanks,
Paula -
Rman backup error in oracle grid control
Hi,
I am able to find rman failure and status is Failed so where we can find the error messages in oracle enterprise manager 10g grid control to make sure that it should not happen in future.
Appreciated for your inputs.
Thanks
PrakashHi,
I am able to find rman failure and status is Failed so where we can find the error messages in oracle enterprise manager 10g grid control to make sure that it should not happen in future.Refer Link below:
http://www.oracle.com/technology/pub/articles/havewala-rman-grid.html
Check from point 15
Regards,
X A H E E R
Maybe you are looking for
-
How to retrieve the first digit of a number
Hi, In my smartform (PO Form)I have to check a condition with respect of the first digit of company code. To be more clear i need to check that if the first digit of the company code is '1' (like in case of 1000, 1002, 1003 & so on) then my PO should
-
Monitors forget the colour profile
After my monitors wake up, they switch back to default colour profiles. I have a ViewSonic VE710b booked up to a MacBook Pro 15" 2.4GHz. To fix the problem all I have to do is open Display Preferences and they both switch back to the previously used
-
Message Flashing at Logon Screen
Hello All I have a requirement that on My Portal Logon Screen, i want to display a message wenever my R/3 is down.. Is there a way? I thought of displaying another screen on base of url..or a web dynpro message... But how... Depending on which Condit
-
Droid 2 Software update failed.
I am having problems with installing the update software on my phone. I have read the PDF file and if the error message pops up after removing battery and putting it back and turning it on and download the update. I have done this 6times and every ti
-
Will be available for 6-9 month contract June 07. 13 years Labview experience, GUI, SCADA, Canbus, Heavy Truck-Bus ECU verification, Dynamometer, Sound & Vibration Analysis. Environmental chamber shock testing experience, HALT-HASS, Durability and