Viewing records pagewise in sql console

hi,
i have got a common problem.
when i login into the console of sqlplus and try to fetch records from a table i usually see the last set of records.how do i view these records page wise. i know it can be done using '|more' but i don't know the exact syntax.......
any help would be appreciated

you can try using SET PAUSE ON in SQL plus.And also add something like
SQL> set pause "Hit enter"So that you can actually see when to hit the enter key.

Similar Messages

  • How to view alerlog contents using SQL?

    How to view alertlog contents using SQL?

    Hi,
    Why don't you use the OEM Database Console ?? Now, in order to view the contents of the alert log file using a SELECT statement, you need to create a external table:
    create or replace
    directory background_dump_dest_dir
    as '<your_oracle_home>/bdump';
    CREATE table alert_log_external
    (line varchar2(4000) )
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY background_dump_dest_dir
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    nobadfile
    nologfile
    nodiscardfile
    FIELDS TERMINATED BY '#$~=ui$X'
    MISSING FIELD VALUES ARE NULL
    (line)
    LOCATION ('alert_<sid_of your_database>.log') )
    REJECT LIMIT UNLIMITED;Cheers

  • Please HELP to retrieve all records in PL/SQL --Still waiting for solution

    First of all, I am a PL/SQL beginner. I need help to retrieve all records in PL/SQL from a database (maybe anyone could give me an example). Here is my code, but this code is only able to retrieve one records only. I would like to create a web service by using PL/SQL to view data in a table.
    CREATE or REPLACE package body DRIVER_FETCHER as
    FUNCTION get_driver(driver_id in VARCHAR2) RETURN driver_rec IS
    driver_found tblDrivers%rowtype;
    driver_rtn driver_rec;
    BEGIN
    SELECT *
    INTO driver_found
    FROM tblDrivers;
    WHERE tblDrivers.lngDriverID=driver_id;
    driver_rtn := driver_rec
    driver_found.lngDriverID,
    driver_found.strTitle,
    driver_found.strFirstName,
    driver_found.strLastName,
    driver_found.dteDOB,
    driver_found.dteDateLicensed,
    driver_found.strLicenseReference,
    driver_found.strAddress_Street,
    driver_found.strAddress_TownVillage,
    driver_found.strAddress_Country,
    driver_found.strAddress_PostCode,
    driver_found.strContactDayPhone,
    driver_found.strContactNightPhone
    RETURN driver_rtn;
    END;
    END;
    and here is the tblDrivers table
    CREATE or REPLACE type DRIVER_REC as object
    lngDriverID varchar2(10),
    strTitle varchar2(5),
    strFirstName varchar2(20),
    strLastName varchar2(20),
    dteDOB date,
    dteDateLicensed date,
    strLicenseReference varchar2(30),
    strAddress_Street varchar2(50),
    strAddress_TownVillage varchar2(20),
    strAddress_Country varchar2(15),
    strAddress_PostCode varchar2(10),
    strContactDayPhone varchar2(20),
    strContactNightPhone varchar2(20)
    CREATE or REPLACE package DRIVER_FETCHER as
    FUNCTION get_driver(driver_id IN VARCHAR2) RETURN driver_rec;
    END;
    Thank You,
    Paul
    Message was edited by:
    user452391
    Message was edited by:
    user452391
    Message was edited by:
    user452391

    Hi,
    you will enjoy reading
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/toc.htm
    for a fundamental understanding of PL/SQL.
    You can do a "select * from t;" only in SQL, not in PL/SQL. There you have to open a cursor and fetch the results into a variable, e.g.:
    declare
    cursor c_example
    is
       select * from emp;
    begin
       for r_example in c_example loop
           dbms_output.put_line(r_example.empno);
       end loop;
    end;This is an explicit cursor, opened within an "cursor for"-loop. The results are fetched into a (implicitly declared) record "r_example". The record now holds the values of one row from the emp table. The loop ends when all record from emp where fetched.
    Regards,
    Gerd

  • Unable to View records in a master-detail form

    In a master-detail form, I am not able to view records of the master/detail table
    by accepting the values of the PK of the header table items.
    Please tell me the exact steps, so that I can view the detail table records based on the header table PK items.
    Thanks.

    Yes I wrote the LOV code in a different procedure. Now, the view is showing correctly. But I am now trying to update the viewed records.
    The steps I am following in View Option is as below:
    go_block('header');
    clear_block(no_validate);
    execute_query;
    proc_lov;
    go_block('item');
    execute_query;
    I am unable to commit the changes made in the blocks
    The reason it is showing is : UNABLE TO update.....I saw the display_error.
    The system is trying to update the PK part also..Why....Though PK party is clearly defined in the table as well as property palette. Pl. explain how to go about it. Uregent help is required once again.

  • How to View the Scheduler in ODI Console

    Hi
    In ODI Studio, we may Schedule a Scenario and also, we may view all Schedules process from the Agents (View Schedule option).
    My colleagues are going to use ODI Console, but we cannot find out HOW to View the Schedule in ODI Console.
    In Oracle documentation about FDMEE, we can read the following: If you want to cancel a specific instance of a schedule, use the ODI Studio or ODI Console... see the PDF document in attachment.
    Regards
    Claude

    To display the schedule for one agent:
    In Topology Navigator expand the Agents node in the Physical Architecture accordion.
    Select the Physical Agent you want to update the schedule.
    Right-click and select View Schedule.
    The Schedule Editor appears, displaying the schedule for this agent.
    Check: http://docs.oracle.com/cd/E17904_01/integrate.1111/e12643/running_executions.htm#ODIDG634
    HTH -
    Jasmine

  • Question regarding an inline view or function inside SQL

    Hi All,
    I want to know whether using an inline view with in an sql query is better or a function call within the sql query is better.
    When I check the explain plan in both the case I can see no difference in the cost.
    Appreciate your valuable suggestions on this.
    Thanks,
    Maddy K.

    Hi, Maddy,
    It depends. The answer to this kind of question is always "it depends" on several factors. It would help if you gave a specific example.
    In general, a function is not an alternative to an in-line view. They're so different, that I suspect I don't really understand the question. Also, I don't understand why you're concerened with in-line views, and not with, for example, regular views or WITH clause sub-queries.
    In general, calling user-defined functions from SQL statements is slow. If there's a simple way to get the same results without calling a user-defined function, then it will probably be faster not to call the function.
    Don't pay much attention to the cost that explain plan gives it. It doesn't mean much to you.

  • View CLOB data in SQL Developer

    Hi,
    Can anyone let me know how to view CLOB data in SQL Developer 2.1.
    I am having images stored in a column of datatype CLOB. How to view this image.
    Database is 10.2.0.4.

    Since SQL Developer has no idea about the type of data stored in LOB columns, one cannot view that content in desired format.
    You need a tool to extract the LOB data and render it accordingly.
    BTW, do you mean BLOB here?

  • CR+LF Code at the end of each record selected in sql cursor

    i am selecting some data records in a sql cursor and writing it into a file using UTL_FILE.puT in a plsql procedure.
    at the end of select statement if i add ||chr(13||chr(10) iam getting CR+CR+LF code
    if i add only || chr(10) i am getting LF code.
    What i need is only CR+LF code. Kindly help to use any other commands.
    Thanks,
    Shivaji.
    Edited by: Shivaji M on Apr 22, 2010 12:11 AM
    Edited by: Shivaji M on Apr 22, 2010 12:36 AM

    It's in the book!
    "PUT_LINE terminates the line with the platform-specific line terminator character or characters."
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10577/u_file.htm#i997640

  • Is there a LogMiner Viewer integrated in the EM console?

    Is there a GUI-based interface for a LogMiner Viewer integrated in the EM console?
    I am using 10g R2 EM console, and I can't find a LogMiner Viewer, or any tool that digs in the redo and archive logs in order to provide DML statements to be used for a potential roll back. An alternative to flashback technology that digs in the undo.
    If you have any clue please let me know how to get it. Thanks,
    enrico

    Hi Enrico
    I had this problem myself yesterday. The solution is ... you have to install the standalone java based console, which is part of the administration client, and then start Logminer Viewer using oemapp lmviewer. This is for a windows client.
    Regards Markus

  • How to view clob data using sql

    Hi,
    In our database, we have one table that is having one column of CLOB datatype but now i want to view the data using sql select query but it throws error: "Datatype not supported".
    Could any one please let me know how to view the clob data using select query.
    Oracle DB version : 10.2.0.3
    Thanks

    h5.
    use read procedure
    PROCEDURE READ (
    lobsrc IN BFILE|BLOB|CLOB ,
    amount IN OUT BINARY_INTEGER,
    offset IN INTEGER,
    buffer OUT RAW|VARCHAR2 );
    example  Updating LOB by Using DBMS_LOB in PL/SQL
    DECLARE
    lobloc CLOB; -- serves as the LOB locator
    text VARCHAR2(32767):='Resigned: 5 August 2000';
    amount NUMBER ; -- amount to be written
    offset INTEGER; -- where to start writing
    BEGIN
    SELECT resume INTO lobloc
    FROM employees
    WHERE employee_id = 405 FOR UPDATE;
    offset := DBMS_LOB.GETLENGTH(lobloc) + 2;
    amount := length(text);
    DBMS_LOB.WRITE (lobloc, amount, offset, text );
    text := ' Resigned: 30 September 2000';
    SELECT resume INTO lobloc
    FROM employees
    WHERE employee_id = 170 FOR UPDATE;
    amount := length(text);
    DBMS_LOB.WRITEAPPEND(lobloc, amount, text);
    COMMIT;
    END;

  • WVC54GC: Can't find camera from Viewer/Recorder or Setup Utility

    The camera is connected to my wireless router and I can access the camera though the web - can view video and use setup on the web utility - but I can't find it from the Viewer-Recorder utility or the Linksys Setup utility. I tried setting the camera IP address to 192.168.1.115, as recommended in previous posts, and verified on my router that it's picking up that IP address. But when I run Linksys setup from a PC connected to the router,  it searches for a camera but doesn't find it. When I try "add camera" from the Viewer/Recorder, it can't find it either. From that same computer I can ping the camera at 192.168.1.115, so I know it's there. What gives??

    What is the operating system on your computer?
    If you are able to ping the camera IP address from your computer then your computer is communicating with the camera. I think it must be the issue with the setup utility.
    Try to uninstall and reinstall the utility and see if that works.
    You can also download the utility from Linksys website.

  • Screen aspect changing when viewing recorded progr...

    Hope someone can help me with this query.
    The screen aspect of my TV changes whenever I fast forward through adverts whilst viewing recorded programmes. To get back to the correct aspect (16:9) I have to stop the recording and restart each time.....very frustrating, can anyone offer a solution?
    Thanks
    Solved!
    Go to Solution.

    All boxes have to be told what aspect ratio the TV they're connected to is.
    BT Vision -> Settings -> TV Settings -> Screen Aspect Ratio
    Don't worry, you're not alone. I've lost count of the number of homes I've visited where one look at the TV has told me they haven't set the aspect ratio of whatever box they're using.
    Only use 720 or 1080 if you are connected to the TV via HDMI.

  • Is there a way to find out which project using the record Z_student by sql

    Is there a way to find out which project using the record Z_student by sql
    use Find in in Application Designer is time consumer

    Try following SQL
    with all credits to the original poster of the greater portion of this sql
    http://srini-peoplesoft.blogspot.co.uk/2012/05/find-in-text-sql.html
    select projectname  from psprojectitem
    where (objectvalue1,objectvalue2,objectvalue3) in
    With Srch As
    Select Str, SubStr(Max(HexStr),3) Srch_Str
    From
    Select RNum, Str, Hexcode, Sys_connect_by_path(HexCode, '00') HexStr
    From (
    Select RNum, Str, Chr(Floor(Mod(Code/16, 16))
               + Decode(Floor(Floor(Mod(Code/16, 16))/10), 0, 48, 55)) ||
           Chr(Mod(Code, 16)
               + Decode(Floor(Mod(Code, 16)/10), 0, 48, 55)) HexCode
    From (        
    Select RNum, Str, Ascii(Substr(Str, RNum, 1)) Code
      From (Select Rownum RNum From Dual Connect By Level <= Length(:Str)),
           (Select :Str Str From Dual
            Union
            Select Upper(:Str) From Dual
            Union
            Select Lower(:Str) From Dual
            Union
            Select InitCap(:Str) From Dual
    Start With RNum = 1 Connect By Prior RNum = RNum - 1 And Prior Str = Str
    Group By Str
    select
    objectvalue1,objectvalue2,objectvalue3
    from pspcmprog p, srch
    where dbms_lob.instr(progtxt, srch_str)  > 0
    );

  • How to send emails from HANA SQL Console

    Hi,
    Please guide how  to send mail from HANA Studio SQL Console.
    Is there any standard procedure in Hana Studio to send Mail( e.g. in MS SQL  "sp_send_dbmail" Procedure)

    Hi Preethi,
    Please go through the attached link:
    How to send emails from HANA
    Regards,
    Krishna

  • I need some working examples with pl/sql records and pl/sql tables.

    i am new to pl/sql tables and pl/sql records. i need some working examples on pl/sql records and pl/sql tables from basics to hoghlevel.how to use then procedures and functions and packages.

    i am new to pl/sql tables and pl/sql records. i need some working examples on pl/sql records and pl/sql tables from basics to hoghlevelThere is no such thing as PL/SQL "+tables+". This is a misnomer and creates the perception that a PL/SQL "table" is somewhat like a SQL table. Nothing can be further from the truth. The correct term is "+collection+" or "+associative array+". Compared to SQL tables, these are very primitive structures, very rigid structures, cannot scale, and can be quite expensive memory wise.
    That is not to say do not use an associative array or collection. These are very useful tools.. but only when applied correctly. Like using a collection for a bulk fetch to transfer more rows between the PL and SQL engines and thus decrease context switching.
    Unfortunately, quite often we see the row-by-row and slow-by-slow approach - where the developer uses SQL as an I/O only layer, pulls rows into expensive PL engine memory into record structures and arrays, and then process the rows there.
    So before looking at working example (even the wrong approach's code will compile and run and work in practice), make sure that you know the fundamentals of correctly using the PL engine and correctly using the SQL engine. And these fundamentals can be summed up into a very basic rule:
    Maximize SQL. Minimize PL/SQL+
    Get this rule right, and you will have a sound foundation for writing performant and scalable Oracle applications.

Maybe you are looking for