Solved

candidate disk

Posted on 2014-03-31
5
305 Views
Last Modified: 2014-04-06
How we will find the candidate disk..
want to find out the unused disk  
which command..
v$asm_disk  ----?
of lsdg from asmcmd

Please advice..
0
Comment
Question by:tonydba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
David earned 500 total points
ID: 39967418
Quick toss while I read for a better answer:

"SELECT
 NVL(a.name, '[CANDIDATE]') disk_group_name
 , b.path disk_file_path
 , b.name disk_file_name
 , b.failgroup disk_file_fail_group
 FROM
 v$asm_diskgroup a RIGHT OUTER JOIN v$asm_disk b USING (group_number)
 ORDER BY
 a.name;"

From http://oracleracdba1.wordpress.com/2012/10/12/how-to-add-disk-to-asm/
0
 

Author Comment

by:tonydba
ID: 39969833
Actually there is an error when I ran it

SELECT NVL(a.name, '[CANDIDATE]') disk_group_name
, b.path disk_file_path
, b.name disk_file_name
, b.failgroup disk_file_fail_group
FROM v$asm_diskgroup a RIGHT OUTER JOIN v$asm_disk b
on a.group_number=b.group_number
ORDER BY a.name;

Because of error I modified as above..

still not working
0
 
LVL 23

Expert Comment

by:David
ID: 39970238
Which error, where marked (run it in sqlplus and look for the parse mark *)?  You have permissions to select on the views?
0
 

Author Comment

by:tonydba
ID: 39970252
the query is displayed followed by   1 2 3 4 5.

no error messages..
0
 

Author Closing Comment

by:tonydba
ID: 39981672
yes unused disk
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

739 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