SQL*PLUS help to query tables

Is it possible to query tables of other users from a dba account?
My problem is that when i connect to sqlplus using:
sqlplus system/manager@mymachine
I can only see my tables... I cannot see the tables of other users of the same database... What is the correct syntax of doing it? (Is there a good newbie doc about sqlplus?)

Yes.
select owner, table_name from dba_tables;
(for example)
OWNER TABLE_NAME
XYZ123 MYTABLE
desc XYZ123.MYTABLE;
select * from xyz123.mytable;
If you get tired of prefixing the table name with the owner, you can do the following:
alter session set current_schema=xyz123;
select * from mytable;

Similar Messages

  • How to install SQL*Plus help facilities and demos.

    Hi, everyone
    It appears error message say "failure to login" during SQL*Plus
    part of the Oracle8 full installation. I knew that system want
    to install SQL*Plus help and demos through logining one of
    dba account(maybe system user account). However, due to
    password's reason, can not log in SQL*Plus, so installer can't
    execute named pupbld.sql script, result in SQL*Plus help and
    demos can not be installed.
    Now, I am intend to install these stuff lonely.
    Could anyone help me? thank a lot.
    William
    null

    Hi,
    The pupbld.sql isn't the correct script to create the help
    facility, it just creates product and user profile tables.
    The help script is at $ORACLE_HOME/sqlplus/admin/help (run as
    system)
    cd $ORACLE_HOME/sqlplus/admin/help
    sqlplus system/<password> @helptbl
    sqlldr system/<password> control=plushelp.ctl
    sqlldr system/<password> control=plshelp.ctl
    sqlldr system/<password> control=sqlhelp.ctl
    sqlplus system/<password> @helpindx
    I think it is necessary to run the pupbld.sql script, without
    this script everyone who logins in oracle with sqlplus will see
    an error message, but... Run the script again:
    $ORACLE_HOME/sqlplus/admin/pupbld.sql
    Best regards,
    Ari
    William (guest) wrote:
    : Hi, everyone
    : It appears error message say "failure to login" during SQL*Plus
    : part of the Oracle8 full installation. I knew that system want
    : to install SQL*Plus help and demos through logining one of
    : dba account(maybe system user account). However, due to
    : password's reason, can not log in SQL*Plus, so installer can't
    : execute named pupbld.sql script, result in SQL*Plus help and
    : demos can not be installed.
    : Now, I am intend to install these stuff lonely.
    : Could anyone help me? thank a lot.
    : William
    null

  • SQL*Plus Help

    Hi! Does anyone know where i can download SQL*Plus Help? I need to get info on select syntax, sql built-in functions, etc..
    Thanks!

    hi
    you can proceed like this :
    go to the OTN
    the click on products.
    null

  • (SQL*PLUS HELP) RUNNING PUPBLD OR HELPINS ASKS FOR SYSTEM_PASS

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-22
    (SQL*PLUS HELP) RUNNING PUPBLD OR HELPINS ASKS FOR SYSTEM_PASS
    ==============================================================
    PURPOSE
    이 내용은 SQL*Plus 상에서 SQL*Plus command의 help를 보기 위한 방법이다.
    Problem Description
    SQL*Plus command의 help를 보기 위해서 helpins를 수행하면
    SYSTEM_PASS is not set이라는 에러 메시지가 발생하는 경우가 있다.
    이 자료는 pupbld 또는 helpins를 수행하기 전에 SYSTEM_PASS 환경변수를
    셋팅하는 방법에 대한 자료이다.
    아래와 같은 에러가 발생하는 경우 조치 방법에 대해 알아본다.
    SYSTEM_PASS not set.
    Set and export SYSTEM_PASS, then restart help (for helpins or
    profile for pupbld) installation.
    Workaround
    none
    Solution Description
    이 스크립트는 system user로 database에 connect되어 수행되어야 한다.
    helpins를 수행하기 위해서는 SYSTEM_PASS 환경변수가 셋팅되어 있어야 한다.
    NOTE
    For security reasons, do not set this variable in your shell
    startup scripts. (i.e. .login or .profile.).
    Set this environment variable at the prompt.
    1. Prompt에서 환경변수를 셋팅하기
    For C shell:
    % setenv SYSTEM_PASS system/<password>
    For Korn or Bourne shells:
    $ SYSTEM_PASS=system/<password> ;export SYSTEM_PASS
    2. Now run "$ORACLE_HOME/bin/pupbld" or "$ORACLE_HOME/bin/helpins".
    % cd $ORACLE_HOME/bin
    % pupbld
    or
    % helpins
    주의사항
    $ORACLE_HOME/bin/pupbld 스크립트와 $ORACLE_HOME/bin/helpins 스크
    립트를 수행하기 위해서는 반드시 SYSTEM_PASS 환경변수를 필요로 한다.
    Reference Document
    <Note:1037075.6>

    check it please whether it is a database version or just you are installing a client. Install Enterprize database on 2k system. I you are running a client software then you are to deinstall it.

  • Download Oracle SQL*Plus help related like word help

    Hello all
    I just wanna ask if where i can download Oracle SQL*Plus help related like word help.?
    ty

    <p>You can access SQL*Plus help from the command line in a SQL*Plus session by typing 'help index'. If you want more information than that, take a look at the SQL*Plus Quick Reference located <b>here</b> or the SQL*Plus User's Guide and Reference located <b>here</b>. These docs are all for Oracle 10g. Other version documentation can be found <b>here</b>.</p>
    Tom

  • Sql Plus Help! (the window remain open)

    I'm currently using sql plus to export data from oracle to text with spool command, in this way:
    sqlplus user/[email protected] @F:\pathtosql\query.sql (this line is in a bat file)
    where the file query.sql contain the spool comand
    spool F:\textfile.txt;
    set head on;
    set pagesize 0;
    set linesize 512;
    set trimspool on;
    set feedback off;
    set termout off;
    select field1, field2, ..., fieldn
    from table;
    spool off;
    exit;
    mi problem is when I run .bat (contining the sqlplus command) and for some reason the source database is not available the windows remain open requesting for a logon information, I want the windows close if are connection problem
    Can I do that with sqlplus
    Thanx

    Specify the -L command line option to SQL*Plus, i.e.:
    sqlplus -L username/password@db @blah.sql
    (this will prevent the second prompt for username/password if the initial login is unsuccessful for any reason, like an invalid password).

  • Installing Oracle 8i and Forms 6i Messes up SQL PLUS HELP PLEASE!!!

    I have Win2K, originally I had Oracle 8i (home was "orant"), and I was able to connect to oracle through SQL PLUS. Then I installed the Forms 6i (downloaded version from OTN) on separate home , and I couldn't invoke forms, so I copied tnsnames.ora from 8i to forms' directory, and I lost connection with oracle sqlplus.
    I then re-installed first forms on "orant" and then 8i on "ornat\ora8i" and I still cannot connect sqlplus. I have homeworks due, and cannot afford to go to lab late nights, so please help me!!!

    hI,
    I have the problem backward!
    I created a profile then assigned it to the user, then I launched the apps thr the browser, it worked prompting the message "...password will expire in 3 days..."
    Now I reassigned the Default profile back to the user which does not expire the password, launched the apps again it still prompted that password warning message! I even deleted the profile that was first created, still got the warning.
    I tried to do it alter user in SqlPlus but not able to connect to database using the same System account as Sysdba (used to connect in Enterprise Console successfully), received error :Insufficient Privileges.
    What is wrong ? Thanks.
    Win2000,
    DB 9.2.1.0
    9iDS 9.0.2
    Netscape 4.75

  • SQL*Plus Help system

    i have Win2000 Pro with Oracle 8.1.7 installed and it seems to be working fine.
    however, in SQL*Plus (both windoze and command line versions), if i type 'HELP' i get the error:
    SP2-0171: HELP not accessible.
    does this mean the help files weren't installed for some reason? or is it referring to my win2000 user security?
    how can i install the help system for SQL*Plus? what files should i check for to see if it is already installed?
    TIA...thanks... erick

    I find the online help at http://tahiti.oracle.com/
    very useful when I am connected to the internet.
    The iSQL*Plus web interface has online HTML help related
    to iSQL*Plus.
    iSQL*Plus is available with Oracle 9.0.1 for Windows. Other platforms will be supported in future versions.
    -- CJ

  • SQL*plus not executing query

    Hello,
    I am new to sqlplus and I am trying to get some queries running off of an ARCH linux box that I have.
    The install went ok and I can get sqlplus running and connect to my oracle DB. However when I enter something as easy as "select * from REASON" hit enter, all i get is a "2" on the next line
    (screenshot http://imgur.com/KvTyD.jpg)
    Is this a config issue on my sqlplus or am i Just not qualified. Any help is appreciated. thanks

    >
    I am new to sqlplus and I am trying to get some queries running off of an ARCH linux box that I have.
    The install went ok and I can get sqlplus running and connect to my oracle DB. However when I enter something as easy as "select * from REASON" hit enter, all i get is a "2" on the next line
    (screenshot http://imgur.com/KvTyD.jpg)
    Is this a config issue on my sqlplus or am i Just not qualified. Any help is appreciated. thanks
    >
    SQL*Plus is expecting input from you; you terminate the statement by putting a forward slash or semi-colon just after your statement.
    select * from REASON
    /OR
    select * from REASON;Regards,
    Phiri

  • SQL Developer fails to query table

    I am trying to use SQL Developer (v3.2.20.09) to query a particular table in an Oracle 10G database using a simple "select * from table" query.  When I run the query SQL Developer sits there forever waiting for results but nothing is every returned.
    The table is relatively small, just a few thousand rows and just half a dozen columns (mixture of numbers, short text strings and datetimes).  I can run other queries on the table in question so I know I have privileges, it's just when run a simple query to return all columns and all rows it fails.  I even tried to an export of the table using Tools->Database Export but that too just sat there forever failing to complete.
    Any ideas?  It seems that there is just something in the table that SQL Developer doesn't like.

    I've never used sqlplus before but I just tried it and it runs the same query (select * from [table] where rownum <= 40) without any problems.  The strange thing is that once I could see which row was row 40 in sqlplus I queried just that one row in SQL Developer (using the primary key column) and it worked fine.
    I did a bit more experimenting and it doesn't look like a problem with that row in particular just with displaying more than a certain number of rows.  The first column on the table is called OBJ_ID and is a unique integer which forms the primary key.  Row 40 has OBJ_ID = 53.  I tried running:
    select * from [table] where obj_id between 40 and 53 - no problems
    select * from [table] where obj_id between 30 and 53 - no problems
    select * from [table] where obj_id between 20 and 53 - no problems
    select * from [table] where obj_id between 10 and 53 - failure as above (no errors but SQL Developer never displays the results)

  • SQL*PLUS 에서 ONLINE HELP 기능

    제품 : SQL*PLUS
    작성날짜 : 1999-10-08
    SQL*PLUS Help
    =============
    SQL*PLUS 에서 Online Help 기능을 제공하여 굳이 SQL Reference 를 참조하지
    않아도 Online 상에서 확인이 가능하다.
    그런데 간혹 help 에 문제가 생기는 경우 다음과 같이 새로 생성하면 된다.
    1. help 디렉토리로 이동한다.
    % cd $ORACLE_HOME/sqlplus/admin/help
    2. SYSTEM user 로 SQL*Plus 에 Login 한다.
    % sqlplus system/<password>
    3. 해당 디렉토리의 "helptbl.sql" script 를 수행한다.
    SQL> @helptbl
    해당 스크립트는 Help 라는 테이블을 생성하고 Public 으로 지정한다.
    4. SQL*Loader 로 필요한 Record 를 Help 테이블에 로딩한다..
    % sqlldr system/manager control=plushelp.ctl
    % sqlldr system/manager control=sqlhelp.ctl
    % sqlldr system/manager control=plshelp.ctl
    5. SYSTEM user 로 SQL*Plus 에 Login 한다.
    "helpindx.sql" script 를 수행한다.
    SQL> @helpindx
    해당 스크립트는 필요한 각종 view 와 index 를 생성한다.
    // 위의 사항은 Unix 계열의 SQL*PLUS 에서 적용이 되는 내용이다
    Windows 95/98/NT 에서는 현재 On-line Help 가 지원되지 않는다.
    다만 Oracle install CD 에서 Oracle Online Documentation 을 인스톨 한
    후 Adobe Acrobat runtime 으로 보아야 한다.
    DB SERVER 8.1.6 이상에서는
    SQLPLUS에서 사용되는 help 기능만 제공됩니다.
    8.1.6 이상에서 help를 생성하기 위해서는
    % cd $ORACLE_HOME/sqlplus/admin/help
    % sqlplus system/<password>
    SQLPLUS>helpbld.sql
    SQLPLUS>helpus.sql

    I personally don't like SQL Developer or TOAD, though perhaps I'm in a minority. I agree completely. Toad does a lot of things but many of are ill thought out, the most obvious is the default feature of displaying a result time after fetching the first screen of rows. This alone has led to hundreds of posting along the lines of, I have this query that returns 12 billion rows. In a stored procedure it takes days, but it completes in 12 milliseconds in TOAD?
    The last I looked SQL Developer had that typical Java sluggishness on a Windows box, and I am still not interested in whether that is a Windows or Java problem. I just know that if I have to use Windows I tend to choose applications that are not written in Java if possible.
    It also was unable to connect using OS authenticated accounts which effectively ruled it out as anything other than a toy as our development environment mandates it. I believe there may be a workaround, but there are always hints of waving a rubber chicken at it and frankly why bother at this stage.
    PL/SQL Developer is by far the best.

  • DISPLAY UNDEFINE TABLES IN SQL PLUS

    i am using Oracle 10g
    for last 1 week i seen unrecognized table names in my user while i issue following command
    SQL > select * from tab;
    table name like ......BIN$ and many other characters after it...
    i cannot drop that table also
    from DBA studio above table can't view but from SQL PLUS it display as table
    what i have to do to drop such tables ? please give advice

    These are recyclebin tables. A normal 'drop table' command puts a table into the recyclebin, you can get it back through 'flashback drop' command. Use 'purge user_recyclebin' to delete the tables finally.
    Werner

  • SQL*Plus report running through concurrent managers

    I Created a report in sql*plus from a view table and running it through the concurrent manager in 11.5.10.2. I'm using 4 paramaters, but I made the awards paramaters as required parameters and the from and to creation dates as not required. However, I noticed when trying to run the report with just the awards numbers no data is populated, but when i run the report with awards and dates then the reports shows data. Is there a way to get this report to run with awards only and make dates as an option from the query below?
    parameters#
    ##1 from award number
    ##2 to award number
    ##3 from creation date
    ##4 to creation date
    set termout off
    set head off
    set pages 0
    set feedback off
    set verify off
    set define #
    col sort_col noprint
    SELECT 'Revenue Report for Date ##3 - ##4, Awards ##1 - ##2', 0 sort_col
    FROM DUAL
    UNION
    SELECT 'AWARD NUMBER^EVENT DATE^DESCRIPTION^REVENUE AMOUNT^CREATION DATE',
    1
    FROM DUAL
    UNION
    SELECT project_number
    || '^'
    || event_date
    || '^'
    || description
    || '^'
    || revenue_amount
    || '^'
    || creation_date,
    2
    FROM apps.pa_events_v
    WHERE project_number BETWEEN NVL ('##1', project_number)
    AND NVL ('##2', project_number)
    AND creation_date BETWEEN TO_DATE (SUBSTR ('##3', 1, 10), 'YYYY/MM/DD')
    AND TO_DATE (SUBSTR ('##4', 1, 10), 'YYYY/MM/DD')
    ORDER BY 2;
    Thanks

    Hi;
    Please see below note which could be helpful for your issue:
    Unconstrained Msonwa64 Memory Based Planner 64 bit AIX Errors Signal 9 [ID 1274606.1]
    JTM Master Program Failing With ORA-1403 on afpgrs [ID 752065.1]
    Regard
    Helios

  • Copy command for SQL*Plus

    Am trying to use the copy command in SQL*Plus to copy a table
    from an Oracle database to a local table on my machine in
    another format. Keep getting errors. It seems to contact the
    remote machine fine, but can't locate my local machine or figure
    out where to put it. Any suggestions on how to set up my
    Windows 95 machine to get the copy command working would be
    greatly appreciated. Thank you.
    null

    Hi,
    Here is an example :
    SQL> copy from scott/tiger@q4_production_server create ord -
    using select * from ord;Array fetch/bind size is 15. (arraysize is 15)
    Will commit when done. (copycommit is 0)
    Maximum long size is 80. (long is 80)
    Table ORD created.
    21 rows selected from scott@q4_production_server.
    21 rows inserted into ORD.
    21 rows committed into ORD at DEFAULT HOST connection.
    Hope this helps,
    Bala
    Laura Michaels (guest) wrote:
    : Am trying to use the copy command in SQL*Plus to copy a table
    : from an Oracle database to a local table on my machine in
    : another format. Keep getting errors. It seems to contact the
    : remote machine fine, but can't locate my local machine or
    figure
    : out where to put it. Any suggestions on how to set up my
    : Windows 95 machine to get the copy command working would be
    : greatly appreciated. Thank you.
    null

  • SQL*Plus and chinese characters

    Hi all,
    I have following scenario:
    1. Database 10.1.0.5 with following NLS-Parameter:
    SQL> select * from NLS_DATABASE_PARAMETERS;
    NLS_LANGUAGE AMERICAN
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_RDBMS_VERSION 10.1.0.5.0
    SQL> select * from NLS_SESSION_PARAMETERS;
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY GERMANY
    NLS_CURRENCY €
    NLS_ISO_CURRENCY GERMANY
    NLS_NUMERIC_CHARACTERS ,.
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD.MM.RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD.MM.RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT DD.MM.RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY €
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    SQL> select * from V$NLS_PARAMETERS;
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY GERMANY
    NLS_CURRENCY €
    NLS_ISO_CURRENCY GERMANY
    NLS_NUMERIC_CHARACTERS ,.
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD.MM.RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD.MM.RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT DD.MM.RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY €
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    2. Windows Language is german
    I should be possible to insert the chinese characters into the table from the SQL*Plus (sqlplusw.exe) and SQL*Plus should be able to show the chinese characters from that table.
    Is there any Step-By-Step Tutorial for the changes, that I should provide?
    Can anybody help me?
    Thanks

    I have a table CHINESE with one column STRING
    NVARCHAR2(250). There I will store the chinese
    character and display the content in SQL*Plus.
    Into the table I will insert with SQL*Plus with
    INSERT Statement.
    To store the character you could use e.g.
    insert unistr(<unicode value expression>) into table But Sql*Plus does not support Unicode display. Use SQL Developer instead for displaying your table data.
    You could also use select dump(column,1016) from table to verify that character data is correctly converted and stored.
    Windows Codepage is 1252.
    What do you mean under "what is your corresponding
    NLS_LANG client char set setting" ?With acp 1252, your NLS_LANG should contain .WE8MSWIN1252 - this tells Oracle your acp setting.
    Note however that windows-1252 does not define any Chinese characters.
    http://www.microsoft.com/globaldev/reference/sbcs/1252.mspx
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    You can read more about Unicode string literals in Oracle in chapter 7 Programming with Unicode, Globalization Support guide in 10.2. Also you probably should read about NCHAR literal replacement (available only in 10.2 and above).
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/toc.htm
    Message was edited by:
    orafad

Maybe you are looking for