Dbms_job and rman
Hi,
I am interestd to know whether it is possible to execute an RMAN stored script by using dbms_job to schedule the job.
thanks,
Shai
No, it is not possible. You need to use
a scheduling tool to run RMAN scripts.
Use one of the following:
1) "cron" on UNIX
2) Oracle Enterprise manager
3) Third-party scheduling tool (like ECS/Control-M)
4) Some backup software (like Legato) also has scheduling capabilities
Regards,
Sev
Similar Messages
-
Migrating Non ASM, Non RMAN to New Server with ASM and RMAN - Possible?
We currently have a database ( Oracle 10g R1 ) on a Sun Solaris server that is NOT using ASM or RMAN. The database is about 300GB. We are getting a new server and we want to install Oracle 10g R2 with ASM and RMAN and migrate the database.
I have seen the documentation on migrating non ASM to an ASM server but the methods all use RMAN. Is it possible to migrate to an ASM database without using RMAN? Would datapump import/export work if I created a new database on the new server with all the same tablespaces? Or, do I have to bite the bullet, install RMAN on the old server and do the backup?
Thanks.If you're not using RMAN that doesn't mean you can't use it to perform a single backup, rman is contained in every oracle RDBMS installation version 10G or higher.
this is only a sample of how to do it
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '<file_system_path>/%U.DBF';
--first we allocate the channel default channel.
RMAN>RUN
ALLOCATE CHANNEL DEFAULTCHANNEL TYPE DISK;
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
BACKUP DATABASE;
SHUTDOWN
}then once you have it, you can do what you want.
It should also be possible to manually restore the database from the original datafiles but it's better to follow the solution involving RMAN.
Bye Alessandro -
Block corruption problem in alert and rman/dbv no show errors
Hello, I'm new in Oracle's world. I have one problem with Oracle 10.2.0.4 (RHEL 5.6) x64. Archive redo-log enable
In the alert.log, three days ago show (the server have kernel panic & rebooted):
Mon Sep 24 18:18:17 2012
Hex dump of (file 17, block 669888) in trace file xxxxxxxxxx.trc
Corrupt block relative dba: 0x044a38c0 (file 17, block 669888)
Bad check value found during buffer read
Data in bad block:
type: 6 format: 2 rdba: 0x044a38c0
last change scn: 0x0000.14eb5309 seq: 0x1 flg: 0x04
spare1: 0x0 spare2: 0x0 spare3: 0x0
consistency value in tail: 0x53090601
check value in block header: 0x6ea3
computed block checksum: 0x2
Reread of rdba: 0x044a38c0 (file 17, block 669888) found same corrupted data
Mon Sep 24 18:18:19 2012
Corrupt Block Found
TSN = 23, TSNAME = TABLE_TSD1
RFN = 17, BLK = 669888, RDBA = 71973056
OBJN = 86908, OBJD = 86908, OBJECT = SYS_C0040110, SUBOBJECT =
SEGMENT OWNER = SCHEMA1, SEGMENT TYPE = Index Segment
Yesterday, we detected this error because SQL don't execute.
The error repeat 47times and there is 6 different file-block combination (4 index of schemas, 1 of sys and ¡2 tables!)
First, I launched expdp and exp of the one problematic schema. The export was fine, no errors while exporting, but in the alert.log show one block corruption. Should exp and expd show error and stop?
Next, I used dbv and verify all dbfs. Only show 2 blocks error in two datafiles (indexes).
Next, I used RMAN:
A) check database: no error.
B) validate database: error in two blocks (logical error) and different from the 6 in alert.log. This two blocks are indexes.
I re-create this two indexes. When i re-create, the block error disappear (not inmediate, suppose that disappear when block was rewrite). Now dbv and rman show no error.
I have read one note about types of error, other about procedures if db is in archivelog/noarchivelog. Also if object is index or table. But I find anything about auto-repair corrupt blocks in Oracle or why now the 6 block error are solved. I don't know if two tables with two block corrupt lost rows or not.
Appreciate any help.
RegardsHello Fran. Result of query before rebuild problematic INDEXES:
SQL> select * from V$database_block_corruption;
FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTIO
3 98857 1 390928740 LOGICAL
9 48632 1 390325900 LOGICAL
When I ran RMAN first time to check blocks, it filled V$database_block_corruption with two bad blocks. Different from the 6 errors from alert.:
RMAN> backup validate check logical database;
Error backing up file 9, block 48632: logical corruption
Error backing up file 3, block 98857: logical corruption
I extracted index name from each block and I re-created it. Also, I created a temporary table in tablespace's datafile to fill blocks empty. Problem solved. Rman / dbv show no error.
I'm searching for similar experiences and found: Re: Data in bad block
First 6 bad checksum errors in alert.log disappear with any visible problem?
Can I sure that DB is fine if RMAN and DBV show no errors?
Thank you very much
Edited by: user7755509 on 27-sep-2012 5:43 -
Can I do online backup / RMAN together?
I want to shedule both online back up and RMAN running on everyday..
Is there any known issue by doing this?Hi,
Yes you can do but what is need to use two method for backup.
is there anything special reason.
regards
Taj -
Oracle Backup End to End Automation with BRBACKUP and RMAN
Hi,
We are about to implement a Oracle on mySAP 2004 or 2004 i.e. either NW2004 or NW2004s. Currently we are on DB2 UDB.
We are going to use legato for backup.
legato networker module (I guess this is module built for BACKINT) for SAP is too costly, so we are looking at alternatives for backup using legato without using networker module.
We have virtual tape library (disk that emulates as tape library). we plan to keep 30 days/versions of backup there.
Can we use BRBACKUP and RMAN to achieve end to end backup automation without using networker module by using the BRBACKUP delivered options and integrating to RMAN.
I do see BRBACKUP options like tape_box and pipe_box. Are these will be useful to achieve this.
Other question is do we really need to integrate with RMAN. What are the advantages.
So far I see the advantages with RMAN are 1. incremental backups. 2. Online backups are handled more consistently than normal.
Appreciate your information.
Thank you,
Ravi Gandavarapu.Hi Jason,
Yes, we have SAN storage. Also thinking to use split-mirror for production.
Do this need legato networker module. Or we can put a script without out the module also?
>>There is one little complexity to this but if you're interested I'll explain it. <<
Would you please explain what it is ?
Again for my dev and qa systems we are not planning split-mirror.
My plan is to back them up straight to VTL (disk based). Do you think using RMAN here helps (because of incremental) ?
I was recently going through 10g features. Looks like 10g has a feature that you can merge incremental with level0. Does brbackup supports this?
Appreciate your info.
Ravi Gandavarapu. -
Hello,
Can logical export (exp) and RMAN backup be executed at the same time in both UNIX or Windows platforms??
Thanks.Can logical export (exp) and RMAN backup be executed at the same time in both UNIX or Windows platforms??yes
-
User managed backup and rman oralce 10g
hi guys
what are the enhancement of user managed backup and rman in oralce 10g
would u pls tell me in understandable manner
thanks in advanceHi,
what are the enhancement of user managed backup and rman in oralce 10g
would u pls tell me in understandable manneRefer below link
http://dbataj.blogspot.com/2008/05/rman-versus-user-managed-backup-part-i.html
Hope helps.
Regards,
X A H E E R -
EM and RMAN repository...
I need some more clarification on something.
I know Enterprise Edition allows setup of Enterprise Manager repository and RMAN repository. Can those be setup on a different box then the one where the main database is? I ask this because I want to have some redundancy by not using the same box for monitoring and backups.Hello,
YOu can setup grid control and monitor not only one but several database server from it. On db server you just have install agent to talk to grid control and you will be in business.
Regards -
Can i change sqlplus and rman executible files rights in Oracle_home/bin
can i change sqlplus and rman executible files rights in Oracle_home/bin for security reasons, like following
chmod 750 sqlplus
chmod 750 rman
what will be the side effects of thisNote: My advise in based on Oracle Recomended files permissions ratherr the mentioned 750 file permission
To answer your question, I use examples like ensuring that oracle software owner (and related oinstall group) have discretory access to datafiles, controlfiles, redologs, hence using 640. Also that files like $ORACLE_HOME/bin/oracle (and related DBA group) are run by the software owner regardless of who executes it, hence using 6751. And others like trace files which contain sensitive hex dumps that you do not want others to see, hence using 640
So by "various processes and access permissions", I meant relateding to batch and users. -
Primary RAC database hung on sqlplus as sysdba, dgmgrl and rman target
I need urgent help here, our qa environment is two nodes RAC primary, and two nodes standby.
Standby environment is ok, so far works, but no entries added to alert log.
however on primary rac, i cannot sqlplus to the db, and rman target hung, and dgmgrl hung.
I tried to srvctl stop database -o abort, it just hung there.
please help me to get that resolved.
Thanks in advance.982335 wrote:
I need urgent help here, our qa environment is two nodes RAC primary, and two nodes standby.
Standby environment is ok, so far works, but no entries added to alert log.
however on primary rac, i cannot sqlplus to the db, and rman target hung, and dgmgrl hung.
I tried to srvctl stop database -o abort, it just hung there.
please help me to get that resolved.
Thanks in advance.check the primary alert log for error and paste here.
also do network connectivity test....e.g
lsnrctl status
from a client system do:
ping primary_ip
tnsping primary_tns
always make sure Abort and killing OS process is your last option!
Tobi -
Hello,
I have 2 disctinct servers.
oracle 10gr2 in each one with the same linux red hat 4 version.
the second server is just to TEST if the backup create with the first one, works fine.
So the install in each server is exactlly the same...
same files, same path etc.
Scenario:
1 from srv one I execute a full backup with RMAN
2 I copy the file in server 2
3 I move a datafile in order to create an error
4 I test : restore database in server 2...
I get the followin error:
RMAN-03002: failure of restore command at 02/24/2008 21:15:37
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 8 found to restore
and this command return no result:
RMAN> list backupset;
RMAN>
the file created with server 1 have been copied in the declared path into server 2...
I have execute a crosscheck backup too
RMAN> crosscheck backup;
using channel ORA_DISK_1
RMAN>
Must I copy the controle file too? in this case will I have an inconsistent error?
Thanks to help
CheersYou must have
controlfile autobackup on
(If you don't change the format it will be in $ORACLE_HOME/dbs, and the format will be c-<database id>-<yyyymmdd>_<piece>.ctl).
You must copy that file, as it has information about your most recent backup, the backup you just made.
Hth
Sybrand Bakker
Senior Oracle DBA -
NEED HELP!!!! Logical Standby and RMAN.
Hello,
I have a Data Guard env setup on win 2000 with 9.2.0.4.
I now have primary and standby. I was wondering if I create a logical standby to achieve transparent application failover. What I am saying is if the primary node dies, then in tnsnames I want to point to the logical standby, since it is an open database, the users can still perform without knowing the db went down. Then if we indeed need a failover we can failover to the physical standby. This would ensure availability without having to implement RAC or AQ, Right? Also, I read that you should create rman schema (recovery catalog) on standby db. Any thoughts?Were you able to figure this one out?
I have a similar configuration as you - the same motherboard and an eVga Geforce 3 6600 fanless. With the latest BIOS (3.8) and this video card, the system will not go into Standby completely. I hear the HDD head park and the video goes black, but the LEDs on the front of the PC chassis and the case/PS fans do not stop. Pressing the button to bring the PC out of Standby, rather, whatever state it is in, works. -
Duplicate Database and RMAN-20208
I'm trying to duplicate an old backup into an auxiliary database. Both the backup and auxiliary are 10g. When I run the following in RMAN:
run {
set until scn 41429334;
duplicate target database to aux;
}I get this error:
executing command: SET until clause
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of set command at 05/17/2010 08:54:26
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20208: UNTIL CHANGE is before RESETLOGS changeI'm trying to duplicate from a consistent (cold) RMAN backup and there have been a few OPEN RESETLOGS commands applied to the database as it's a development environment. Is there a way I can get around this issue in the duplicate command. I'd really like to avoid copying over the existing environment as it's currently under heavy use. Any suggestions, links, answers would be appreciated.
Thanks,
JohnNo, I believe you will get the same error. The cause of the problem is that a RESETLOGS operation was performed after the backup was created so the control file isn't aware of any pre-RESETLOGS operations. Even if you use a Recovery Catalog DB, you'll still get this error.
-
Is there any way to hot backup of a tablespace without ARCHIVELOG being set to true? Or must I hot backup each individual datafile instead of the whole tablespace? It has been decided here that archiving will not be used so I'm kind of in a bind about this. Or am I doomed to cold backups only?
Thanks for any information.
Thomas NelsonWe've also got a test database in NOARCHIVELOG. We decided to
take the database down from 'open' to 'mounted' (shutdown +
startup mount) and perform a regular full RMAN backup before
opening the database again. Is this the recommended path?
Regards,
per -
Block Media Recovery and RMAN Incremental Level 1 backup
Hi
I have read somewhere that Block Media Recovery will not work if a database is backed up using rman incremental 1. Is this true, and if so is there a work around?
I cannot seem to find this in oralce's documentation.
Regards
MeHi,
1) is Full Backup = Incremental level 0 backup?
Yes
2) When oralce say BMR does not work with incremental, will it work in the case I put forward. becuase Im doing an incremental 0...
But does you have the Archive logs available.. ?? If yes then it will Support.
3) Im my case will BMR work...that is use Incr level 0 on Sunday and then use archive logs for mon, tues etc
Yes, I believe.
@Hemanth .. am I right.. ?? Wait for your inputs...
- Pavan Kumar N
Maybe you are looking for
-
can someboy please help? ive tried EVRYTHING i possibly could
-
Debugger and formatter disappeared - reverting to previous release
Neither the Debugger or the SQL Formatter are functional in release 0897. The lack of the debugger makes it pretty much useless. I am reverting to the previous release. You need to examine your QA practices.
-
I just bought a new mac book pro. I would like to access all my purchased games for mac that I made on my iMac. How do I do this?
-
Hi all. The problem is to calculate the Date, that is less that the current in Edit Column Formula window in Answers. Column formula like CURRENT_DATE - 1 generate error [nQSError: 10058]...[nQSError: 22023] Arithmetic operation is executed for not n
-
Hi, I am having problem with my PC54G and my D-Link AirPlus Extreme G 2.4Ghz DI-624 wireless router. The PC54G is unable to detect the wireless connection. I have updated the updated driver for the network card. I am using Windows XP professional. Th