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.

Similar Messages

  • (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.

  • How to execute the parametered stored procedure in sql *plus ?

    how to execute the parametered stored procedure in sql *plus ?
    my storedprocedure format
    CREATE OR REPLACE PROCEDURE SMS_SELECTMPLOYEE
    (empDOB out date, empEmpName out varchar2)
    thanks & regards
    mk_mur

    Oh, sorry... making many reading-too-fast mistakes today...
    You can't declare date variables in SQL*Plus (seel help var), but you can cast to varchar2:
    TEST> CREATE OR REPLACE PROCEDURE SMS_SELECTMPLOYEE (empDOB out date, empEmpName out varchar2) IS
      2  d date := sysdate;
      3  e varchar2(10) := 'bob';
      4  begin
      5  empdob := d;
      6  empempname := e;
      7  end;
      8  /
    Procedure created.
    TEST> var d varchar2(30)
    TEST> var n varchar2(30)
    TEST> call  SMS_SELECTMPLOYEE(:d,:n);
    Call completed.
    TEST> print d n
    D
    11/07/06
    N
    bobYoann.

  • 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

  • Oracle:JDBC Call returns no results, SQL*Plus returns 1 record, Please help

    Any help would be greatly appreciated.
    Running 9.2.0.5.0, and using latest 9.2 JDBC 1.4_g drivers in thin mode.
    Execute the following query from SQL*Plus and it returns one row, from JDBC using a PreparedStatement, I get no results. Here's the query, table def, record, etc.:
    Query:
    SELECT
    ID_WEB_FRM,ID_WEB_SIT,CDE_LVL_1_FUNC,
    CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID
    FROM
    WEB_FRM
    WHERE
    ID_WEB_FRM = ' '
    OR
    (ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' '
    AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1
    AND NUM_WEB_PG_ID = 0)
    Record returned from SQL*Plus:
    ID_WEB_FRM ID_WEB_SIT CDE CDE NUM_WEB_FUNC_PG NUM_WEB_PG_ID
    NfRRmc5XZu test u2T 1 0
    Both in the data returned and the query, there are no blanks, but they are a single space instead (hard to see in message here).
    Java code:
    int count = 1;
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++,form.getSiteID());
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++, form.getFunctionID());
    findDBNameStatement.setInt(count++,form.getPageNumber());
    findDBNameStatement.setInt(count++,form.getSectionNumber());
    ResultSet resultSet = findDBNameStatement.executeQuery();
    ResultSetMetaData metaData = resultSet.getMetaData();
    resultSet.next() returns false
    DB table:
    CREATE TABLE web_frm (
    ID_WEB_FRM varchar2(10) NOT NULL,
    ID_WEB_SIT varchar2(20) NOT NULL,
    NAM_WEB_FRM varchar2(40),
    TXT_EMAIL_SUBJ varchar2(50),
    CDE_LVL_1_FUNC char(3),
    CDE_LVL_2_FUNC char(3) NOT NULL,
    NUM_WEB_FUNC_PG int NOT NULL,
    NUM_WEB_PG_ID smallint NOT NULL,
    DTE_WEB_FRM_EFF date NOT NULL,
    DTE_WEB_FRM_TRM date,
    CDE_VLDT_RUL char(3),
    DTE_LAST_EXPRT date,
    TXT_CNFRMN_MSG varchar2(4000),
    IND_UPDT_ALWD char(1) NOT NULL,
    TXT_RECAP_HDR varchar2(4000),
    TXT_RECAP_FTR varchar2(4000),
    CDE_WEB_OBJ char(3),
    NUM_MAX_FRM_WIDTH number(4,0),
    IND_RECAP_PG char(1) NOT NULL,
    IND_CNFRM_PG char(1) NOT NULL,
    IND_DSPL_CNFRM_NUM char(1) NOT NULL,
    CNT_SUBM_MAX int,
    TXT_CHCE_ADD_MSG varchar2(255),
    TXT_CHCE_MOD_MSG varchar2(255),
    TXT_WEB_HDR varchar2(4000),
    TXT_WEB_FTR varchar2(4000),
    TXT_WAIT_LIST_MSG varchar2(255),
    FORMOBJECTHEIGHT int NOT NULL,
    FORMOBJECTWIDTH int NOT NULL
    ALTER TABLE web_frm ADD ( CONSTRAINT PK_web_frm PRIMARY KEY (ID_WEB_FRM));
    ALTER TABLE web_frm ADD ( CONSTRAINT UK_web_frm UNIQUE (ID_WEB_SIT,CDE_LVL_1_FUNC,CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID)) ;
    Thanks,
    Matt

    That's not quite right. From the javadocs:
    next
    public boolean next()
    throws SQLException
    Moves the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.
    If an input stream is open for the current row, a call to the method next will implicitly close it. A ResultSet object's warning chain is cleared when a new row is read.
    Returns:
    true if the new current row is valid; false if there are no more rows
    Throws:
    SQLException - if a database access error occurs

  • JDBC Call returns no results, SQL*Plus returns 1 record, Please help!

    Any help would be greatly appreciated.
    Running 9.2.0.5.0, and using latest 9.2 JDBC 1.4_g drivers in thin mode.
    Execute the following query from SQL*Plus and it returns one row, from JDBC using a PreparedStatement, I get no results. Here's the query, table def, record, etc.:
    Query:
    SELECT
    ID_WEB_FRM,ID_WEB_SIT,CDE_LVL_1_FUNC,
    CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID
    FROM
    WEB_FRM
    WHERE
    ID_WEB_FRM = ' '
    OR
    (ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' '
    AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1
    AND NUM_WEB_PG_ID = 0)
    Record returned from SQL*Plus:
    ID_WEB_FRM ID_WEB_SIT CDE CDE NUM_WEB_FUNC_PG NUM_WEB_PG_ID
    NfRRmc5XZu test u2T 1 0
    Both in the data returned and the query, there are no blanks, but they are a single space instead (hard to see in message here).
    Java code:
    int count = 1;
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++,form.getSiteID());
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++, form.getFunctionID());
    findDBNameStatement.setInt(count++,form.getPageNumber());
    findDBNameStatement.setInt(count++,form.getSectionNumber());
    ResultSet resultSet = findDBNameStatement.executeQuery();
    ResultSetMetaData metaData = resultSet.getMetaData();
    resultSet.next() returns false
    DB table:
    CREATE TABLE web_frm (
    ID_WEB_FRM varchar2(10) NOT NULL,
    ID_WEB_SIT varchar2(20) NOT NULL,
    NAM_WEB_FRM varchar2(40),
    TXT_EMAIL_SUBJ varchar2(50),
    CDE_LVL_1_FUNC char(3),
    CDE_LVL_2_FUNC char(3) NOT NULL,
    NUM_WEB_FUNC_PG int NOT NULL,
    NUM_WEB_PG_ID smallint NOT NULL,
    DTE_WEB_FRM_EFF date NOT NULL,
    DTE_WEB_FRM_TRM date,
    CDE_VLDT_RUL char(3),
    DTE_LAST_EXPRT date,
    TXT_CNFRMN_MSG varchar2(4000),
    IND_UPDT_ALWD char(1) NOT NULL,
    TXT_RECAP_HDR varchar2(4000),
    TXT_RECAP_FTR varchar2(4000),
    CDE_WEB_OBJ char(3),
    NUM_MAX_FRM_WIDTH number(4,0),
    IND_RECAP_PG char(1) NOT NULL,
    IND_CNFRM_PG char(1) NOT NULL,
    IND_DSPL_CNFRM_NUM char(1) NOT NULL,
    CNT_SUBM_MAX int,
    TXT_CHCE_ADD_MSG varchar2(255),
    TXT_CHCE_MOD_MSG varchar2(255),
    TXT_WEB_HDR varchar2(4000),
    TXT_WEB_FTR varchar2(4000),
    TXT_WAIT_LIST_MSG varchar2(255),
    FORMOBJECTHEIGHT int NOT NULL,
    FORMOBJECTWIDTH int NOT NULL
    ALTER TABLE web_frm ADD ( CONSTRAINT PK_web_frm PRIMARY KEY (ID_WEB_FRM));
    ALTER TABLE web_frm ADD ( CONSTRAINT UK_web_frm UNIQUE (ID_WEB_SIT,CDE_LVL_1_FUNC,CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID)) ;
    Thanks,
    Matt

    I have verified the parameters and such, and if I run as a Statement instead of a PreparedStatement, the query works fine. After some more troubleshooting, I narrowed the problem down, but not sure of the fix.
    If I eliminate teh extra parameters and simplify things to:
    SELECT ID_WEB_FRM FROM WEB_FRM WHERE ID_WEB_SIT = 'test' AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1 AND NUM_WEB_PG_ID = 0
    The code works. But if I add the additional WHERE clause of CDE_LVL_1_FUNC = ' ' (has single space), it returns no data (record in the DB has single space in this new column. Query that does not work:
    SELECT ID_WEB_FRM FROM WEB_FRM WHERE ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' ' AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1 AND NUM_WEB_PG_ID = 0
    It appears the JDBC Driver is trimming the parameter when it is a space when set through a PreparedStatement.setString(2," ")

  • Locked out of SQL*PLUS!! HELP!

    i have just started using sql*plus to access my 10g database as it was all installed on my computer by someone else for me.... and the helpfully didnt tell me the user name and password they had used
    so when i got my laptop back and discovered that i couldnt log in as scott/tiger or anything else... started messing around and managed to get a dialoge box asking me to enter a password for SYSMAN so i did so and everything was fine,,,,,
    Until i restarted my computer now it says that SYSMAN is locked just like it says for all the other standard logins!! now ive had a read around and people keep saying just grant the privelages to the scott/tiger account..... how can i do that if i cant log in as anything???
    please help oh super smart guru peoples :)
    thanks in advance
    RMMO (PL/SQL / SQL*PLUS NOOBMASTER!)

    thanks for that... sadly it didnt work... the database is local to my laptop.... but when i entered that command into cmd... another command prompt opens up for a split second then closes back down... there isnt enough time to see anything displayed in it... but i assume that it tells me that either the account is locked like all the other accounts or it says that its not a valid username/password... or somthing to that effect....
    again thankyou for the time you put into helping.... and sadly again any other ideas or possible solutions would be GREATLY appreciated!
    RMMO
    (undercover noob)

  • Need help in sql plus

    i install in my computer the oracle9i
    my problem is that : i can login to sql plus
    althoge i was tring all the passwords that i know
    scott/tiger
    sys/change_on_install
    system/manager and the result is allways the same
    ora-12560 error
    how can i solve that problem?
    did i missed somthing during the installation?

    Thank you to EVERYONE!!
    I have been searching every possible forum to find out how to install/run SQL *Plus on a home computer without a server/network to work within.  As most just learning, I could not figure out how to get past the SQL Plus Username/Password/Host String logon.
    After much trial and error, I got through and I hope this helps a lot of people just starting out.
    I used 'SYSTEM' as my username and my password created on install.
    When installing I created a database and fixed the password so my default password was the password I created on install.
    As long as I had those two fields filled in, I could leave the Host String blank and I could still get into the SQL Plus workspace.
    Since I also created a database on install, I found that I could also use the name I gave the installed database (I didn't leave the default database name so I do not remember what the default name was, but I think the default password was 'manager' for those who were not tempted to change it).
    Worst case scenario if you forgot your database name given during install, you can do a search for all of your .ora files (usually in the drive you installed Oracle on). Open the tnsnames.ora file in Notepad and you can see which database names are available on your system. The path to my file was:
    D:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    You want the SERVICE_NAME = 'databasename'
    I hope this reduced someone's stress...and thanks for all the helpful hints on these threads...they led me to the final outcome!!
    In the end, I tried a lot of other combinations for the username/host strings with plenty of errors. You would think this information would be on page one of every Oracle install!! Or maybe it is and I am just a bit slow. : )
    Thanks again to all that posted with this initial question (years ago)...
    Brian Reeves
    Oracle Student

  • Seek help to format spool file from SQL*PLUS

    I am running a Unix shell script to call a Oracle 11g SQL script from a Oracle database. In this SQL script, I need to connect to many different remote databases to select data, then sool these records as one big text file to a directory. Then email the file to related Group users. In the spool file, there is a line on the top of each page like this:
    DUMMY
    DB_NAME
    I know this is caused by connect to remote database in SQL*PLUS. My connection string is like this:
    Conn system/password@Oracle_SID
    How can I remove these lines or how to skip these lines into spool file? Please advise. Thanks in advnce. Wish all of you Happy New Year!!!

    Hi,
    It sounds like you have some kind of formatting (such as SQL*Plus TTITLE) producing the output you don't want. If that's the case, temporarily stopping the spooling might not help you. Find out what is causing the output that you don't want. You say that you know it is caused by the CONNECT statements, but it must be more than that. I've written scripts with CONNECT statements that don't have anything like what you reported at the top of each page; in fact, they don't even have pages: the output is one continuous stream. Find out what's putting the unwanted output there, and that will be a big clue as to how you can stop it.
    You say that you know the unwanted titles are there because of the CONNECT statements. If so, use database links instead of CONNECT. You don't have to use dbms_scheduler or utl_file; just eliminate the CONNECT statements. (I'm not saying that there's anything wrong with dbms_scheduler or utl_file; you should definitely investigate those tools. I'm just saying that using database links is independent of them.)
    What would happen if you did all your connecting to different databases at the OS level? Can you write a shell script that connects to each database in turn, and runs a SQL*Plus script in each one. Each SQL*Plus script would have a SPOOL or SPOOL ... APPEND command, or maybe you could build the SPOOL into a LOGIN.SQL script.

  • 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

    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

  • Need help with SQL*PLUS!

    I have just downloaded Oracle SQL*PLUS 9.2.0.1.0, but I am not able to use it because I do not know the "password", "user name" and "host string". Can anybody please help me with this.
    Thanks in advance,
    Flo

    The username & password are your database username & password. If you don't know these, you'll have to contact your DBA to find out.
    The host string is the alias you used when you configured TNS on your machine. Most commonly, this is done by editing the tnsnames.ora file or by using Net8 Easy Config.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com

  • NEED HELP ASAP IN sql*plus

    Hi here is my progrom : step1 i define status in Sql*plus
    define entery_status = ' '
    This is my part of progrom
    select ppf.full_name,
    pha.segment1 &#0124; &#0124; '-' &#0124; &#0124; pla.line_num po_nbr,
    pv.vendor_name,
    plt.line_type,
    msi.segment1,
    trunc(pha.creation_date) creation_date,
    trunc(plla.promised_date) promised_date,
    pla.quantity,
    pla.unit_price,
    ******decode(pha.authorization_status,'APPROVED',1,0) Approved,
    decode(pha.authorization_status, NULL,1,0) Incomplete,
    decode(pha.authorization_status,'REQUIRES REAPPROVAL',1,0) Requires_Reapproval,**********
    to_char(sysdate, 'DD-MON-YY HH12:MI:SS PM')today
    from po_headers_all pha,
    po_lines_all pla,
    po_vendors pv,
    po_line_locations_all plla,
    po_line_types plt,
    (select distinct full_name,person_id
    from per_people_f ppf) ppf,
    (select distinct inventory_item_id, segment1
    from mtl_system_items msi) msi
    where pha.po_header_id = pla.po_header_id
    and pha.vendor_id = pv.vendor_id
    and plla.po_line_id = pla.po_line_id
    and pha.po_header_id = plla.po_header_id
    and pha.agent_id = ppf.person_id
    and pla.line_type_id = plt.line_type_id
    and pha.org_id = pla.org_id
    and pla.item_id = msi.inventory_item_id
    and trunc(pha.creation_date) between nvl('&min_creation_date',trunc(pha.creation_date))and
    nvl('&max_creation_date',trunc(pha.creation_date))
    and (trunc(plla.promised_date) between nvl('&min_promised_date', trunc(plla.promised_date))and
    nvl('&max_promised_date', trunc(plla.promised_date))
    or plla.promised_date is null)
    ****and pha.authorization_status = decode('&entery_status','INCOMPLETE',NULL,
    decode('&entery_status',NULL,pha.authorization_status,'&entery_status'))*********
    ORDER BY trunc(plla.promised_date),
    ppf.full_name,
    pha.segment1,
    pla.line_num
    How i can decode the NULL to INCOMPLETE is any one can help me here,whatever i wrote i make star symbols in select statment and where clause. in that line pls look in to it for idea...
    null

    hi
    i am not sure i understand your problem fully.. if your idea is to show 'INCOMPLETE' where the value is null, you can use,
    DECODE(&entry_status,NULL,'INCOMPLETE',&entry_status)
    will suffice..
    hope this clarifies the doubt..
    ravi kumar chandran

  • Help with SQL*Plus COPY Command syntax

    Hello people.
    DBs are 10g
    PROD DB is a remote DB (over DB Link)
    TEST DB is where my SQL*Plus is logged in.
    LOCAL_DB_TABLE is the table I need to create to TEST DB
    REMOTE_DB _TABLE is the table that already exists in remote PROD DB
    COPY FROM replica/replica@PROD
    CREATE LOCAL_DB_TABLE@TEST
    ROW_ID,
    CREATED,
    CREATED_BY,
    UPD,
    UPD_BY
    USING SELECT
    ROW_ID,
    CREATED,
    CREATED_BY,
    UPD,
    UPD_BY
    FROM REMOTE_DB_TABLE
    WHERE ROW_ID='XXX';The error message I am getting:
    usage: COPY FROM <db> TO <db> <opt> <table> { (<cols>) } USING <sel>
      <db>   : database string, e.g., hr/your_password@d:chicago-mktg
      <opt>  : ONE of the keywords: APPEND, CREATE, INSERT or REPLACE
      <table>: name of the destination table
      <cols> : a comma-separated list of destination column aliases
      <sel>  : any valid SQL SELECT statement
    A missing FROM or TO clause uses the current SQL*Plus connection.
    CREATE LOCAL_DB_TABLE@TEST
    ERROR at line 1:
    ORA-00901: invalid CREATE commandThank you in advance for your help.

    Hi,
    I hope you are thinking of Creating a Table with the Same Structure as the remote database Table, If so.
    You can create a Table from the Existing Table using CTAS(Create Table as Select).
    Provided, you have created a Database Links between the 2 Databases. You can create a
    table in your Schema as,
    CREATE TABLE local_db_table AS
    SELECT * FROM remote_user_name.remote_db_table@dbname;Thanks,
    Shankar
    Edited by: Shankar Viji on Jul 19, 2012 11:01 PM

  • 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

Maybe you are looking for

  • Suggestion: Change color of battery-charging while syncing

    We're all familiar with the cool green-glowing battery when our iPhone is plugged into our computer. I think that the green glow should turn red when the phone is actually synchronizing with iTunes. A little reminder that, no, we shouldn't just swipe

  • Using 3rd party binary in script that is run as job

    Hi all, I have several scripts to do various tasks with IIS logs we receive from all our various web servers.  One script unzips logs, another logparses to grab a few fields then sftp to a 3rd party for analysis, another will encrypt the original zip

  • Error while costing run .

    Hello All, While running costing run ( plant level)  in background mode, the job is getting cancelled with some error message  "Required Parameters missing for MARA_SINGLE_READ". And its not allowing the costing run. Please suggest any steps to overc

  • Login/password_expiration_time

    is there a exception table for user, who should keep the password longer ?

  • Voice controll and blue tooth

    I'm having problems with using Bluetooth and voice control with my bb10. I can finally get it to recognize my command and able to make a call, but when it try a second call it won't work and apparent ly the last call has left voice command on. So how