SQL * more report: hide accept the value in the report

Hi all

I created a SQL for APEX-Application report. The output is stored in an HTML file.

Everything works great but think I want to hide in the HTML report.

I try to describe what is the problem.

I invite the user to put in the demand of the apex application_id:

accept v_application_Id char prompt ' ID application:'

In the HTML file, you receive the following output:

Report tabled the:
June 25, 2013, 10:06:04

ALT 8: where application_id = & & v_application_id
Neu 8: where application_id = 680

Workspace
Workspace APPLICATION_ID Application_name ALIAS OWNER
Q0Q0AUFTRAGSVERWALTUNG680Q0Q0AUFTRAGSVERWALTUNGF680317Q0Q0AUFTRAGSVERWALTUNG_ADMIN

How to hide the two lines

ALT 8: where application_id = & & v_application_id

Neu 8: where application_id = 680

According to the report?

I searched this forum and toke a glance in the documentation, but I found nothing.

Could someone help me please?

Oracle 11g R2

This is the SQL script I run in SQL * more.


-launch script

accept v_application_Id char prompt ' ID application:'

coil C:\a\APEX.html


termout off Set
SET of HTML MARKUP WE REEL WE HEAD ' < TITLE > SQL * more APEX report < /title >--
"< STYLE TYPE =" TEXT/CSS"> <!-BODY {bgcolor: background ffffaa: ffffc6}-> < / STYLE >.
Clear jump
clear the buffer
Claire calculate
clear the column
Disable the sql
Set feedback off
Set serveroutput on


--
-Report header
--
TTITLE left ' ' jump 1
Select TO_CHAR (sysdate, 'dd-Mon-yyyy, hh24:mm:ss') ' report created on:
Double;


--
-Workspace
--
TTITLE left col 15 ' < police = "Arial" size = "+ 2" color = "#0000FF" > workspace < / police > ' jump 1

set linesize 300
set pagesize 500
Set serveroutput on


column format a35 workspace
application_id 99999999 column format
column format a35 application_name
column alias format a35
column owner format a35

Select

WORKSPACE,
APPLICATION_ID,
APPLICATION NAME,
ALIAS,
OWNER
of apex_applications
where application_id = & & v_application_id;

off Ttitle

Select
APPLICATION_GROUP,
APPLICATION_GROUP_ID,
HOME_LINK,
PAGE_TEMPLATE,
ERROR_PAGE_TEMPLATE
of apex_applications
where application_id = & & v_application_id;


Set termout on
moved the markup html off the coast of the "body" entmap wide head reel off pre
Set of feedback on
set linesize 80
set pagesize 50
off Ttitle
Set termout on
Set serveroutput off
spool off
set echo on

-End Script


Best regards

Ben

Oracle 11g R2

Hi, Ben.

The SQL * Plus command to stop these messages is

SET VERIFY OFF

Put this command anywhere before the first use of a substitution variable, for example before the order of the COIL.

These 'OLD' and 'NEW' messages will remain deleted until you finish the SQL * most the session or cause a SET VERIFY ON command.

If you use SQL * more often, then, when you have a few minutes, look for the SET command in SQL * more manual,.

System of SETTING Variable summary

and read a little about each option.  You probably don't remember everything, but you'll probably remember what kind of things can be controlled by the SET command and get a better idea of where to start to look in the future when you have a different problem.

Tags: Database

Similar Questions

  • I updated Adobe Photoshop elements 11 to Camera Raw Plug in version 7.4, which still isn't a version more enough to accept the raw images for editing of my Sony alfa 7R. Is it possible to upgrade to version 8.3 or do I have to buy new software?

    I updated Adobe Photoshop elements 11 to Camera Raw Plug in version 7.4, which still isn't a version more enough to accept the raw images for editing of my Sony alfa 7R. Is it possible to upgrade to version 8.3 or do I have to buy new software?

    No, you pushed PES 11 up to the limit. You could move on to PSE 13, or you can download the free adobe dng converter and use it to make the DNG files that your version of ACR can understand.

  • Cannot access SQL more from other than the Oracle users

    Hello

    I installed Oracle 11 g R2 on Red Hat 6. My problem is that I can't access sqlplus from other than the oracle users.

    I put the PATH, the ORACLE_HOME and ORACLE_SID to the correct values.

    Session1

    Connect as: oracle

    [email protected] password:

    Last login: Sun Aug 24 01:24:46 192.168.202.1 2014

    [oracle@localhost ~] $ echo $PATH

    /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Oracle/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin

    [oracle@localhost ~] $ echo $ORACLE_HOME

    /Home/Oracle/app/Oracle/product/11.2.0/dbhome_1

    [oracle@localhost ~] $ echo $ORACLE_SID

    ORCL

    [oracle@localhost ~] $ sqlplus

    SQL * more: Production release 11.2.0.1.0 Sun Aug 24 03:17:32 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Enter the user name:

    Session2

    Connect as: nada

    [email protected] password:

    Last login: Sun Aug 24 02:31:49 192.168.202.1 2014

    [prithwish@localhost ~] $ export PATH=$PATH:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin

    [prithwish@localhost ~] $ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1

    [prithwish@localhost ~] $ export ORACLE_SID = orcl

    [prithwish@localhost ~] $ echo $ORACLE_HOME

    /Home/Oracle/app/Oracle/product/11.2.0/dbhome_1

    [prithwish@localhost ~] $ echo $ORACLE_SID

    ORCL

    [prithwish@localhost ~] $ echo $PATH

    /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Prithwish/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin

    [prithwish@localhost ~] $ sqlplus

    -bash: sqlplus: command not found

    I guess that I could not access sqlplus as the Nada the user has no access to X11R6

    [prithwish@localhost ~] $ cd...

    [Host prithwish@localhost] $ ls - ltr

    Total 8

    drwx-. 30 oracle oinstall 4096 23 August 23:51 oracle

    drwx-. Nada Nada 4096 24 August to 02:33 27 Mathieu

    [Host prithwish@localhost] $

    My question is, although quite stupid, that double

    (1) I have to change the permissions of the directory oracle of 755 for any other user to access the sqlplus?

    (2) why is the user directory under the folder created with permissions of 700, even when the umask is set to 002? Change the permissions of the directory under/Home oracle will cause security problems?

    My apologies for being naïve. It's the first time I installed Oracle under UNIX

    Kind regards

    Prithwsh

    Actually, the default procedure is NOT to install oracle to X11R6, but in/opt/oracle. or maybe/usr/local/oracle.

    This is what you're going to be recommended in the installation documentation, and in doing so, don't forget to run rootpre.sh and root.sh, I never had security problems and could run Oracle from any account.

    Sybrand Bakker

    Senior Oracle DBA

  • iPhone 6s more does not accept the password for the first time

    All of a sudden my iphone 6 s more, will not recognize and accept my password.

    First screen says: "enter code". "Touch ID requires your access code when you restart the Iphone."

    Question... is equivalent to a 'code' a 'password'?

    Why she would accept my password and then 30 minutes later he rejects?

    Any ideas would be very appreciated.

    Ray

    Maybe nobody over there wants to take this question!

  • SQL * more: how to rest the password

    I'm trying to reset my password because I forgot... Currently, using SQL Plus 10.2.0.1.0

    Thank you

    Jason

    If the DB is in your laptop computer, call the sqlplus in the laptop itself and connect with / as sysdba. After which, you can reset the password of another user (for which you want to reset to the start) using

    alter user  identified by 
    

    Arun-

  • Escape / (slash) in SQL * more

    DB: Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE Production 11.1.0.7.0
    AMT for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production

    I spin after anonymous block and it is in error. That's because most SQL plans to slash (/) in the variable 'a' trust because block the terminator. How to avoid that? The use of the following block is to store the test cases in the database. It's real test example simple case are complex and involve the copy after.
    DECLARE
      A   varchar2(1024) := NULL;
    BEGIN
      A := 'set serveroutput on;
    BEGIN
      INSERT INTO table_name
           VALUES (5067);
    END ;
    /
    
    ' ;
        INSERT INTO x VALUES (A) ;
    
           COMMIT ;
    END ;
    /
    Output
    SQL> DECLARE
      2    A   varchar2(1024) := NULL;
      3  BEGIN
      4    A := 'set serveroutput on;
      5  BEGIN
      6    INSERT INTO table_name
      7         VALUES (5067);
      8  END ;
      9  /
    ERROR:
    ORA-01756: quoted string not properly terminated
    
    
    SQL> 
    SQL> ' ;
    SP2-0042: unknown command "' " - rest of line ignored.
    SQL>     INSERT INTO x VALUES (A) ;
        INSERT INTO x VALUES (A)
                              *
    ERROR at line 1:
    ORA-00984: column not allowed here
    
    
    SQL> 
    SQL>        COMMIT ;
    
    Commit complete.
    
    SQL> END ;
    SP2-0042: unknown command "END " - rest of line ignored.
    SQL> /
    
    Commit complete.
    
    SQL> 
    Running the same block of Toad works very well.

    Help, please!

    Thank you!
    Arpit

    Hello

    Welcome to the forum!

    If you are usiing a literal of long chain, including jumps of lines and bars obliques and SQL * more can not handle the slash.

    Sorry, I don't know how to get out the slash.
    You can use a variable or a friendly ot expression instead of the / (e.g. CHR. (47), or simply avoid the / on a line by itself, like this:)

    DECLARE
      A   varchar2(1024) := NULL;
    BEGIN
      A := 'set serveroutput on;
    BEGIN
      INSERT INTO table_name
           VALUES (5067);
    END ;
    ' || '/' || ' 
    
    ' ;
        INSERT INTO x VALUES (A) ;
    
           COMMIT ;
    END ;
    / 
    

    I don't think that SQLBLANKLINES has nothing to do with this problem. Completely the blank lines are always allowed within PL/SQL code, even when you're typing in SQL * more.

  • Special characters could not load DB via SQL * MORE

    Hi, I have a pl as .accidentally sets sql script which will insert data in database. The question is there are some records are missing and these missing records contains a special character: Sansao and Strasse. The strange was if I run the script via F5 (Toad), all data can be inserted successfully but run through SQL * MORE (Toad), all records that contain special characters are not inserted.

    Anyone here know why it didn't load these special characters via SQL * MORE?

    Probably because you have given unicode (multi byte charsets) you read with a customer of standard single-byte character set.

    It's SILLY to loading data using SQL * more. It's the wrong tool used for loading the data. It does not support the bind variable. It doesn't support liaison in bulk. It does not support direct path inserts. It is not SQL * Loader.

  • SQL * MORE

    Previously I had installed Oracle Database 10 g Client Release 2 (10.2.0.1.0) on Windows XP and sqlplus was ok.

    Now I have installed Oracle Database 10 g Release 2 (10.2.0.1.0) on Windows 7 Client, to run SQL more, after I entered the name of user and password @db, it comes automatically closes

    Kindly advice

    You can trigger a SR with the binary applicants Oracle for the same thing, if there is a reuirement of business.

    Kind regards

    Kundan Sinha

  • SQL comment in "sql * more ' runs inside.

    See code below. Why I get after release:
    SQL>  /*select sysdate from dual*/
    
    SYSDATE
    ----------
    16.08.2010
    I have enterd only a comment why it comes out as a command? Is there a solution for Sql * more so that he would interpret "/ * aa * /"-style comment as true comment? ".
    SQL*Plus: Release 10.2.0.3.0 - Production on E Aug 16 14:17
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 -
    With the Partitioning, OLAP and Data Mining options
    
    SQL>  /*select sysdate from dual*/
    SP2-0103: Nothing in SQL buffer to run.
    SQL> select sysdate from dual;
    
    SYSDATE
    ----------
    16.08.2010
    
    SQL>  /*select sysdate from dual*/
    
    SYSDATE
    ----------
    16.08.2010
    
    SQL> /* select sysdate from dual */
    SQL> select sysdate from dual;
    
    SYSDATE
    ----------
    16.08.2010
    
    SQL> /* select sysdate from dual; */
    SQL> select sysdate from dual;
    
    SYSDATE
    ----------
    16.08.2010
    
    SQL> 

    I don't know, but it's because
    entry has / SQL more will take place the last executed query.
    So in / * select sysdate from double * /.
    Maybe sqlplus takes just the first and therefore the executed query previously running

  • SQL * more State 2091 internal error error

    version: 9i

    When executing SQL queries, I get this error:


    SQL * more internal error state 2091, context 0:0:0
    Dangerous to proceed

    Try to upgrade your SQL client * more...

    Using specific syntactic 9i? Sometimes more old SQL * more can't handle the syntax 'most recent '.

  • update of sql server 2005 service pack 3 error code 6D9E Windows update security does not accept the update

    update of sql server 2005 service pack 3 error code 6D9E Windows update security does not accept the update

    Hey lasdj,

    Thanks for posting in the Microsoft answers site!

    If you receive Windows Update error 6d9e while installing SQL Server 2005 Service Pack 3 by using Windows Update, it means that the installation folders and directories are compressed or encrypted.

    To fix this problem, make sure the folder locations where you are installing the service pack to aren't compressed or encrypted, or specify a different folder and then run Windows Update again.

    Therefore, remove the compression of the DATA directory and run together to the top again.

    Remove compression from the C:\Program Files\Microsoft SQL Server folder and see if you are able to install the updates without any problem.

    See the links below for more details:

    Windows Update error 6d9e
    http://Windows.Microsoft.com/en-IE/Windows-Vista/Windows-Update-error-6D9E 

    Install SQL Server 2005 and 2008 failures (compressed DATA directory)
    http://blogs.msdn.com/psssql/archive/2009/02/24/SQL-Server-2005-and-2008-Setup-failures-compressed-data-directory.aspx

    I hope this helps!
    Gokul T - Microsoft Support

  • PLS-00201 error occurs when the batch a stored procedure in SQL * more

    I have a batch file to run a stored procedure and the coil results in file. When I enter orders manually in sql * plus the output works very well and my results are spooling in the output file. But when I run the same commands in the script I get an error batch.


    Any ideas?

    Stored procedure:

    create or replace procedure MMP (p_cursor in the SYS_REFCURSOR)

    as

    Start

    Open p_cursorfor select name, id from table;

    end;

    batch file 1:

    sqlplus-s user/pw@REPORTDV @sp_output_spooled.sql

    sp_output_spooled.SQL script file

    Paste these commands directly on the SQL * more guest wraps the result as expected the value leader.

    the colsep value ' |'

    trigger the echo

    Set feedback off

    termout off Set

    set the position

    set linesize 9000

    set pagesize 0

    Set trimspool on

    headsep off Set

    output of the coil. TXT

    var refcursor rc

    run MMP(:rc)

    print the rc

    spool off

    output

    Errors printed to the output. TXT file after the batch is executed and error occurs:

    BEGIN MMP(:rc); END;

    *
    ERROR on line 1:
    ORA-06550: line 1, column 8:
    PLS-00201: identifier 'MMP' must be declared.
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored


    ERROR:
    ORA-24338: statement handle not executed


    SP2-0625: variable printing error "rc".

    Hello

    Your code worked fine for me.

    Procedure MMP is owned by the same user that runs the batch file or does it means and appropriate privileges?

    VR,

    Sudhakar

  • Out of the script SQL more not displaying is not operating in SQL Developer

    Hello

    I have a script el_ccn.sql with the content...

    Select count (*) in the NCC;

    When I run @el_ccn.sql in a SQL Developer the option worksheet dependencies execute the Script (F5)

    all that is displayed is

    COUNT (*)
    ----------

    When I run it in SQL, I see...

    COUNT (*)
    ----------
    2285

    1 selected line.

    I can 'open' the script and then run OK but I test it before implementing more complex SQL script files, so would like to know if this is possible with SQL Developer. A colleague does not have access to SQL over, so I need to check they can do this with SQL Developer before you start a COMPUTER call helps bring sqlplus.

    There must be something simple, that I do not correctly.

    Thank you, Elaine

    Published by: E Langford on 5 June 2013 01:57

    Hi Elaine,.

    Whenever unexpected behavior occurs is not a known bug, I always suspect corruption in the migrated settings / preferences of the user. Is the best way to test this
    1. export definitions of connection, you do not want to lose.
    2. Add the following line to your sqldeveloper.conf file...

    AddVMOption - Dide.user.dir =

    3. restart the product without migrating all settings

    The conf file is \sqldeveloper\sqldeveloper\bin\sqldeveloper.conf. IDE.user.dir must be available in writing being given to whatever your username has privileges (and preferably on a drive off-grid) and must be different from the value default SQL Developer uses (for example, on Windows 7, C:\Users\Developer \AppData\Roaming\SQL).

    If el_ccn.sql script works correctly with the own user preferences, by default, then you can return to the editing of the conf file, delete or rename the folder system3.2.20.09.87 in the ide.user.dir original or default folder, and then restart the product, migrate or does not migrate settings from a previous installation as desired.

    Hope this helps,
    Gary

  • SQL with parameter in SQL more value

    Hi the master Oracle,


    I have a request as described below that you run on SQL more.


    Select object_name, object_type from USER_OBJECTS WHERE last_ddl_time between trunc (sysdate)-1 and sysdate;


    I tried this script to be set, when I run it then SQL should ask two values.
    If I do not give any value then script should use by default as SYSDATE.

    Someone could please let me know how to do this?



    Kind regards
    Sandeep Sutar
    select object_name
          ,object_type
      from user_objects
    where trunc(last_ddl_time) between trunc(to_date(nvl(&1,sysdate))) -1 and to_date(nvl(&2,sysdate))
    
  • SQL * more to wrap the set command - doubt

    Hello

    I have a stupid question on the set "WRAP" command in SQL * more. I put A500 for column F2, linesize 100 and wrap is disabled.
    The result is clear, it truncates exactly the 100th character. When I put the envelope, for the header of column F2, I couldn't see
    the '-' character the hyphen for 500 times, but only for 100 characters. With the release, with few characters of column F2, how do I
    confirm that it printed 499 seats for 2 ranks and 495 white space for the last line.

    Please provide details on the envelope and TRIMOUT/TRIMSPOOL in this context.

    Also, when I increase the linesize 1000 and desc T1, it goes for a draw, it is documented in Oracle, but why is it?
    It is possbile to get the result without changing the linesize. Thank you.

    SQL > column f1
    F1 COLUMN WE
    FORMAT OF 999.99
    SQL > column f2
    COLUMN f2 WE
    FORMAT a500

    SQL > show linesize
    linesize 100

    SQL > set wrap off

    SQL > select f1, f2 from t1;

    F1 F2
    ------- --------------------------------------------------------------------------------------------
    1.00 IS
    2.00 Y
    3.00 three

    SQL > wrap value on

    SQL > show wrap
    Wrap: lines will be wrapped

    SQL > SELECT F1, F2 FROM TEST1;

    F1
    -------
    F2
    ----------------------------------------------------------------------------------------------------
    1.00
    THERE

    2.00
    THERE

    3.00
    Three

    Hello

    845956 wrote:
    Hello

    I have a stupid question on the set "WRAP" command in SQL * more. I put A500 for column F2, linesize 100 and wrap is disabled.
    The result is clear, it truncates exactly the 100th character. When I put the envelope, for the header of column F2, I couldn't see
    the '-' character the hyphen for 500 times, but only for 100 characters.

    Exactly. If LINESIZE is 100, the maximum display width of any column is 100, even if the column is actually longer, and/or you have an explicit order of the COLUMN in this way it will be longer. Nothing after that 100 characters will be encapsulated, if the package is enabled.

    With the release, with few characters of column F2, how do I
    confirm that it printed 499 seats for 2 ranks and 495 white space for the last line.

    Save the output in a HOLD file and change the file to see exactly what it contains. If TRIMSPOOL is activated, it does not contain the final spaces.
    >

    Please provide details on the envelope and TRIMOUT/TRIMSPOOL in this context.

    See the SQL * Plus Manual:
    http://docs.Oracle.com/CD/B28359_01/server.111/b31189/ch12040.htm#i2683480

    Also, when I increase the linesize 1000 and desc T1, it goes for a draw, it is documented in Oracle, but why is it?
    It is possbile to get the result without changing the linesize. Thank you.

    Describe automatically adjusts the width of each column to use all the space available with the LINESIZE current. I don't think there is a way to change this. If you cannot change LINESIZE, then write your own query on all_tab_columns and use it instead of sql * over order DESC.

    Published by: Frank Kulash, 5 March 2012 10:20

Maybe you are looking for