Command to show tables

Is there in PL/SQL a command which shows database objects?
In psql (the postgresql' sqlplus-type application) there is a command \d which acts this way; \dt - show tables \du - show users \df - show functions, trigger etc.
thank you.

All will be SQL operations.
SQL> select object_name, object_type from user_objects where object_type = 'TABLE' ;
SQL> select * from all_users ;
SQL> select object_name, object_type from user_objects where object_type = 'FUNCTION' ;

Similar Messages

  • Command to show table indexes

    It's driving me nuts that I can't find it. I know it's probably really simple. I'm using SQL Plus and SQLDeveloper.
    Thanks!!

    An alternative to the (USER|ALL|DBA)_INDEXES views is the DBMS_METADATA package; specifically the GET_DEPENDENT_DDL(object type, parent object name, parent object schema) function.
    SQL> SET LONG 2000000
    SQL> SET LONGCHUNKSIZE 120
    SQL> SELECT DBMS_METADATA.GET_DEPENDENT_DDL('INDEX', 'SPECLOG', 'TEST999') FROM DUAL;
    DBMS_METADATA.GET_DEPENDENT_DD
      CREATE INDEX "TEST999"."SPECLOG_LINKED_ALIQDRV_IX" ON "TEST999"."SPECLOG" ("LINKED", "ALIQDRV")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "TEST999"
      CREATE INDEX "TEST999"."SPECLOG_PARUSPECID_IX" ON "TEST999"."SPECLOG" ("PARUSPECID")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "TEST999"
      CREATE UNIQUE INDEX "TEST999"."SPECLOG_PK" ON "TEST999"."SPECLOG" ("USPECID")
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "TEST999"And if that you can't cope with that much data, you can ask for less.
    SQL> EXECUTE DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM, 'STORAGE', false);
    PL/SQL procedure successfully completed.
    SQL> EXECUTE DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM, 'SEGMENT_ATTRIBUTES', false);
    PL/SQL procedure successfully completed.
    SQL> SELECT DBMS_METADATA.GET_DEPENDENT_DDL('INDEX', 'SPECLOG', 'TEST999') FROM DUAL;
    DBMS_METADATA.GET_DEPENDENT_DD
      CREATE INDEX "TEST999"."SPECLOG_LINKED_ALIQDRV_IX" ON "TEST999"."SPECLOG" ("LINKED", "ALIQDRV")
      CREATE INDEX "TEST999"."SPECLOG_PARUSPECID_IX" ON "TEST999"."SPECLOG" ("PARUSPECID")
      CREATE UNIQUE INDEX "TEST999"."SPECLOG_PK" ON "TEST999"."SPECLOG" ("USPECID")

  • Oracle - Show tables - Short result

    Hi,
    Thank you for reading my post.
    Here is my question:
    When I execute the following command:
    SQLPLUS>> select * from tab;
    I get 4201 rows.
    The database I am using is "demobld.sql".
    This database contains - among the above huge number of tables -
    the following tables:
    - EMP,
    - DEPT,
    - BONUS,
    - SALGRADE,
    - DUMMY.
    I am looking for a command (like "SHOW TABLES" in MySQL) which
    would show me these tables only.
    Can you tell me how to do that?
    Thanks and all the best,
    Lmhelp
    [Oracle Database 11g Enterprise Edition Release 11.1.0.6.0]
    P.S. At the end of the following webpage:
    http://www.orafaq.com/wiki/SQL*Plus_FAQ
    the result of the command "select * from tab;"
    is only three lines long.
    It looks like it is an excerpt of the command output...
    but this is the kind of result I wish I could get.

    Hi,
    Thank you for your answer.
    Would you mind giving me the exact query?
    I am not sure about what you mean about "comparing one DB features to another".
    Are you thinking about my writing about MySQL?
    If so, I think you are wrong :) : why?
    1) because it is normal for someone to try to use one's previous knowledge in the
    database field, not doing so would be silly and waste ;
    2) and moreover, I DO think it is interesting to compare one DB features to another.
    I wish I had found a good comparison between MySQL and Oracle.
    It would have helped me a lot.
    You know... some kind of tutorial for Oracle beginners who are used to MySQL...
    I can admit I didn't compare the right things but I am trying to.
    I am not judging Oracle. I don't care about that. I only want to understand as
    quickly as I can :).
    What I want to do with Oracle, I already know how to do it with MySQL.
    So I am trying to do "exactly" the same.
    I know Oracle is powerful, I am not questioning that.
    I also know some MySQL drawbacks.
    I am not the inventor of these RDMS, so I wont defend any of them...
    I am sorry if you misunderstood me.
    Best regards,
    Lmhelp

  • Delete Command in Internal table

    Hi Friends,
    Currently i am using  DELETE command in internal table. My main requirement is delete the records in internal table based on the select -options given in Selection screen. 
    Synatx is given below.
      DELETE i_list WHERElifsk NOT in S_lifsk[].
    It is working fine if we give positive values  ie EQ 24 etc.
    if we give negetive values if NE 23(in select options) here
    sy-subrc is failing.
    Can any one kindly suggest.
    Regards,
    DVNS.

    Hi DV
    Its so simple... u r requirement is to delete all the entries which are not in the select options.
    Ur sintax is working correct.  Because, even if u hit a database table with select querry using this select option,  it will fetch all the positive entries and excludes all negative entries....
    if still u feel problem is persisting...  then fetch the lifsk from db table using this select option into an internal table and then filter how ever u want.
    Venkata Raju Duggirala

  • Solaris command to show all network interfaces in a server (plumb/unplumb)?

    Hi there,
    Is there a Solaris command to show all the network interfaces in a server
    (plumb/unplumb etc...).
    I have a V880 that has an eri0 on board, plumbed up. It also has a couple
    of ge0, ge1, and ce0, and a qfe card.
    ifconfig -a only shows eri0.
    (I am using something like "dladm show-link", but this is really for
    the link-aggregation).
    How do I show the remaining network interfaces?
    Thanks
    Tony

    You can see all installed interfaces by running 'grep network /etc/path_to_inst'. An example:
    grep network path_to_inst
    "/node@1/pci@8,600000/network@1" 0 "ge"
    "/node@1/pci@9,700000/network@1,1" 0 "eri"
    "/node@1/pci@9,700000/pci@2/network@0" 0 "ce"
    "/node@1/pci@9,700000/pci@2/network@1" 1 "ce"
    "/node@1/pci@9,700000/pci@2/network@2" 2 "ce"
    "/node@1/pci@9,700000/pci@2/network@3" 3 "ce"
    "/node@1/pci@9,600000/network@2" 4 "ce"
    shows, ge0, eri0, ce0 - ce4

  • [solved]is the a command to show which video driver is loaded?

    really quick one, is the a command to show which video driver is loaded?
    Last edited by ninjaprawn (2012-02-26 19:44:05)

    Pres wrote:You could use "lspci -v" and look at what driver is in use under your VGA controller.
    that did the trick... thanks

  • Ipad stuck on logo and a command prompt shows up and then freeze.

    my Ipad suddenly blackout, the screen is totally black but the backlight is still on, i can't seem to shut it down even I press the power buttons in a long period of time, then I waited more than a day until it runs out of battery to shut down itself. when I turn it on the apple logo show up the the backlight becomes dim and a command prompt shows up on the screen at left corner, then it restart and keep doing on and on until the apple logo only pops out the freeze and a couple of minutes later it backs-out and have to wait for it to runs out battery again. pls. help.

    Your iPad probably might to be serviced or replaced. I don't think that there is much in the way of troubleshooting that you can do other than to restore to factory settings. You will end a computer running iTunes in order to restore to factory settings. If you can't attempt this for whatever reason, make an appointment at an Apple Store and ask for their help.
    Use iTunes to restore your iOS device to factory settings

  • My Left Command key shows the desktop and can't be used for other functions

    My Left Command key shows the desktop when pressed in.
    So if I try and copy (command + C) I end up staring at the desktop....This only happens with the left key. When checking System Preferences, none of the settings in keyboard preferences seems to be relevant. I have reset the keyboard setting to default, but it makes no difference. Also this only happens with my user, when changing user on same laptop I get the normal behaviour for the Left command key
    I am using a Macbook Pro i7 (2011) Yosemite and am upto date with all software

    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    Try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear and again when you log in. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don’t do them all at once.
    Safe Mode - About
    Safe Mode - Yosemite

  • I used a terminal command to show the Library in the User folder, and now the Finder is behaving erractically.  Can anyone tell me how to reverse the show library terminal command?

    I used a terminal command in Lion to show the LIbrary in the Users folder, and now the Finder is behaving erratically, hanging up and becoming almost paralyzed.  Can anyone tell me how to reverse the terminal command for show Library.  The command I used was:
    chflags nohidden ~/Library/

    Showing the Library folder will not cause the problem you've described. Nevertheless:
    chflags hidden ~/Library
    will hide the folder. To reveal the folder:
    chflags nohidden ~/Library
    Note, there is no "/" after Library.

  • How to restrict CTRL+K command to show the shortcuts

    Hi All,
    Have there anyone to help me "How to restrict *CTRL+K* command to show the shortcut list?". I want to stop this list to show all.
    And also to customize the key commands.
    Arif

    I'm assuming you're using forms on the web.
    If so, you need to edit the fmrweb.res file that sits in your $ORACLE_HOME/forms directory.
    This file will has all the keymappings for the function keys and you can customise them in there.
    To stop Ctrl-K working you will need to comment out the line for Ctrl-K/Show keys by placing a hash (#) sign at the beginning of the line.
    Further instructions can be found in the file.
    Another tack to take would be to introduce a KEY-OTHERS trigger at form level that gives a message such as 'That key not used here, please...', you will then need to explicitly define triggers for all keys that should be used, for instance a KEY-NEXT-ITEM trigger that contains the code 'NEXT_ITEM;'
    hope this helps, please mark as correct if it does.
    Edited by: Ady Keeling on Jun 9, 2010 1:13 PM

  • Is there a command to "Show in Finder" when looking an Adobe Acrobat file?

    Is there a command to "Show in Finder" when looking an Adobe Acrobat file?
    I have a lot of file with almost exactly the same names, and it gets very tedious to have to open Finder and search for it.

    Ah yes, your aim must be exact! Incidently, as long as we're there in the title bar, there is another little secret up there: the wee little "proxy" icon in front of the name. You can actually do things with it. For instance, you can click and hold (pause for a half of second until it turns gray), now drag it to the Desktop, and you'll get an alias to the file. If you press the Option key while you drag you'll get a new copy of the file. Wait, there's more! Say you have a Safari window open, to this page perhaps, and you want to save the Safari page to the same folder as the file you have open in Preview. Bring up the Safari save dialog sheet, grab the proxy icon on the open file, drag 'n drop it into the Safari Save navigation section, and presto, the folder the file is in will be the one displayed in the Safari save pane. You can do this with the proxy icons anywhere, including those in a Finder window. So if you have a folder open, you can drag its proxy icon into the save or open navigation section of a program, and there you are. Saves you time navigating to something you already have open in one place (the Finder) from your program. I use it all the time.
    Francine
    Francine
    Schwieder

  • Whats the key command to show which HD to boot from?

    Just installed Leopard but I didnt have my external firewire HD's disconnected and now I'm getting that awesome blue screen. I installed Leopard to a 2nd HD in my case.. so.. what is that key command to show what HD to boot from when the machine boots up?

    So.. Uh... I see that Apple is saying that these blue screen problems are when there is "incompatible software" on the computer.. Uh. I'm installing this to a 2nd HD as a full install. How can software from the other HD cause problems?

  • Count  the total of SELECT command to particular table

    Hi,
    Does anyone know how to count SELECT command for particular table in certain period, like one day / week / month ?
    Regards,
    Alianto

    Assuming you have a date column to differentiate, then something like:
    SELECT COUNT(*)
    FROM table
    WHERE date_column BETWEEN TO_DATE('20030119 00:00:00','yyyymmddhh24:mi:ss') AND TO_DATE('2003011923:59:59','yyyymmddhh24:mi:ss')will count records for Jan 19. Just substitute the appropriate range for what you want to count for the others.
    TTFN
    John

  • Prevent a command to show up in the command history

    Can I prevent a command to show up in the command history?
    ITextModelCmds::TypeTextCmd does what I want but since I'm calling that command to update some text in order to stay synced with a change the user did, I don't want it to show up in the command history as an entry.
    A command sequence is not the solution as the command is executed in an observer which is notified on the users change.
    I want to circumvent reimplementing TypeTextCmd on my own.
    Regards,
    Martin

    I resolved the problem by regenerating the PDF -- by printing to Postscript and then distilling. I'm now in the process of adding the file information in Properties and making bookmarks again. I trust these additional things don't break the store again.
    Apparently there was some problem somewhere that my store was aware of but that InDesign, Acrobat, and ACS were unaware of.

  • 3850 command to show wireless user dACL

    Hi,
    I am using 3850 and 5760 with converged access mode.
    There is also ISE to provide dACL for wireless user.
    In 3850, I can issue "show access-list" to see the dACL from ISE.
    But I can't be sure which ACL apply to which user when there are more than one dACL.
    I have tried command like "show wireless client mac-address MAC detail" but didn't see anything related.
    I can only achieve that by checking logs on ISE.
    Is there any command I can do for this purpose?
    3850 and 5760 version : 3.3.0
    ISE version : 1.2
    Thanks!!!

    Hi Mason,
    I know that for switch IOS the command "show authentication session interface INTERFACE" shows the dACL that is applied to this port. I think the new command for the IOSXE devices is "show access-session mac H.H.H detail" is the corresponding one which should show the dACL that was applied to that MAC-address.
    Please see if that works for you.
    Best regards,
    Patrick Meyer

Maybe you are looking for