How to monitor all RMAN operations using single script in the recovery catalog?
I use the rman recovery catalog, all databases are stored on the catalog database, is there any script to monitor all the databases that are registered in the recovery catalog.I have the script that displays only the last time success of the work of recovery catalog
SELECT name, Inc., Journal, ctl
Of
RMAN.rc_database d,
(select db_id, to_char (max (START_TIME),' MM/DD / YYYY:HH24:MI:SS') full)
of s rman.rc_backup_set
where s.backup_type in (')
and controlfile_included = 'NONE '.
Db_id group) f.
(select db_id, to_char (max (START_TIME),' MM/DD / YYYY:HH24:MI:SS') Inc.)
of s rman.rc_backup_set
where s.backup_type ('i')
Db_id group) i.
(select db_id, Journal of to_char (max (START_TIME),' MM/DD / YYYY:HH24:MI:SS'))
of s rman.rc_backup_set
where s.backup_type ('l')
l band db_id),
(select db_key, ctl to_char (max (completion_TIME),' MM/DD / YYYY:HH24:MI:SS'))
of s rman.rc_backup_controlfile
Db_key group) c
where f.db_id (+) = d.dbid
and i.db_id (+) = d.dbid
and l.db_id (+) = d.dbid
and c.db_key (+) = d.db_key
order by 1;
Published by: 987633 on February 12, 2013 09:03
Real!
Difficult to shoot everything I want in a single query.
select
db_name,
start_time,
end_time,
status,
time_taken_display,
output_bytes_display,
output_device_type,
session_key,
session_recid,
session_stamp
from rc_rman_backup_job_details where end_time > sysdate -1
Best regards
mseberg
Tags: Database
Similar Questions
-
RMAN-20001: target not found in the recovery catalog database
I'm practicing the loss of all control files. I have backups of catalog rman configured for controlfile autobackup. So far, I did this.
RMAN > startup nomount;
Oracle instance started
Total System Global Area 209715200 bytes
Bytes of size 1272864 fixed
155190240 variable size bytes
Buffers 50331648 database bytes
Redo buffers 2920448 bytes
RMAN > restore controlfile autobackup.
From restoration to SEPT. 08.-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid = 156 devtype = DISK
field of recovery destination: / u02/flash_recovery
name of database (or unique name of database) used for research: TEST
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: /u02/flash_recovery/TEST/autobackup/2009_12_09/o1_mf_s_705171034_5l0kgv4o_.bkp
channel ORA_DISK_1: restore full automatic backup of control file
output filename=/u02/control_files/TEST/control02.ctl
output filename=/u03/oradata/TEST/control03.ctl
Restoration finished in 08-SEVEN.-10
RMAN > change the editing of the database;
mounted database
output channel: ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure to modify the order db at 08/09/2010 14:54:50
RMAN-06004: error ORACLE recovery catalog database: RMAN-20001: target not found in the recovery catalog database
I guess it has something to do with the DBID but... I don't have and I do not know how to find.Hello
Try this
RMAN > Connect target /.
RMAN > Connect catalog rman/rman@test
RMAN > startup nomount;
RMAN > list backup of controlfile; -
Using the Scheduler to run the rman script directly stored in the recovery catalog
Hi everyone, I usually automate my backups rman, using either cron or dbms_scheduler to call my stored in a sh file NIX rman scripts. Everything works fine but anyone know how / if it is possible to call a stored in the recovery catalog rman script. Let's say I have create a script in the catalog:
RMAN > create script showall
Comment "just one example of demonstration."
{
VIEW ALL;
}
Can I use dbms_scheduler to call this script directly? If Yes, how and if not then how can we plan for this or a stored script stored in the rman catalog catalog. Been looking all over the place, but everything seems to indicate leaving Oracle to call .sh or .bat file.
Kind regards
Dave
Well, let us know the result.
The link you supplied refers to 12 c Scheduler improvements it seems, it may not be applicable to lower versions of Oracle.
-
How to share all my Albums using Windows 7?
How to share all my Albums using Windows 7? Can I send everyone a URL?
If you want users to access a link via the web and not need to use of Revel, which is done on a per-album basis. See this link:
FAQ: How to share files to Revel?
If you trust the users to add/edit/delete of files, you can share a library of Revel in collaboration with up to 50 users. You must be a premium user or be on the premium of the trial 30 days to create a new library and share all your library this way. The link above will explain this as well. You must enter their email address and they also have this revel. It will give them access to all the photos in an entire library. I hope this helps.
Guinot
-
RMAN cloning using the recovery catalog
Hi all
I do RMAN cloning using the recovery catalog.
I use oracle 10R2 on solaris, I have a PRIMARY primary database name. I create another database for the catalog name of recovery REC_DB. and the master database with REC_DB record and took the full backup. now I have a full backup of the PRIMARY database in the recovery catalog.
Now I want to clone the MAIN database using this backup (backup of the catalog).
I've done this before, without using the catalogue,
I know that the orders and the cloning procedure, I want to ask how to connect from the auxiliary.
RMAN target sys/password@source_DB_string auxiliary sys / password@clone_DB_string *.
here target means what? primary or catalog database. kindly help me on this.
Kind regards
Kumar>
>
I know that the orders and the cloning procedure, I want to ask how to connect from the auxiliary.
RMAN target sys/password@source_DB_string auxiliary sys / password@clone_DB_string *.
here target means what? primary or catalog database. kindly help me on this.
Looks like it is exactly what you were asking.
You need to connect to the TARGET, CATALOG & AUXILIARY of the rman prompt instance.
You then run your script/command clone, which you claim you already know how to do. -
original title: only the keyboard
By using only the keyboard, how can I create an email using Outlook Express, have the files of 'paint' in the body of the email, also registered another Web page?
Hi r. Gull,.
You can view using Outlook Express keyboard shortcuts, documented in:
I hope this helps.
-
How to create e-commerce site using adobe muse from the beginning to the end, please
How to create e-commerce site using adobe muse from the beginning to the end, please
Mylenium, why comment you on the forums of Muse? I've never seen a useful comment on these forums. You seem to just upset against Muse all the time.
in any case, definitely go with widgets Ecwid and J-26. They are the best.
-
How do I know if the recovery catalog is configured
Hi friends,
Today I faced a typical question that I've never heard and looking for a response that
If I got a database, how to check if that database has a recovery catalog configured or not?
I know, by catalogue, we can check databases saved using view v$ RC_DATABASE. but it's new to me...
Please shed some light... Thanks in advancemseberg wrote:
You can try to select the RC_SITE view in your catalog database.He wants to know the information of target database_ no recovery catalog database.
View RC_DATABASE is used to search the database of registered in the recovery catalog.
View RC_SITE lists information about all databases in a Data Guard environment that are known to the recovery catalog. -
Hello all,.
One of our backups RMAN fails with the following error message. Any suggestions would be greatly appreciated.
==================================================================================================
From backup 2008-12-30 22:03:47
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the backup command to 2008-12-30 22:03:47
RMAN-06004: the recovery catalog database ORACLE error: ORA-00904: invalid identifier
RMAN >
RMAN > #BACKUP # ARCHIVELOG delete all '% d_bkp_al_ % t_Set % s_Piece %p' entry FORMAT;
2 >
3 > # DELETE ARCHIVELOG until ' SYSDATE-7 ";
4 >
5 > # check if the database can be restored
6 > RESTORE DATABASE # VALIDATE;
7 >
8 > # check if controlfile can be restored
9 > #RESTORE # CONTROLFILE to ' / backups/admin/custpr/custpr_bkp_cntlfile.ctl' VALIDATE;
10 >
11 > # check if archivelogs for these past two weeks can be restored
12 > # RESTORE ARCHIVELOG FROM TIME ' SYSDATE-7' VALIDATE ';
13 >
14 > #-check all backups on backup media are intact
15 > # CROSSCHECK BACKUP OF DATABASE;
16 >
17 > #-display based on a list of files that need to be stored on the retention
18 > policy #. For this case study, the files that do not have at least 1 backups
19 > # will be reported.
20 > REPORT NEED backup.
RMAN retention policy apply to the order
RMAN retention policy is set to 7 days recovery window
Report of the files whose recovery needs more 7 days of archived newspapers
Days of files name
---- ----- -----------------------------------------------------
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of command report at 2008-12-30 22:03:48
RMAN-06004: the recovery catalog database ORACLE error: ORA-00904: invalid identifier
RMAN >
RMAN > #-remove unnecessary backups. This command deletes the backups based on the
2 > retention policy of #.
3 > # commented DELETE OBSOLETE - TSM not configured to remove on 68
4 > #DELETE # OBSOLETE;
5 >
6 > #-complete list of the existing backups
7 > LIST BACKUP;
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the list command at 2008-12-30 22:03:49
RMAN-06004: the recovery catalog database ORACLE error: ORA-00904: invalid identifier
RMAN >
RMAN > # end of file.
2 > * end-of-file *.
RMAN >
Published by: ORA_UMAIR on December 31, 2008 07:51No help is possible.
You publish a file of newspaper only, and can not see the command that failed.
Also you include, contrary to the recommendation in the post on Forums label, the complete version number of 4-digit.
This is important because they either has an error in your script that does not find RMAN or you hit a bug.-----
Sybrand Bakker
Senior Oracle DBA -
How to find databases registered in the recovery catalog.
I want to know how many registered in the recovery catalog databases
How can I find it?
Thank you!Dan wrote:
I want to know how many registered in the recovery catalog databasesHow can I find it?
Thank you!
Use the 'RC_DATABASE' in the catalog database
-
need to upgrade hdd 250 GB how I transferred all of the files and opperatting sys win xp sp3 new disk hard ad not lose any
Hello
You cannot transfer the operating system from one hard disk to another. But you can use the backup utility to backup data and restore it on the new hard drive.
Reference:
Install, reinstall, or uninstall Windows
http://Windows.Microsoft.com/en-us/Windows/help/install-reinstall-uninstall
How to use the backup utility to back up files and folders in Windows XP Home Edition
http://support.Microsoft.com/kb/308422
How to use the backup utility to back up files and folders in Windows XP Home Edition
http://support.Microsoft.com/kb/320820
How to use Backup to protect data and restore files and folders on your computer in Windows XP and Windows Vista
http://support.Microsoft.com/kb/309340 -
Google site search just keep loading forever on all sites that use it. But IE works fine on the same sites.
I'm using FF 11, but it has also been a problem in previous versions. Win7/64 with the latest updates on a computer laptop xps Dell 15z. CORE I5
Hello
Please check if this happens in a new profile. If it's good, you can later copy the necessary personal data of the old profile. Firefox stores your personal data and settings to another separate location of the files/folder. A new profile would default Firefox settings (Tools (Alt + T) > Options, and topic: config ) and usually also would be vacuum of Extensions and themes (appearance) in tools > Add-ons) and their parameters. In addition, a new profile would have no previous website stored data/settings etc, (Tools > clear recent history).
-
Hello
I was wondering how to disable all types of error messages on windows (XP/7/8/8.1) through registry through HKCU only.
I know that I can change on win 7/8
The HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows error report
DontShowUI to 1
and on win xp (is it possible to do this through HKCU instead of HKLM?)
HKLM\SOFTWARE\Microsoft\PCHealth\ErrorReporting
ShowUi to 0
But that doesn't have errors like "The DLL initialization failed", in order to correct these you will need to fix (nothing to do in HKCU)?
HKLM\SYSTEM\CurrentControlSet\Control\Windows
ErrorMode in 2
However, I need all doing just that only through HKCU. Are there other means directly or indirectly disable all sorts of error messages, preferably by HKCU HKLM not?
Another question, if it is not possible to disable the other error messages, is there a way to make the machine close more quickly, so that the error messages are not shown while the machine stops.
I tried on XP.
HKCU\Control Panel\Desktop
AutoEndTasks 1
HKCU\Control Panel\Desktop
HungAppTimeout 0
HKCU\Control Panel\Desktop
WaitToKillAppTimeout 0
It helped a bit but manages the error message is displayed, unless you set
HKLM\SYSTEM\CurrentControlSet\Control\Windows
ErrorMode in 2
but I need to make the changes through HKCU only.
Hello Mantas,
Welcome to the Microsoft Community Forum.
I wish to inform you that Microsoft does not encourage the registry change to disable the display of errors.
Your question of Windows is more complex than what is generally answered in the Microsoft Answers forum. It is better you post the same query in the TechNet community. There may be users who have the expertise in this area and could help you.
Please visit the link below to find a community that will support what ask you:
TechNet community
http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro
Hope the helps of information. Let us know if you need help with Windows related issues. We will be happy to help you.
Thank you
-
How to change type of police using InDesign scripting (Javascript)?
Hello
I need to change the font type of a document, InDesign using InDesign script (javascript). I found a few online references in the InDesign scripting guide and running extract next, gives me errors.
Delete existing preferences
app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences = NothingEnum.nothing;
app.findChangeTextOptions.caseSensitive = false;
app.changeTextPreferences.appliedFont = app.fonts.item ("DEVANAGARI MT");
App.Documents.Item (0) .changeText ();
Download the msg of InDesign server.
Error code: 1
Error description: changeText
The indesign file that is used to change the font is certainly not corrupt, cause the following script to export the file in .png works very well. Any help appreciated.
app.pngExportPreferences.exportResolution = 100.0;
App.Documents.Item (0) .exportFile (ExportFormat.PNG_FORMAT, PreviewDocument don't);
Hello
Try this 1-liner:
app.documents.item(0).stories.everyItem().appliedFont = app.fonts.item("DEVANAGARI MT");
Guess above specified police is available. Some disorders may begin with the name of the font, cause not always WYSIWYG.
To be sure how to refer to a specific font by its name - a console text and notice of runing ESTK select this option:
app.selection[0].appliedFont.name
Jarek
-
Can us refresh database using the recovery catalog?
Hi all, I need update the dev of database using the prod database backup, we have TSM server and database of separate catalog for storing backups. No, my doubt is, we can update database dev using catalog, which has the backup of all info the prod
In my previous organization, we used to copy the backup of the prod dev we restore and recover it in dev db. But in this organization, we have a TSM server that stores all backups of prod and dev.
Please tell me we can update dev db using info catalogue simply and without copying backups of prod? If possible how?
Thank you
Harish
user8596912 wrote:
Yes I know that the content of the rman script.
But we have not, so how can we be expected to comment on?
My question is that the connection to the rman is good or bad?
It would depend on the content of the script you do not think that we need to see.
In the end, you can determine whether this is good or bad by testing.
Because the rman is not connected directly to the target db prod.
Have you read the link I gave you?
I would limit for you: a database mirroring
The docs in detail how to duplicate a database
1 - active database
2 - from a backup WITH a connection target (the database prod)
3. from a backup WITHOUT a connection target (the database prod) but WITH a recovery catalog connection
4 - from a backup WITHOUT connection AND connection catalog recovery target (the database prod)
BTW, why you score your own messages as 'useful' to your own problem?
Maybe you are looking for
-
iPod Touch generation 5 will not 'sleep' mode
Anyone having problems with the last iOS 9.3.5 where your iPod Touch in WITHOUT entering the mode 'sleep'? The battery on my iPod Touch is draining that if she is constantly the same after pressing the button stop/market/sleep. My battery down to a
-
Anyone know why suddenly Quicktime does not work on my Windows 10 PC?
The only change Im aware of my system has been recently I updated my SecondLife (Firestorm v 4.7.7) client, and since then, no matter what I try, I can't Quicktime to run... OS: Windows 10 House (64-bit) CPU: AMD 8350 8-core GHz 4.00 MB: Gigabyte 990
-
I have Microsoft works on my computer and I don't know if I can use it really because I've never bought licenses. It didn't download it illegally or anything, it came on my laptop when I bought it in 2009. I also have microsoft office 2007 programs,
-
I can't send or receive MMS pictures. I did the settings > more > thing Internet Settings (download for internet and MMS settings), and my internet browsing is and has always been very good. If I turn off Wi - Fi and choose to navigate through 2G, th
-
Hello We want to make our website that has embeded audio player available to our BB users. I'm totally new to BB, so even don't know where to start. Currently, our pages Web is written in PHP and Javascript. The embeded player is Windows Media Player