- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Check database SQL Statement?
Operating System - HP-UX
1752273
Members
5053
Online
108786
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
Dear All,
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!
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!
Jacky Wong
Solved! Go to Solution.
3 REPLIES 3
- 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
Solution
Hi,
At 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
At 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
Let's share the great thing "THE KNOWLEDGE"
- 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?
Hello Jacky,
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
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
If you never make a mistake you'll never make anything.
- 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?
Hi there.
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
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
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP