- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Check database SQL Statement?
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
The forum board you are trying to access is permanently deleted.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2002 11:20 PM
02-26-2002 11:20 PM
Any one know the SQL statement if I want to check how many database, what database, what table inside the database and the owner of database inside the oracle DB server?
Thousand thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 12:08 AM
02-27-2002 12:08 AM
SolutionAt the o/s level (unix) you can know how many database instances are running by follwing command
$ ps -ef | grep pmon
--- It gives you the SID of all the database instances, which are running now.
Generally the owner of database will be Oracle.
goto
# su - oracle
# ls -lt
If you want to know, what tables the database containts, then you'll have to login to database.
$ sqlplus username/password@connect_string
or
$ sqlplus username/password
sqlplus> select * from user_tables;
Hope, it may helps you!!!
Regards
Syed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 12:58 AM
02-27-2002 12:58 AM
Re: Check database SQL Statement?
There is a file /etc/oratab which gives information about the database instances on the machine.
It contains 1 line for each instance, with 3 fields on each line.
1st field is the SID name
2nd field is the Oracle home directory
3rd field is Y or N for whether database should be started when machine is booted
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2002 01:08 AM
02-27-2002 01:08 AM
Re: Check database SQL Statement?
Did you try to get the Oracle Enterprise Manager ? This tool ( standard no extra packages ) should help to find and log all the necessary info.
Rgds
Alexander M. Ermes