zlakhani

zlakhani
Role: Registered User (what's this?

Registered Users can edit pages, add images, and join discussions.

Read more about site and user permissions on this wiki at Wetpaint Central.

)
Member since: Nov 26 2007, 2:48 AM EST
Friends: None
Compliments: None


This member has not added to their profile yet.

Send them a message to ask them to update it.


Latest page update: Nov 26 2007, 2:48 AM EST

Anonymous  (Get credit for your thread)


Started By Thread Subject Replies Last Post
zlakhani Archive File(s) Gap b/w 0 Nov 28 2007, 11:09 PM EST by zlakhani
zlakhani
Thread started: Nov 28 2007, 11:09 PM EST  Watch
* Run the following query to find out the Archive Log Sequence gap between you Dr-Site and Primary Site.
* run this query on DR-Site - (where the database is usually in Mount mode).
* It also helps to you find out, what was the last successful archive file (sequence number) shipped to your DR-Site.


suitable to run on 9i and 10g env's.

SELECT high.thread#, "LowGap#", "HighGap#"
FROM (
SELECT thread#, MIN(sequence#)-1 "HighGap#"
FROM (
SELECT a.thread#, a.sequence# FROM (
SELECT *
FROM v$archived_log ) a,
(
SELECT thread#, MAX(next_change#) gap1
FROM v$log_history
GROUP BY thread# ) b
WHERE a.thread# = b.thread#
AND a.next_change# > gap1
)
GROUP BY thread# ) high,
(
SELECT thread#, MIN(sequence#) "LowGap#"
FROM
(
SELECT thread#, sequence#
FROM v$log_history, v$datafile
WHERE checkpoint_change# <= next_change#
AND checkpoint_change# >= first_change#
)
GROUP BY thread#
) low
WHERE low.thread# = high.thread#
AND "LowGap#" < "HighGap#"
/
Do you find this valuable?    
zlakhani ALL ABOUT TEMPORARY TABLESPACE 0 Nov 28 2007, 10:57 PM EST by zlakhani
zlakhani
Thread started: Nov 28 2007, 10:57 PM EST  Watch
The following exercise will guide you through Creating, Altering, Managing TEMPORARY TABLESPACE.

* The exercise will help you understand, how to switch from your existing Temporary Tablespace to a New Tablespace and vice versa.
* The exercise also demonstrate adding a new Temporary Tablespace datafile(Tempfile).
* Filesystem paths shown in the example are unix/linux platform base.


CREATE TEMPORARY TABLESPACE MYTEMP
TEMPFILE '/data/oradata/d_mytemp.dbf'
SIZE 4096M AUTOEXTEND ON MAXSIZE 5048M;

Alter database default temporary tablespace MYTEMP;

ALTER TABLESPACE TEMP ADD TEMPFILE '/oradata/data/add_temp' reuse size 1024M AUTOEXTEND ON MAXSIZE 2048M;

drop tablespace TEMP including contents and datafiles;

CREATE TEMPORARY TABLESPACE TEMP
TEMPFILE '/oradata/data/temp.dbf'
SIZE 250M AUTOEXTEND ON next 512K maxsize 1024M
Extent management local
Uniform size 256K;

alter database default temporary tablespace TEMP;

drop tablespace MYTEMP including contents and datafiles;

Hope you will find it helpful.
Cheers,
Zahid
1  out of 5 found this valuable. Do you?    

Friends


zlakhani has no friends yet. You can always add them as your friend.