LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-21-2012, 09:49 AM   #1
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
Question oracle query?


Hi All,
This question is Oracle related.
I have couple of tables in the databases.I dont know which table has the value that I am intrested in, it can either be a coloum name or it can be a value in some coloum of the table in the database.
Now I want to exact table and the database.That has this particular attribute/value.Is there a grep like functionality or an command in sql which I can be used to search the database.Please let me know?

Thanks,
 
Old 06-22-2012, 03:50 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
See here.
 
Old 07-19-2012, 04:55 PM   #3
dgodbey
LQ Newbie
 
Registered: Jan 2006
Location: Bel Air MD
Distribution: Fedora
Posts: 16

Rep: Reputation: 1
Everything in Oracle lives in a table. And they call the whole tamale the data dictionary.

So, you can find a lot looking around at the dictionary. If you are dba, the following query brings back quite a bit.

select table_name from dictionary;

The tables live in tabs. There is all ALL_TABLES or USER_TABLES.
Then the columns. Table name COLS

DESC COLS
DESC TABS

Play around a bit. Let me know if you need more.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with storing oracle sqlplus query output shell script rockf1bull Red Hat 0 12-04-2011 11:47 AM
[SOLVED] Passing variable to oracle query with PHP angel115 Programming 1 07-18-2011 06:45 AM
Oracle query on windows investmentbnker75 Programming 4 11-26-2008 11:32 AM
oracle query script investmentbnker75 Programming 1 11-15-2008 09:41 PM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration