Display TTITLE in SQL*Plus when no rows returned

I need a SQL*Plus query that would display the TTITLE with Date. My query looked like this at first:
column TODAY noprint NEW_VALUE p_date
set feedback off
select to_char(sysdate, 'mm/dd/yyyy') today from dual;
set feedback on
ttitle left 'query.sql' -
center 'Department Listing ' -
right 'Date: ' p_date skip 1
select dept_code, dept_name
from department
where dept_code between 200 and 300
When I run this query, if there's data returned, the title would display on every page.
When there's no rows selected, the title would NOT display.
So I moved the ttitle statements to ABOVE the select date section. When there's no rows selected the title would be displayed, where there's data selected, the title would be display TWICE on the first page which is very annoying.
Then I added TTITLE OFF after the select date section and the query looked like this:
column TODAY noprint NEW_VALUE p_date
ttitle left 'query.sql' -
center 'Department Listing ' -
right 'Date: ' p_date skip 1
set feedback off
select to_char(sysdate, 'mm/dd/yyyy') today from dual;
set feedback on
ttitle off
select dept_code, dept_name
from department
where dept_code between 200 and 300
when no rows selected, the title displayed.
when rows selected, the title displayed, ONLY ON THE FIRST PAGE.
Does anyone have any creative ideas to get the ttitle to display: with or without return results, ONCE and on EVERY page?
Thanks in advance!!!
Jane

Hi Jane,
Just check out this answer might helps u.
In the final code what u have written u placed the ttitle off above the sql statement for dept.
Just note these points
1.U r telling the TTITLE OFF before SQL For Department
2.In both cases(With Data/Without Data) u r able to see the title once that is of select statement for date.
so there is no title for Select statement for department
What ur code telling is U have written a TTITLE that is for Selection of Date not for the Selection of department.
So in both cases u r getting the title once.
Put the TTITLE OFF at the end that is after Select stmt of department
then u will get title for each page.
In the first Script u told that it is displaying twice(annoying)
It will display like that only coz there are two select statements in ur Script.
TTITLE means it will display once on each page per query.
one is for select statement of date(it will display once because that query result is max of one line)
second is for select statement for Department(it will display one title in each page)
so u will find two titles on first page.
Hope this will clear u
Revert back for any more clarifications
Regards
Kiran

Similar Messages

  • Error 45 Initializing In SQL*Plus When Running A Sql Script

    Hi All
    I have a daily scheduled jobs running on Windows server 2003 and 2008. Oracle Version :10.2.0.1 and 10.2.0.4
    right now jobs are not even starting when i run them manually. Found the error Error 45 Initializing In SQL*Plus When Running A Sql Script.
    it says Bug:3039738.
    what is the solution to fix this Bug ?
    thanks
    Shawn

    user9174724 wrote:
    Hi
    do you think the Problem is not with the script ?
    when i run the job its reaching SQLPLUS and giving error
    Error 45 Initializing In SQL*Plus When Running A Sql Script .
    Server:windows 2003 and oracle version :10.2.0.1
    CMD /C %ORACLE_HOME_PRIME%\bin\sqlplus.exe /NOLOG @ %xxxx_HOME%\DBA_Backup\BackupDo.sql testdb BackupFull
    The above line does the following:
    1) launches a command procesor
    2) passes that command processor the following command line parms:
    /C
    (process the following command, then terminate)
    %ORACLE_HOME_PRIME%\bin\sqlplus.exe
    the launched processor will process the executable 'sqlplus.exe' found in the \bin subdirectory, found in the directory indicated by the environment variable ' ORACLE_HOME_PRIME'. The remainder of the command line will be passed to sqlplus.exe for interpretation and processing
    /NOLOG
    tell sqlplus to start up without trying to immediately log on to a database
    typically used to indicate to sqlplus that the immediately following string names a file of sql and sqlplus commands to be processed.
    %xxxx_HOME%\DBA_Backup\BackupDo.sql
    tell sqlplus to execute the commands found in the file 'BackupDo.sql', found in the subdirectory DBA_Backup, found in the directory name by the environment variable 'xxxx_HOME'.
    testdb
    BackupFull
    pass the values 'testdb' and 'BackupFull' to be used as values for substitution variables &1 and &2 in the file 'BackupDo.sql'
    Script:
    rmanbackup.rman
    BACKUP AS COMPRESSED BACKUPSET DATABASE FORCE PLUS ARCHIVELOG;
    DELETE NOPROMPT ARCHIVELOG ALL BACKED UP 2 TIMES TO DEVICE TYPE DISK;
    LIST BACKUP SUMMARY;
    LIST BACKUP;
    EXIT;I don't know what you expect of this. It is an rman script and we've seen no sign of an rman script being executed in any of what you've shown us. RMAN commands are processed by rman, not sqlplus.
    Unfortunately, you didn't think showing us the contents of BackupDo.sql was of any value in finding out what your problem was.
    Edited by: EdStevens on Jul 11, 2011 7:58 PM

  • Problem with Top N Query when no rows returned (takes forever)

    I have a table with 100 Million rows and I want to get the latest N records using:
    SELECT * FROM
    (SELECT * FROM tablename WHERE columnA= 'ABC' ORDER BY TIME DESC)
    WHERE rownum <= N;
    This works fine and is very fast when there are rows with columnA= 'ABC' but when there are no rows with columnA= 'ABC' the query takes forever.
    The strange things is that the inner query returns immediately when run on it's own when no rows with columnA= 'ABC' exist e.g.
    SELECT * FROM tablename WHERE columnA= 'ABC' ORDER BY TIME DESC
    So why does it take for ever for to run:
    SELECT * FROM (no rows inner query) WHERE rownum <= N;
    I have also tried using:
    SELECT * FROM
    (SELECT columnA, rank() over(ORDER BY TIME DESC) time_rank
    FROM tablename WHERE columnA='ABC')
    WHERE time_rank <= N;
    which returns instantly when there are now rows but takes much longer than the first query when there are rows.

    I cannot see a real difference:With histogram we can see a difference on the elapse when no row returned and into explain plan.
    SQL> drop table tablename
      2  /
    Table dropped.
    Elapsed: 00:00:00.03
    SQL>
    SQL> create table tablename
      2  as
      3  select sysdate - l time
      4         , decode(trunc(dbms_random.value(1,10)),1,'ABC',2,'DEF',3,'GHI',4,'JKL','MNO') as columnA
      5    from (select level l from dual connect by level <= 1000000)
      6  /
    Table created.
    Elapsed: 00:01:19.08
    SQL>
    SQL> select columnA,count(*) from tablename group by columnA
      2  /
    COL   COUNT(*)
    ABC     110806
    DEF     111557
    GHI     111409
    JKL     111030
    MNO     555198
    Elapsed: 00:00:05.05
    SQL>
    SQL> create index i1 on tablename(time)
      2  /
    Index created.
    Elapsed: 00:00:34.08
    SQL>
    SQL> create index i2 on tablename(columna)
      2  /
    Index created.
    Elapsed: 00:00:30.08
    SQL>
    SQL> exec dbms_stats.gather_table_stats(user,'TABLENAME',cascade=>true)
    PL/SQL procedure successfully completed.
    Elapsed: 00:01:18.09
    SQL>
    SQL> set autotrace on explain
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'ABC' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    TIME     COL
    17/09/06 ABC
    12/09/06 ABC
    08/09/06 ABC
    07/09/06 ABC
    25/08/06 ABC
    22/08/06 ABC
    13/08/06 ABC
    08/07/06 ABC
    14/06/06 ABC
    01/05/06 ABC
    10 rows selected.
    Elapsed: 00:00:01.04
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2364 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=2364 Card=200000 Bytes=2400000)
       3    2       SORT (ORDER BY STOPKEY) (Cost=2364 Card=200000 Bytes=2400000)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=200000 Bytes=2400000)
    SQL>
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'MNO' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    TIME     COL
    20/09/06 MNO
    19/09/06 MNO
    16/09/06 MNO
    14/09/06 MNO
    13/09/06 MNO
    10/09/06 MNO
    06/09/06 MNO
    05/09/06 MNO
    03/09/06 MNO
    02/09/06 MNO
    10 rows selected.
    Elapsed: 00:00:02.04
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2364 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=2364 Card=200000 Bytes=2400000)
       3    2       SORT (ORDER BY STOPKEY) (Cost=2364 Card=200000 Bytes=2400000)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=200000 Bytes=2400000)
    SQL>
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'PQR' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    no rows selected
    Elapsed: 00:00:01.01
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=2364 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=2364 Card=200000 Bytes=2400000)
       3    2       SORT (ORDER BY STOPKEY) (Cost=2364 Card=200000 Bytes=2400000)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=200000 Bytes=2400000)
    SQL> set autot off
    SQL>
    SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(user,'TABLENAME',METHOD_OPT => 'FOR COLUMNS SIZE 250 columna')
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:09.08
    SQL>
    SQL> set autotrace on explain
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'ABC' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    TIME     COL
    17/09/06 ABC
    12/09/06 ABC
    08/09/06 ABC
    07/09/06 ABC
    25/08/06 ABC
    22/08/06 ABC
    13/08/06 ABC
    08/07/06 ABC
    14/06/06 ABC
    01/05/06 ABC
    10 rows selected.
    Elapsed: 00:00:01.03
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=1434 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=1434 Card=110806 Bytes=1329672)
       3    2       SORT (ORDER BY STOPKEY) (Cost=1434 Card=110806 Bytes=1329672)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=110806 Bytes=1329672)
    SQL>
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'MNO' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    TIME     COL
    20/09/06 MNO
    19/09/06 MNO
    16/09/06 MNO
    14/09/06 MNO
    13/09/06 MNO
    10/09/06 MNO
    06/09/06 MNO
    05/09/06 MNO
    03/09/06 MNO
    02/09/06 MNO
    10 rows selected.
    Elapsed: 00:00:02.05
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=6219 Card=10 Bytes=120)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=6219 Card=555198 Bytes=6662376)
       3    2       SORT (ORDER BY STOPKEY) (Cost=6219 Card=555198 Bytes=6662376)
       4    3         TABLE ACCESS (FULL) OF 'TABLENAME' (Cost=552 Card=555198 Bytes=6662376)
    SQL>
    SQL> SELECT * FROM
      2  (SELECT * FROM tablename WHERE columnA= 'STU' ORDER BY TIME DESC)
      3  WHERE rownum <= 10
      4  /
    no rows selected
    Elapsed: 00:00:00.00
    Execution Plan
       0      SELECT STATEMENT Optimizer=CHOOSE (Cost=6 Card=1 Bytes=12)
       1    0   COUNT (STOPKEY)
       2    1     VIEW (Cost=6 Card=1 Bytes=12)
    3 2 SORT (ORDER BY STOPKEY) (Cost=6 Card=1 Bytes=12)
    4 3 TABLE ACCESS (BY INDEX ROWID) OF 'TABLENAME' (Cost=5 Card=1 Bytes=12)
    5 4 INDEX (RANGE SCAN) OF 'I2' (NON-UNIQUE) (Cost=4 Card=1)
    SQL> Nicolas.

  • How to exit from SQL*Plus based on the return value of a SQL select stment?

    Hi
    I have a SQL script executed from SQL*Plus. I would like to know if SQL*Plus
    supports any kind of branching or exiting from script execution based on a
    returned value of a SQL select statement. I am on 9i.
    Regards,
    Tamas Szecsy

    in sqlplus, you have whenever
    ex:
    whenever sqlerror exit failure
    insert into ...
    -- if this fails, then you will be out
    insert into ...
    -- if this fails, then you will be out
    whenever sqlerror continue
    insert into ...
    -- if this fails, this continues
    insert into ...and you have PL/SQL
    declare x number;
    begin
    select count(*) into x from emp;
    if (x=14) then null; end if;
    end;
    /note that you can mix those in some case
    -- exit if there is no row in emp
    whenever sqlerror exit 1
    var dummy number
    exec select count(*) into :dummy from emp having count(*)!=0

  • ADF Table - Command buttons disappear when no rows returned for table

    We have a command button that navigates to a create screen, when the table returns no rows the button disappears. We need to have this displayed always and within the ADF table. The code looks like:
    <f:facet name="selection">
    <af:tableSelectOne text=""
    binding="#{Search.tableSelectOne1}"
    id="tableSelectOne1">
    <af:commandButton actionListener="#
    bindings.ExecuteWithParams1.execute}"
    text="Edit n"
    action="edit"
    binding="#{SearchCtgry.commandButton3}"
    id="commandButton3">
    <af:setActionListener from="#{row.Code}"
    to="#{processScope.toCode}"/>
    </af:commandButton>
    </af:tableSelectOne>
    </f:facet>

    try placing the command button within the "actions" facet of the table. It will place it above the actual rows of the table. You could also use the "header" facet.
    <af:tableSelectOne text=""
    binding="#{Search.tableSelectOne1}"
    id="tableSelectOne1">
    <f:facet name="actions">
    <af:commandButton actionListener="#
    bindings.ExecuteWithParams1.execute}"
    text="Edit n"
    action="edit"
    binding="#{SearchCtgry.commandButton3}"
    id="commandButton3">
    <af:setActionListener from="#{row.Code}"
    to="#{processScope.toCode}"/>
    </af:commandButton>
    </f:facet>
    </af:tableSelectOne>

  • Check for null values in conditional formatting when no rows returned.

    I have a report that is showing facts for different months.
    For some months there is no row in the facts table.
    But in the report, I have to show a * when there is no data.
    If there is a row in the facts table with null value for data, the conditional formatting successfully shows a * when data is null.
    But when no row is present in the facts for a particular month , conditional formatting is unable to detect any null, as none exist.
    How we can check that no rews returned for a particular month and then show *?
    thanks

    Hi,
    which obiee version r u using?
    My Blog ref:
    http://obieeelegant.blogspot.com/2011/06/replacing-null-as-0-in-obiee.html
    in obiee10g its working fine.expect obiee11g
    also see the bug reference
    How to replace null as 0 in  obiee11g pivot table view?
    obiee11.1.1.6.0 also have the same issues.
    Thanks
    Deva

  • SQL*PLUS: Setting a concrete RETURN CODE

    I don't know how to force a concrete EXIT CODE for in a SQL*PLUS process.
    I use "WHENEVER SQLerror EXIT SQL.SQLCODE" and a "EXIT SQL.SQLCODE;" at the end of the process.
    But I need to be able to exit the process with a sqlcode "54" or "23" or whatever I want...
    Any suggestions?
    WHENEVER SQLerror EXIT SQL.SQLCODE
    DECLARE
    BEGIN
    END;
    EXIT SQL.SQLCODE;
    -------------------------------------------------------

    You can just do EXIT n to exit with integer return code n.
    $ sqlplus dqm
    SQL*Plus: Release 10.2.0.3.0 - Production on Mon Jan 11 11:48:46 2010
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> exit 54
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    $ echo $?
    54

  • How to handle Output Data Association when no row returned?

    In BPM 11g, I'm using a Service to select a row from an external database passing a parameter using a Database Adapter.  Works fine when a row is returned.  But if no row is returned (which can happen because no match is found on the Select based on the parameter value), I'm getting an error on the composite because the Output Data Association has the return values, including integers, mapped to a Data Object I defined in the process.  Well if no row is found, the integer value is empty, and errors out trying to save it.
    How do I handle this situation?
    The specific message is this:
    The expression bpmn:getDataOutput('wm91AInterfaceMainCollection')/ns:Wm91AInterfaceMain[1]/ns:board is empty. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related data elements to ensure the run-time data is valid.
    I must be missing something obvious here, but cannot find a way to handle this.  Thanks in advance!

    Dan - Never mind about my request for an example.  I figured it out.  My problem was that the destination variable was a primitive process variable of type Integer, thus not allowing the creation of an XSLT.  Once I created a Complex process data object containing that Integer, I could create an XSLT with an If statement.  Thanks again.

  • How to conditional display Report Region based on number of rows returned

    I have a page with two Report Regions.
    One Region should display if the Query returns 0-1000 rows. The other should display if the same Query returns more than 1000 rows.
    The only way I can figure out how to do this is have ANOTHER query in the conditions field for each Region to Select count(*) from etc.
    I know there is a #TOTAL_ROWS# value but that is only available after the Region is displayed. Is there some other built-in variable that can be used to put in the Conditions field or is doing duplicate SQL queries the only way?
    Any help would be appreciated.

    Rather than running your query 4 times (by embedding it in your condition), you can have a region that is not displayed, with a hidden item, and set the value of the item in a before header computation to the count of your query. Now you can conditionally display based upon the value of that item.
    -- Sharon

  • Sending Email by Oracle Alert when no rows returned

    Hello All,
    I am having one problem.
    In the Oracle Alert i wrote one query which is returing 0 rows.
    But sometimes it will returns some rows.
    And my requirement is that when this query doesn't return any rows , i want to send one email to user that there is no data
    and if the data is present then i have to send the data.
    But currently there is no data so i made one Oracle Alert and when i am running that Alert then it is showing me a one message and mail doesn't sent
    Oracle Alert did not perform the summary action "My Test Alert" because no exceptions were returned for this action set.
    Please Suggest
    Thanks & Regards

    Write a second alert that fires near about the same time.
    select 'send email'
    from dual
    where 0 = (select count(1) from your_table)
    This alert will send a "no rows found" email.
    Hope this helps,
    Sandeep Gandhi

  • COPY command in SQL*Plus 8.1.6 returns ORA-65535

    The COPY command in the windows version of SqlPlus (SQLPLUSW) does not work any more. I get the following error
    << Array fetch/bind size is 5. (arraysize is 5)
    Will commit after every array bind. (copycommit is 1)
    Maximum long size is 80. (long is 80)
    ERROR:
    ORA-65535: Message 65535 not found; product=RDBMS; facility=ORA >>
    Interestingly, I can run the same COPY command successfully if I use SQLPLUS.exe ( the command line version ). No error & it completes the copy.
    I recently changed my Oracle client from 7.3 to v8.1.6.
    I had not encountered this problem with the same command in v7.3.

    You may have run into bug 1504702. As a workaround you will need to use command line, as you've already figured out. I don't think a patch is available for Windows yet, although there is for Solaris (in the 8.1.7.4 patch set).
    Alison

  • How to get th displaye record count through SQL*Plus without result

    set lines 155
    set pages 100
    set autoprint on
    variable cv refcursor
    set serveroutput on size 1000000
    set timing on
    set feedback on
    set echo on
    exec proc_name (input1, input2, :cv);how to get the record count without resultset display in the sql*plus promt ...?
    plz help me....

    This is my earilier code
    set lines 155
    set pages 100
    set autoprint on
    variable cv refcursor
    set serveroutput on size 1000000
    set timing on
    set feedback on
    set echo on
    exec proc_name (input1, input2, :cv);
    Then i have tried to execute like this
    declare
    disp SYS_REFCURSOR;
    cv SYS_REFCURSOR;
    cnt number :=0;
    begin
    proc_name (input1, input2, :cv);
    FOR disp in cv --here cv is the set of record set
    LOOP
    --FETCH cv INTO disp;
    EXIT WHEN cv%NOTFOUND;
    cnt := cnt + 1;
    END LOOP;
    dbms_output.put_line(cnt);
    dbms_output.put_line(cv%rowcount);
    CLOSE cv;
    end;
    getting error...
    LOOP
    ERROR at line 8:
    ORA-06550: line 8, column 2:
    PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:
    . ( % ; for
    The symbol "; was inserted before "LOOP" to continue.
    ORA-06550: line 13, column 2:
    PLS-00103: Encountered the symbol "DBMS_OUTPUT"
    ORA-06550: line 13, column 27:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , * % & - + / at mod rem <an identifier>
    <a double-quoted delimited-identifier> <an exponent (**)> as
    from into || bulk
    I have set of executable procedure script for exec procedure1(input1, input2 :cv); , exec procedure1(input1, input2 :cv);,.... like that. But i want only the record count, while we execute all these scripts in the sql promt...How to do that one.. ?

  • Issue with new line when manually executing a procedure in SQL*Plus

    The below procedure works fine in SQL*Plus when the entire EXEC <procedure_name> (parameter1, parameter2, ..); is put in a single line
    SQL > exec cust_admin_util.create_schema (P_SCHEMA_NAME => 'SCOTT_01', P_SCHEMA_PWD => 'scott123', P_TBS_NAME => 'TRAG_TBS', p_temptbs_name => 'TEMP' );
    PL/SQL procedure successfully completed.I wanted to execute the same procedure with more readability. So, I put each parameters on a separate line and try to execute. But it is erroring out.
    SQL > exec cust_admin_util.create_schema
    P_SCHEMA_NAME => 'TESTUSR_01',
    P_SCHEMA_PWD => 'scott123',
    P_TBS_NAME => 'TRAG_TBS',
    p_temptbs_name => 'TEMP'
    );BEGIN cust_admin_util.create_schema; END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'CREATE_SCHEMA'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL >   2    3    4    5    6    7
    P_SCHEMA_NAME => 'TESTUSR_01',
    ERROR at line 2:
    ORA-00928: missing SELECT keywordAny workaround for this ?

    Hi Tom,
    At SQL Plus,
    You have to use the -(Hyphen) as the concatenation Operator.
    For Instance,
    SQL>  exec host_command( -
    p_command => 'dir');
    PL/SQL procedure successfully completed.
    Thanks,
    Shankar                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Setting linesize in SQL Plus

    Hi buddies;
    This is my 'special' situation with SQL Plus, when I seted a linesize to any value greater than 80, I cann't scroll to see the information displayed at the right. What can I do, to solve this problem. By the way, the scroll buttom appears and I can move it to the right, however the screen stay fixed. Any idea how to solve this problem.
    Thanks for your help.
    ANG

    What works for me is:
    from the menu click: Options > Environment and set Buffer Width to 1000.
    "Use the Buffer Width text box to set the number of characters available to display on one line. The Buffer Width value must be at least as big as the LINESIZE value. Buffer Width has a default value of 100, a minimum value of 80, and a maximum value of 32,767 characters."
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch1.htm#sthref154
    Edited by: hoek on Nov 20, 2009 4:05 PM yal

  • Sql plus password typing problem

    Hello there
    I'm trying to access sql plus 11g on windows 7, i correctly write the username but when i try to type the password, nothing is typed at all, not letters nor asteresks!!
    plz help meee

    C:\Users\lord>sqlplus / as sysdba SELECT * V$VERSION;
    SQL*Plus: Release 11.2.0.3.0 Production
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus statements.
    Usage 1: sqlplus -H | -V
    -H Displays the SQL*Plus version and the
    usage help.
    -V Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
    <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
    -C <version> Sets the compatibility of affected commands to the
    version specified by <version>. The version has
    the form "x.y[.z]". For example, -C 10.2.0
    -L Attempts to log on just once, instead of
    reprompting on error.
    -M "<options>" Sets automatic HTML markup of output. The options
    have the form:
    HTML ON [HEAD text] [BODY text] [TABLE text]
    [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] ON]
    -R <level> Sets restricted mode to disable SQL*Plus commands
    that interact with the file system. The level can
    be 1, 2 or 3. The most restrictive is -R 3 which
    disables all user commands interacting with the
    file system.
    -S Sets silent mode which suppresses the display of
    the SQL*Plus banner, prompts, and echoing of
    commands.
    <logon> is: {<username>[<password>][@<connect_identifier>] | / }
    [AS {SYSDBA | SYSOPER | SYSASM}] [EDITION=value]
    Specifies the database account username, password and connect
    identifier for the database connection. Without a connect
    identifier, SQL*Plus connects to the default database.
    The AS SYSDBA, AS SYSOPER and AS SYSASM options are database
    administration privileges.
    <connect_identifier> can be in the form of Net Service Name
    or Easy Connect.
    @[<net_service_name> | [/]Host[:Port]/<service_name>]
    <net_service_name> is a simple name for a service that resolves
    to a connect descriptor.
    Example: Connect to database using Net Service Name and the
    database net service name is ORCL.
    sqlplus myusername/mypassword@ORCL
    Host specifies the host name or IP address of the database
    server computer.
    Port specifies the listening port on the database server.
    <service_name> specifies the service name of the database you
    want to access.
    Example: Connect to database using Easy Connect and the
    Service name is ORCL.
    sqlplus myusername/mypassword@Host/ORCL
    The /NOLOG option starts SQL*Plus without connecting to a
    database.
    The EDITION specifies the value for Session Edition.
    <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
    Runs the specified SQL*Plus script from a web server (URL) or the
    local file system (filename.ext) with specified parameters that
    will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run. The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.
    C:\Users\lord>

Maybe you are looking for

  • IPhoto folders vs albums

    Some iPhoto tutorials show how to first create a folders, and then create albums in these folders.  Why do you need folders. Can you simply create albums of photos??

  • Dynadock U10 - USB mouse very slow in IE

    Hello, Our customer have a problem with the Dynadock port replicator. The mouse hangs or is slow on Internet Explorer. The dynadock is connected to a HP 4520S Laptop (Windows 7) Tests that did not help: - Virus/spyware test - Windows updates / IE10 -

  • Appendding page/pages to  existing non-empty PDF Document

    Hi ! I am trying to append a page to existing PDF Document without creating new PDF document page. But I am not able to find the rigtht solution. I used IText, JPX libraries. can we append a page/pages to existing PDF document ? if , could you please

  • Regarding Point SYstems on technet

    Hi Geeks and moderators, 1)Just want to know how the point system works on technet as how many points for correct,quickly answered,voted answers. I realized have given several answers which are correct as per google information still no one marks it

  • Cross Fade?

    Hi, this might very well be a silly beginner question. Can I do cross fades in Soundbooth with two audio files in the same track? It's possible to do so in Premiere Pro, I'm wondering why I can't find something like this in Soundbooth. Thanks!