nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Oracle "show databases" list

This is a discussion on Oracle "show databases" list within the Databases servers forums, part of the Mastering Servers category; How do I list all databases in Oracle 9i or 10i? TIA...


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 05-18-2007, 02:10 AM
raj raj is offline
Contributors
User
 
Join Date: Jun 2005
Location: Hyderabad
Posts: 151
Rep Power: 4
raj is on a distinguished road
Default Oracle "show databases" list

How do I list all databases in Oracle 9i or 10i?

TIA
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-18-2007, 02:21 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default To List or view database list under Linux / UNIX oracle

To List or view database list under Linux / UNIX oracle use /etc/oratab file using cat command:
Code:
cat /etc/oratab
To just get database list, enter
Code:
cat /etc/oratab|grep -v "^#"|grep -v "N$"|cut -f1 -d: -s
Or in a shell script:
Code:
#!/bin/bash
DBS=$(cat /etc/oratab|grep -v "^#"|grep -v "N$"|cut -f1 -d: -s)
for d in $DBS
  echo $d
done
So all databases on your server should be listed in the ORATAB file.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks

Tags
/etc/oratab , linux , oracle , oracle show databases , oratab , shell script , unix


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Redhat: Up2date " permission denied" while root guarrand Getting started tutorials 2 07-03-2008 12:50 PM
How does "route add ..." fetch the interface automatically Madhu Linux software 2 04-24-2008 06:28 PM
Does Redhat have "what" utility which can be used to display identification Info? DCAO Linux software 2 10-30-2007 08:23 PM
[Commercial] SafeSquid "SPEED-BOOSTER" 4.2.0 Released httpproxy Networking, Firewalls and Security 1 09-26-2007 09:05 PM
"permission denied" - Installing Lighttpd on RHEL 4 b3n Web servers 3 08-29-2007 08:45 PM


All times are GMT +5.5. The time now is 03:46 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36