SQL*PLUS & SQLPLUS WORKSHEET

I downloaded oracle 8i personal from the web and
installation was OK.
I am a novice and I tried the following:-
scott/tiger
scott/oracle
system/manager
sys/change_on_install
demo/demo
po8i/po8i
sysman/oem_temp
So far unsuccessful. Don't know why Oracle did not include instructions on use of the software after download. Somebody please help.
Best Regards,
Paul Ly
null

Have you started the listener and the instance? I assume you have installed 8.1.7 PE. If you have done the typical installation, it will create the scott user with tiger password. I have installed 8.1.7 last week on Windows/2000 (custom installation) and selected the database installation option at the end. It did created the scott user indeed.
regards
Zafer AKTAN
Oracle DBA/Developer
null

Similar Messages

  • How to convert SQL*Plus reports to SQLDeveloper?

    Hello,
    I installed Oracle 11g and found that SQLPLUSW.EXE was not there.
    I have many scripts, reports, developed in SQLPLUS.
    How can I convert my reports to run in SQL Developer and produce the same nice output?
    It seems that SQLDev does not support columns formatting, TTITLE, BTITLE, BREAK, all the nice SQLPLUS stuff.
    Any ideas other than installing Oracle10g and running good old SQLPLUS?
    Thank you,
    YG

    Hi YG,
    Based on your comments, you have either experimented a bit or read some forum posts like these:
    Re: sqlplusw.exe not found
    SQLPLUS commands in SQL Developer
    Perhaps you could use the command line version of SQL*Plus (sqlplus.exe) which is still available in 11g and just spool the output?
    Regards,
    Gary Graham
    SQLDeveloper Team

  • CANNOT CONNECT SQL*PLUS WITH ORA-12547

    제품 : ORACLE SERVER
    작성날짜 : 2004-05-20
    발생)
    oracle 디렉토리를 변경하거나, 오라클 화일의 위치 또는 permission 을
    변경한 다음부터, 오라클을 사용하는 일반 OS account 들이 sql*plus
    에 접속할 때 다음과 같은 에러가 발생하면서 접속할 수 없는 현상입니다.
    sqlplus scott/tiger
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ERROR: ORA-12547: TNS:lost contact
    make -f sqlplus.mk sqlplus 해도 에러 없이 생성된 sqlplus 가
    위와 같은 에러를 보내면서 접속되지 않습니다.
    해결 방안)
    이 문제는 Solaris 의 Oracle 7.3.3 에서 발생합니다. listener 를 통해
    접속한 process 는 LD_LIBRARY_PATH 가 설정되어 있지 않습니다.
    따라서, listener.ora 를 다음과 같이 setting 합니다.
    (SID_DESC=(SID_NAME=FNDFS)
    (ORACLE_HOME=/appltop/fnd/6.1.1)
    (PROGRAM=FNDFS)
    (ENVS='LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib:$
    ORACLE_HOME/lib'))
    listener 를 거치지 않는 사용자들은 다음과 같이 작업하십시오
    즉, libsunmath.so.1 은 7.3.3 부터 $ORACLE_HOME/lib 에 포함되어 있는
    library 입니다. 따라서, LD_LIBRARY_PATH 에 $ORACLE_HOME/lib 가 포함되어
    있는지 확인하고, 만약 포함되어 있다면, 이 화일을 /usr/bin 으로 copy 하고
    chmod 755, chown/chgrp를 bin 하면 됩니다.
    "$ORACLE_HOME/lib" 에 있는 "libsunmath.so.1" 을 copy 하고 permission 을
    변경하는 절차는 다음과 같습니다.
    1. % cd /u01/app/oracle/product/7.3.3/lib/
    2. % cp libsunmath.so.1 /usr/lib
    3. % cd /usr/lib
    4. % chown bin libsunmath.so.1
    5. % chgrp bin libsunmath.so.1
    원인)
    oracle 을 설치한 후나 oracle product 에 변경이 일어난 후에 root.sh 를
    수행하여 화일들의 owner, group 등을 변경하는 작업을 합니다.
    이 작업 도중, library 에 setting 해두었던 link 가 끊어졌을 때에
    위와 같은 에러가 발생합니다.

    Brian Tkatch wrote:
    SQL*Plus inside the VM can connect to XE, but not to either remote server. It just hangs for a while and finally returns: ORA-12545: Connect failed because target host or object does not exist
    Sounds like hostname resolution failed.
    A hostname needs to be resolved into an IP address. So if you are using a hostname in the TNS connection string, you need to make sure that it can be resolved into an IP. Using the ping <hostname> command is an easy way to determine if the hostname is resolved.
    Some listeners (such as remote and RAC listeners), accepts a client connection, and in response redirect the client to a different hostname (and even port). For example, a remote listener can service 10 instances (each with a different service name). The client connects, requesting servcice5. The listener redirects the client to hostname ora-server5 on port 1521. The client now attempts to connect to ora-server5, by resolving that hostname into an IP and then initiating the connect call.
    So the listener can redirect the client to a new hostname - and the client needs to be able to resolve that hostname. The error you get therefore does not always relate to the initial listener connection. It can also result when the client driver follows the listener's redirect and attempt a new connection to a new host.

  • Sql*plus worksheet error

    Hi there,
    I'm using Windows 2000 SP3 with Oracle 9i Database Server release 92010
    The sql*pl worksheet work fine several time until now, when I'm clicking on SQL*PL worksheet I'm getting an error message that says:
    SQL*Plus executable may not have been installed in C:\oracle\ora92\bin.
    CreateProcess: C:\oracle\ora92\bin\sqlplus -r 3/nolog
    @c:\oracle\ora92\sysman\config\sqlplusworksheetInit.
    sql error = 193
    Thanks,
    Oded Dror
    Email: [email protected]

    changing the env variable at dos prompt will not change it for other processes. It will be changed
    only while the dos prompt window is running. to change it permanently, you need to right click on
    My Computer" icon and go to properties -> Advance Options. and change the environment values there.

  • SQL*Plus Worksheet in Personal Oracle 8.1.6

    Why does a select query in SQL*Plus Worksheet not return any results, but the same query in SQLPLUS or TOAD does?
    I am using the version that comes with Personal Oracle8i for NT (Oracle 8.1.6). Version of Enterprise Manager is 2.1.0.1.0.
    Database is Oracle8i Enterprise 8.1.5.

    What is the query you have given?
    Is it happening for all the queries or only for this one.
    Please reply.
    Regards
    Ravi

  • REPORT generating dilema SQL plus, SQL worksheet, SQL developer, when to yo

    hi i am always generating report for my company into excel sheet..
    and i encoutner a scenario where by i need to do a
    BREAK ON col skip 1 command.
    now i am wondering..
    1) i am using sql developer to export the report into excel sheet everytime. and ihave tried using the break on col skip 1 command, it will not work on sql developer.
    if i run it in a script [F5] i cannot export the data in excel..
    2) if i use sql*plus to do the report, i wont not be able to see all the columns in 1 straight row..
    even though i have set the linesize to the maximum..my tables has too many columns..
    2nd , can sql*plus generate excel file?
    3) what is the difference between sqlworksheet and sqlplus, does oracle10g still support sqlworksheet? i cant seem to find it in oracle10g
    4) somehow i feel certain mechanism inside sqldeveloper sqlworksheet are the same of sqlplus,
    anybody has a clue?
    thats all 10s

    SQL Worksheet is no longer supported.
    The SQL Developer team are trying to make the worksheet in SQLDeveloper compatible with sqlplus, but they have some way to go.
    SQL*Plus can't generate excel files directly, but you can use 'set colsep ,' to get a comma separated file of sorts.
    The maximum linesize in sqlplus is 32767. Are you sure you need all that information in one line?
    You may need to look at better report writers such as Apex or Oracle reports, or use MSQuery to pull the data directly into Excel.

  • SQL*Plus Worksheet Question

    I just upgraded to 8.1.6 and started using SQLPlus worksheet. Is there away to set output screen to display horizontal instead of vertical?
    Thank you in Advance
    null

    In some client version (8.1.5 or 8.1.6), I remember I had the same problem. I think that the solution is to use or not the semi-column at th end of the command.
    But, remember that Java SQL*Plus Worksheet is using SQL*Plus. Then if U have a lot of results to display, it's longer with the worksheet version.

  • Using variables in SQL Plus Worksheet

    I'm new to Oracle. I've developed in MS SQL for some time. I'm trying to debug a query we're using in an application. I paste it into SQL Plus Worksheet and get the message:
    SP2-0552: Bind variable "COUNTYPK" not declared.
    I could paste in a value, but I would like to define a variable before the query so that it will work the same way as it would in production.
    SELECT rsiplate.OWNER.work_area_code || '-' || SUBSTR(rsiplate.OWNER.work_phone_number, 1, 3) || '-' || SUBSTR(rsiplate.OWNER.work_phone_number, 4, 4) AS BUSINESSPHONE, trim(rsiplate.OWNER.first_name||' '||rsiplate.OWNER.middle_name||' '||rsiplate.OWNER.last_name) AS BUSINESSNAME, rsiplate.ADDRESS.address_line1 AS ADDRESSLINE1, rsiplate.ADDRESS.address_line2 AS ADDRESSLINE2, rsiplate.ADDRESS.city_name AS CITY, rsiplate.ADDRESS.state_code AS STATE, SUBSTR(rsiplate.ADDRESS.zip_code, 1, 5) AS POSTALCODE FROM rsiplate.WATERCRAFT_MASTER, rsiplate.WATERCRAFT_CURRENT, rsiplate.WATERCRAFT_REGIST_CURRENT, rsiplate.OWNER, rsiplate.WATERCRAFT_OWNER_CURRENT, rsiplate.ADDRESS WHERE rsiplate.WATERCRAFT_MASTER.WATERCRAFT_ID = rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_ID AND rsiplate.WATERCRAFT_MASTER.LF_WATERCRAFT_REGIST_ORDER = rsiplate.WATERCRAFT_REGIST_CURRENT.WATERCRAFT_REGIST_ORDER AND rsiplate.WATERCRAFT_MASTER.LF_WATERCRAFT_ORDER = rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_ORDER AND rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_REGIST_CURRENT.watercraft_id and rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_id and rsiplate.WATERCRAFT_OWNER_CURRENT.owner_id = rsiplate.OWNER.owner_id and rsiplate.WATERCRAFT_MASTER.watercraft_owner_group = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_group and rsiplate.ADDRESS.address_set_id = rsiplate.OWNER.address_set_id and rsiplate.WATERCRAFT_MASTER.data_status_code = 1 and rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_order = 1 and rsiplate.WATERCRAFT_REGIST_CURRENT.REGIST_EXPIRATION_DATE >= SYSDATE AND rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_USE_CODE = 3 AND rsiplate.ADDRESS.COUNTY_NUMBER = :CountyPK GROUP BY rsiplate.OWNER.work_area_code, rsiplate.OWNER.work_phone_number, rsiplate.OWNER.first_name, rsiplate.OWNER.middle_name, rsiplate.OWNER.last_name, rsiplate.ADDRESS.address_line1, rsiplate.ADDRESS.address_line2, rsiplate.ADDRESS.city_name, rsiplate.ADDRESS.state_code, rsiplate.ADDRESS.zip_code;

    Okay, I made some adjustements:
    SET DEFINE :
    DEFINE :COUNTYPK = '01'
    SELECT rsiplate.OWNER.work_area_code||'-'||SUBSTR(rsiplate.OWNER.work_phone_number, 1, 3)||'-'||SUBSTR(rsiplate.OWNER.work_phone_number, 4, 4) AS BUSINESSPHONE, trim(rsiplate.OWNER.first_name||' '||rsiplate.OWNER.middle_name||' '||rsiplate.OWNER.last_name) AS BUSINESSNAME, rsiplate.ADDRESS.address_line1 AS ADDRESSLINE1, rsiplate.ADDRESS.address_line2 AS ADDRESSLINE2, rsiplate.ADDRESS.city_name AS CITY, rsiplate.ADDRESS.state_code AS STATE, SUBSTR(rsiplate.ADDRESS.zip_code, 1, 5) AS POSTALCODE FROM rsiplate.WATERCRAFT_MASTER, rsiplate.WATERCRAFT_CURRENT, rsiplate.WATERCRAFT_REGIST_CURRENT, rsiplate.OWNER, rsiplate.WATERCRAFT_OWNER_CURRENT, rsiplate.ADDRESS WHERE rsiplate.WATERCRAFT_MASTER.WATERCRAFT_ID = rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_ID AND rsiplate.WATERCRAFT_MASTER.LF_WATERCRAFT_REGIST_ORDER = rsiplate.WATERCRAFT_REGIST_CURRENT.WATERCRAFT_REGIST_ORDER AND rsiplate.WATERCRAFT_MASTER.LF_WATERCRAFT_ORDER = rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_ORDER AND rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_REGIST_CURRENT.watercraft_id and rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_id and rsiplate.WATERCRAFT_OWNER_CURRENT.owner_id = rsiplate.OWNER.owner_id and rsiplate.WATERCRAFT_MASTER.watercraft_owner_group = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_group and rsiplate.ADDRESS.address_set_id = rsiplate.OWNER.address_set_id and rsiplate.WATERCRAFT_MASTER.data_status_code = 1 and rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_order = 1 and rsiplate.WATERCRAFT_REGIST_CURRENT.REGIST_EXPIRATION_DATE >= SYSDATE AND rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_USE_CODE = 3 AND rsiplate.ADDRESS.COUNTY_NUMBER = :CountyPK GROUP BY rsiplate.OWNER.work_area_code, rsiplate.OWNER.work_phone_number, rsiplate.OWNER.first_name, rsiplate.OWNER.middle_name, rsiplate.OWNER.last_name, rsiplate.ADDRESS.address_line1, rsiplate.ADDRESS.address_line2, rsiplate.ADDRESS.city_name, rsiplate.ADDRESS.state_code, rsiplate.ADDRESS.zip_code;
    But I still get this:
    SP2-0317: expected symbol name is missing
    old 2: iplate.WATERCRAFT_REGIST_CURRENT.watercraft_id and rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_id and rsiplate.WATERCRAFT_OWNER_CURRENT.owner_id = rsiplate.OWNER.owner_id and rsiplate.WATERCRAFT_MASTER.watercraft_owner_group = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_group and rsiplate.ADDRESS.address_set_id = rsiplate.OWNER.address_set_id and rsiplate.WATERCRAFT_MASTER.data_status_code = 1 and rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_order = 1 and rsiplate.WATERCRAFT_REGIST_CURRENT.REGIST_EXPIRATION_DATE >= SYSDATE AND rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_USE_CODE = 3 AND rsiplate.ADDRESS.COUNTY_NUMBER = :CountyPK GROUP BY rsiplate.OWNER.work_area_code, rsiplate.OWNER.work_phone_number, rsiplate.OWNER.first_name, rsiplate.OWNER.middle_name, rsiplate.OWNER.last_name, rsiplate.ADDRESS.address_line1, rsiplate.ADDRESS.address_line2, rsiplate.ADDRESS.city_name, rsiplate.ADDRESS.state_code, rsiplate.ADDRESS.zip_code
    new 2: iplate.WATERCRAFT_REGIST_CURRENT.watercraft_id and rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_id and rsiplate.WATERCRAFT_OWNER_CURRENT.owner_id = rsiplate.OWNER.owner_id and rsiplate.WATERCRAFT_MASTER.watercraft_owner_group = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_group and rsiplate.ADDRESS.address_set_id = rsiplate.OWNER.address_set_id and rsiplate.WATERCRAFT_MASTER.data_status_code = 1 and rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_order = 1 and rsiplate.WATERCRAFT_REGIST_CURRENT.REGIST_EXPIRATION_DATE >= SYSDATE AND rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_USE_CODE = 3 AND rsiplate.ADDRESS.COUNTY_NUMBER = 01 GROUP BY rsiplate.OWNER.work_area_code, rsiplate.OWNER.work_phone_number, rsiplate.OWNER.first_name, rsiplate.OWNER.middle_name, rsiplate.OWNER.last_name, rsiplate.ADDRESS.address_line1, rsiplate.ADDRESS.address_line2, rsiplate.ADDRESS.city_name, rsiplate.ADDRESS.state_code, rsiplate.ADDRESS.zip_code
    iplate.WATERCRAFT_REGIST_CURRENT.watercraft_id and rsiplate.WATERCRAFT_MASTER.watercraft_id = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_id and rsiplate.WATERCRAFT_OWNER_CURRENT.owner_id = rsiplate.OWNER.owner_id and rsiplate.WATERCRAFT_MASTER.watercraft_owner_group = rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_group and rsiplate.ADDRESS.address_set_id = rsiplate.OWNER.address_set_id and rsiplate.WATERCRAFT_MASTER.data_status_code = 1 and rsiplate.WATERCRAFT_OWNER_CURRENT.watercraft_owner_order = 1 and rsiplate.WATERCRAFT_REGIST_CURRENT.REGIST_EXPIRATION_DATE >= SYSDATE AND rsiplate.WATERCRAFT_CURRENT.WATERCRAFT_USE_CODE = 3 AND rsiplate.ADDRESS.COUNTY_NUMBER = 01 GROUP BY rsiplate.OWNER.work_area_code, rsiplate.OWNER.work_phone_number, rsiplate.OWNER.first_name, rsiplate.OWNER.middle_name, rsiplate.OWNER.last_name, rsiplate.ADDRESS.address_line1, rsiplate.ADDRESS.address_line2, rsiplate.ADDRESS.city_name, rsiplate.ADDRESS.state_code, rsiplate.ADDRESS.zip_code
    ERROR at line 2:
    ORA-00933: SQL command not properly ended

  • Is the SQL * Plus Worksheet included in the Oracle 10g Express Edition?

    Hello All,
    I need to install Oracle 10g for a SQL class that I will be taking this year. I will be installing it in my laptop (Pentium 4, 1GB RAM). I was told by the Professor that I needed to have the SQL*Plus Worksheet. I would like to know which version of Oracle do I need to install, and If it includes the SQL*Plus Worksheet.
    This is my first time working & installing Oracle, so I would appreciate if anyone could guide me thru this process.
    Thanks a lot,
    Ed

    No, it is not included.
    However, the same functionality, and more, is in Oracle SQL Developer - also available free and download-able from the same area as Oracle Express Edition.
    Ask your prof why he want Worksheet. If it's only for the ability to scroll and correct previous SQL (eg: easier time correcting mistakes), and loading scripts, ask if SQL Developer would be allowed. It's much superior and allows you to use XE, which will not sink your laptop like the EE version will.

  • SQL*Plus Worksheet DEFINE command

    **I hope this is the correct place to put this, I don't see a forum for SQL*Plus Worksheet.**
    I am having some trouble with SQL*Plus Worksheet. The following call to a package works fine,
    EXECUTE package_name.procedure_name ('string_name');where it is required that my argument passed to the procedure needs the quotes as part of the string. However, when I try to use a variable instead of hardcoding the 'string_name' value, ie
    DEFINE string_name = 'string_name';
    EXECUTE package_name.procedure_name (&string_name);I get an error message saying that my variable needs to be defined (the call was made passing the string w/o the quotes). How can I pass the entire string, quotes and all, to the package call? I've tried concatenating them to the variable in the DEFINE and EXECUTE commands but I can't seem to come up with the correct syntax.
    Does anybody know how to do this?

    Here is the current SQL*Plus Worksheet command, and output (works):
    EXECUTE amanda.role_executor.drop_role ('read_only');
    PL/SQL procedure successfully completed.So, now I try to pass the argument as a variable, instead of hardcoding the value to the call:
    DEFINE role_name = 'read_only';
    EXECUTE amanda.role_executor.drop_role (&read_only);
    BEGIN amanda.role_executor.drop_role (read_only); END;
    ERROR at line 1:
    ORA-06550: line 1, column 39:
    PLS-00201: identifier 'READ_ONLY' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignoredAs you can see when I try to pass the string as a variable the single quotes get lost. How can I concatenate the single quotes to the string? I've tried everything I can think of but apparently Worksheet doesn't like the || symbols.

  • SQL*Plus Worksheet formating

    I have Oracle Client 8.1.7 installed in my computer, and I can't
    seem to have the desired output format with the SQL*Plus
    worksheet.
    I have a database where the tables have several column, and most
    of these columns are text with 1024 characters length. I set the
    linesize to a huge number (say 3000), the trim and trimspool on,
    and I get the results ok.
    But, when I want to do a select from a table which is much
    smaller, the worksheet is always writing the complete linesize...
    Is there a way to display the columns according to the size they
    actually have (e.g. defined by the longest element) that is
    always valid. I mean without having to set column options for
    each table.
    Thank you in advance.
    Ana

    The column width sizing rules are a little opaque. The column size is a function of things like the width that the DB thinks the column is (could be huge if a SQL function is being selected), the column name or heading width, the linesize (for very wide columns), any global format (e.g. SET NUMWIDTH), or the explicit COLUMN FORMAT.
    For consistency and portability I'd always recommend using an explicit COLUMN FORMAT. You can never tell if someone is going to run your report after previously setting a COLUMN FORMAT of the same name. Or a new database version may come out where the default datatype of a SQL function has changed. In the past this has happened when CHARs became the longer VARCHAR2s.
    I don't think Enterprise Manager's SQL Worksheet (a simplistic interface that just calls SQL*Plus in the background) is doing anything special for formatting. So COLUMN FORMAT will work fine.
    -- CJ

  • SQL*PLUS Worksheet Width

    I'm (bery) new to Oracle. I'm trying to figure out how to make the output results of a select statement in SQL*Plus Worksheet not wrap. Is there a way to do this?
    Thank you
    JohnD

    hi friends,
    I have used SET LINESIZE 1000 to increase width and display all column details in a row.
    But now it is not scrolling till the last column details displayed on screen.Suppose there are 12 columns in my table and i could see only 8 which are displayed on my screen.
    How can i scroll to right till the last column?
    Thank you,
    Regards,
    Raghv

  • How to see the content of stored prodecure in sql plus worksheet or sql.plu

    Hi
    i want to see the content of the stored procedure on sql worksheet or sql plus. is there any command for this ?
    please let me know
    thanks

    Hi Anil:
    Following is for SQL*Plus
    If you are logged on to the schema that owns the stored procedure you can issue the following query:
    select text from user_source where name = 'MY_PROG_NAME'
    ORDER BY TYPE, LINE ASC;
    Where MY_PROG_NAME could be the name of a package, procedure or function. Note that when you look at a package source you'll get the specfification and the body listing, in that case you may want to split them into two with following queries:
    spool MY_PROG_NAME.spec
    select text from user_source
    where name = 'MY_PROG_NAME'
    AND TYPE = 'PACKAGE'
    ORDER BY TYPE, LINE ASC;
    SPOOL OFF
    spool MY_PROG_NAME.body
    select text from user_source
    where name = 'MY_PROG_NAME'
    AND TYPE = 'PACKAGE BODY'
    ORDER BY TYPE, LINE ASC;
    SPOOL OFF
    If you are logged on as SYSTEm, you can substitute USER with DBA and look at code for all schemas, however you may need to add OWNER to your query.
    DESC USER_SOURCE
    Name Null? Type
    NAME NOT NULL VARCHAR2(30)
    TYPE VARCHAR2(12)
    LINE NOT NULL NUMBER
    TEXT VARCHAR2(2000)
    DESC DBA_SOURCE
    Name Null? Type
    OWNER NOT NULL VARCHAR2(30)
    NAME NOT NULL VARCHAR2(30)
    TYPE VARCHAR2(12)
    LINE NOT NULL NUMBER
    TEXT VARCHAR2(2000)
    Hope this helps,
    Thomas

  • Giving parameter to spreport.sql in Sql plus worksheet

    can any one please tell me how can we give value for the begining snap and ending snap to spreport in sql plus worksheet
    best regards
    asif

    define begin_snap=10
    define end_snap=66
    @ C:\oracle\ora92\rdbms\admin\spreport.sql
    Best Regards
    Krystian Zieja / mob

  • Cancel runnning SQL in SQL*Plus Worksheet?

    Hi,
    can I Cancel a runnning SQL in SQL*Plus Worksheet?
    Thanks
    Markus

    Probably not in current versions.
    SQL*Plus Worksheet is just a Java wrapper around
    command-line SQL*Plus. I recall the EM team were keen
    to see a cancelling feature in 10g, which is one of the
    reasons EM 10g will call iSQL*Plus.
    The iSQL*Plus web interface has had cancel for a few versions
    already. It has a button specially for that.
    (For reference, the EM forum is at Enterprise Manager
    -- CJ

Maybe you are looking for