Solved

DELETE archivelog until time '(sysdate -1/10)' backed up 1 times to device type disk;

Posted on 2012-03-28
2
645 Views
Last Modified: 2012-04-13
Can i use the below command in 8i.
0
Comment
Question by:dba1234
2 Comments
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 250 total points
ID: 37779578
I don't know.  Can you?

I suggest you try it on a test system and see.

From the docs I was able to find:
http://docs.oracle.com/cd/F49540_01/DOC/server.815/a67773/toc.htm

I don't see a straight 'delete' command.

From the little I searched for, looks that might be a 9i feature.
0
 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 250 total points
ID: 37780392
got this info from one of the forums, seems that you have to do sequence of steps in 8i to do this task...

$ cat /u01/scripts/cleanup_rman_arch_test2.sh
#!/bin/ksh
ORACLE_SID=TEST2; export ORACLE_SID
ORACLE_HOME=/u01/oracle8i/product/8.1.7; export ORACLE_HOME
PATH=$ORACLE_HOME/bin; export PATH
$ORACLE_HOME/bin/rman target username/password@TEST2 catalog rman/rman@rcat log=/u01/logs/cleanup_rman_arch_test2_log @/u01/scripts/cleanup_rman_arch_test2.rcv
exit

$ cat /u01/scripts/cleanup_rman_arch_test2.rcv
allocate channel for delete type disk;
change archivelog until time 'SYSDATE-7' delete;
release channel;

this is copied from here..
http://www.dbasupport.com/forums/archive/index.php/t-32982.html
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get the parent node - XMLTYPE 9 73
Oracle - SQL Parse String 5 34
Use of Exception to end a Loop 3 31
Help on model clause 5 31
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to recover a database from a user managed backup

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question