Required help in setting sqlplus environment

Hi,
I want some hint regarding settigns of sqlplus environment.
Following is script i run using unix .
--------------------------------------------------test.sql-----------------
set serveroutput on
set feedback off
DECLARE
min_id NUMBER:=&1;
max_id NUMBER :=&2;
student_id NUMBER := &3;
BEGIN
DBMS_OUTPUT.PUT_LINE('some usefull command');
END;
EXIT;
-------------------------------------End test.sql-------------------------------
I use following command to run this script.
sqlplus -s user/password@database @test.sql 10001 20000 5 > out.log
After running this command i get following output in out.log
old 3: min_id NUMBER:=&1;
new 3: min_id NUMBER:=10001;
old 4: max_id NUMBER :=&2;
new 4: max_id NUMBER :=20000;
old 5: student_id NUMBER := &3;
new 5: student_id NUMBER :=5;
'some usefull command'
My doubt is is there any way to suppress the junk created by sqlplus.
How to avoid following statement to be written in output.
old 3: min_id NUMBER:=&1;
new 3: min_id NUMBER:=10001;
old 4: max_id NUMBER :=&2;
new 4: max_id NUMBER :=20000;
old 5: student_id NUMBER := &3;
new 5: student_id NUMBER :=5;
Thanks
Rajiv

I am not sure what the intent of this is, or in what version you intend to utilize it, but this doesn't make any sense: At least as it is written.
The SQL*Plus environment should be set in glogin.sql and login.sql.
What you've posted, by way of examples, looks like schoolwork. Perhaps you can clarify if using the proper configuration files does not do what you want.

Similar Messages

  • Required help on setting up blaze DS.

    Hi,
    Required help on setting up blaze DS.
    I have Blex builder 3 and Blaze DS turnkey version.
    Would any one help me in setting up the java application on Blaze DS.
    Do i require to place Blaze DS and flex(client code) on same system.
    As of now i have Blaze DS on my local system and Flex on one of test server.
    Thanks in advance
    Regards,
    Anil

    Thanks, one question, i have downloded Blaze DS turnkey version, could not srtart tomcat which is in Blaze DS.
    Hence making use of tomcat installed on my local system which is works fine. In order to settup Blaze DS i copied required jar files from Blaze DS and flex configuration files(xml files) .
    However Flex Builder3 is installed on one of test server, when i tried to create Flex project i could not validate Server location.
    Is it required to have both Java server and flex builder on same system?

  • Require help with setting up MFA for On-premises RD Gateway

    I've been unable to setup up MFA correctly. The only step by step guide I was able to find was: http://www.rdsgurus.com/uncategorized/step-by-step-using-windows-server-2012-r2-rd-gateway-with-azure-multifactor-authentication/
    I've tested this on a single server just as the guide, without succes.  I now have 4 seperate servers:
    1. GW server (which is also the DC)
    2. NPS server
    3. MFA server
    4. RDS server
    I'm not exactly sure what radius client, server and target to point to what. Could someone help me understand the sequence?
    Much obliged!

    RD Gateway uses NPS by default. RD Gateway uses its local NPS to send the RADIUS request to the MFA Server. The MFA Server typically proxies the RADIUS request back to NPS running on that same server. NPS validates the username/password with AD and returns
    the Access Accept to the MFA Server. The MFA Server performs MFA and returns the Access Accept/Reject to RD Gateway. So you don't necessarily need a separate NPS Server. You just need the RD Gateway Server and the MFA Server in addition to your domain controllers.

  • Set DISPLAY environment variable -- in DBCA not working at AIX OS

    Hi,
    I want to create new database in AIX OS and database is oracle 10g:-
    When i say DBCA it is giving below error, what should i do?
    $ dbca
    DISPLAY not set.
    Set DISPLAY environment variable, then re-run.
    Please help...

    Pravin wrote:
    How to set the DISPLAY environment variable in AIX?Usual format is:
    +<host>:<display-number>+
    E.g.
    export DISPLAY=192.168.0.235:1
    Where the host is the hostname or IP address of the client platform running a X-Server. If the X-Server is running locally, then this entry can be omitted.
    The display-number is the display number of the X-Server to use. A single X-Server can have multiple displays. E.g. Unix server running a X-Server can have 10 users connected via X-Terminals and will this have 10 displays.
    Judging from X-Windows questions asked on OTN, it seems to be a tad complex to grasp for some - especially those from a MS Windows background as X-Windows is very different and also reverses the client-server concept, requiring the X-Server component to be running on the client platform (where the server platform runs the program that is the X-client).
    So it is a lot easier to rather use something like VNC instead - supported on most Unix platforms, Linux, Windows and Apple's OS/X.
    Simply run the VNC server on the server platform to create a virtual container for running the X-server display. Connect from a client using a VNC client.
    As it uses the RFB (Remote Frame Buffer) protocol, it is a lot faster than running the slower and larger X11 protocol required for X-Windows connectivity over TCP/IP.

  • I am facing wifi and mobile 2G signal issue after upgrading to IOS 6 from IOS 5 in IPhone 3GS. Please help, restoring setting even didn't helped.

    I am facing wifi and mobile 2G signal issue after upgrading to IOS 6 from IOS 5 in IPhone 3GS. The mobile carrier signal as well as WIFI suddenly drops zero and are then restored automatically. Sometimes i cannot conenct to WIFI even standing infront of WIFI router. Please help, restoring setting even didn't helped.

    Update: my phone's connecting to the WiFi again. I don't know what did the trick. I did nothing since reinstalling the software. It hadn't worked then, it is now. I tried connecting to my dad's phone's hotspot( he uses a Moto G), and it worked. I then tried connecting to the WiFi at a friend's house, and when I came back home, my phone was able to connect to my WiFi! Is it of any significance that my friend's router doesn't require a password? My issue has been resolved( for now; I hope I'm not counting my chickens before they've hatched). For anyone facing a similar issue, I suggest you try everything I did:
    1. Turn your router off for a minimum of 30 seconds, turn it back on and try connecting.
    2. Click on the WiFi network you are connected to, scroll to the bottom, tap "Renew Lease".
    3. Do a soft and hard reset.
    4. Reset network settings.
    5. Back your data up, erase all content from settings menu, restore from backup.
    6. Reinstall your software( put it in recovery mode).
    I am not sure which of the above worked for me. Make sure you try everything. If none of the above works, take it to a genius bar or an authorised service provider. Good luck! :)

  • Need HELP with JAVA RUNTIME Environment

    Hi,
    I just download J2EE, J2SE, and Ant from sun site. I am having problem to compile java program. Here what I did
    1)     Download J2EE at c:\j2sdkee1.3.1 directory
    2)     J2SE at c:\Program Files\Java\j2re1.4.1_01 dir
    3)     Ant at ant c:\Jakarta_ant-1.3 dir
    My operating system is windows 2000. Therefore, I set up environment variables from system ->Advance ->Environment ->Variables ->System variables ->New
    Variable = ANT_HOME
    Value = c:\ant\Jakarta_ant-1.3
    Variable = J2EE_HOME
    Value = C:\j2sdkee1.3.1
    Variable = JAVA_HOME
    Value = c:\Program Files\java\j2re1.4.1_01
    Variable = CLASSPATH
    Value = c:\j2sdk221.3.1\lib\j2eetools.jar
    Edit
    Variable = Path
    Value =
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\MSSQL7\BINN;%JAVA_HOME%\bin;%J2EE_HOME%\bin;%ANT_HOME%\bin
    I restart my machine and try to execute the following command from command Prompt in c:\ dir
    C:\> j2ee ?verbose
    The following message pop up
    ?C:\Program? is not recognized as an internal or external command, operable program or batch file.
    I would appreciate if someone explain me what I did wrong in set up so this test program is not working.
    Do I need to run j2ee ?verbose some other directory? Which directory should I compile my java file?
    Did I set up my environment variable correctly or I need to do something else?
    Please help me out.
    Thanks a lot.
    Sam

    try to set JAVA_HOME environment variable to
    C:\PROGRA~1\java\J2RE14~1.1_0
    when you dir name contains space symbols, you should enclose it in commas or use a short form
    "C:\Program Files\java\j2re1.4.1_01"
    is equals to
    C:\PROGRA~1\java\J2RE14~1.1_0

  • Why do we actuallya need the setting of environment variables?

    Hello guys,
    I read that, in order to connect to the database via SQL*Plus, we need to have the environment variables set. So, SQL*Plus is a command tool, which doesnt know over which path to connect to db, if the environment variables are not set?
    How about the needs of setting environment variables at point of view of MS-DOS? I know that over MS-DOS we can check if the environment variables are already set or not. Or we can actively set the environment variables.
    When should we actually set the environment variables? Before we run the GUI or after? I read, that if we set it before we run the GUI, then the setting will be taken over when it comes to that step by running GUI. I am curious, since this would be interesting to know, if we use other version than XE.
    Thanks..

    Oracle's flexibility ... many different versions working the same on many different versions of many different operating systems ... means that a single consistent installation and configuration methodology must work everywhere so as not to have the limitations of other competing products that work on only a single operating system or require that one learn a different syntax and methods for different versions.
    Be grateful Oracle is as it is. Your competence in one version and operating system translates into competence in others.

  • I require help with my first website

    As you can see from many of my recent posts, I am new to web development, and I have decided that I am going to need some help.
    This forum has been a huge help, and I will continue using it, but the reality of the situation is that progress is slow as I am learning as I go, each junction I reach and require help with is holding up progress, which wouldn't be a problem if I had more spare time, but I simply don't.
    Is anybody willing to help me? It would be paid work so I would need to discuss how this would work with rates etc... here are some details:
    The domain is already setup, and you can see the first page I have been working on here: http://www.elliotnewman.com/index/test7.html
    The closet website I can find for your reference is: http://www.jaspaljandu.com/home/
    My site will initially not be quite as established as Jaspal's, but in essence the functionality will be similar. The things I know of that I will need help on are:
    Setting up the ordering and payment process when a customer wants to order a print, including automated email notifications, and check out forms ( this may also require membership fields or maybe through paypal)
    Setting up the interactive framing graphics - ref - http://www.markgray.com.au/gallery/limited-edition-prints/forgotten-island.php
    Potentially helping to setup a blog
    Work with me on integration - and updates (ie build the all the templates needed so updates and new images can be posted by myself easily)
    Automation of the counts of the limited editions
    Setting up links to Facebook, twitter, linkedin etc
    Reviewing and testing any code that I create
    Along with these points I will also need standby help with the code I am directly working on, so file sharing may have to be setup. It is also worth noting that I will supply all the graphics and the design elements for every page, I will also be very specific with briefs as I know exactly what I want to achieve.
    If anybody is interested please send me a private message, I would need to see some examples of your experience, details on your availability and your rate - whether thats per day, per hour and a rough estimate on how long you think the work will take.
    Also, if anybody knows somebody outside this forum that you think could help me then please also forward this on.
    Apologies if this is not the best place to post this.
    Elliot.

    Hi
    In addition to Nancy s comments, reading the following line -
    Along with these points I will also need standby help with the code I am
    directly working on, so file sharing may have to be setup.
    What you are basically after is a tutor, to guide you in what you are doing. In this respect it may be worth your while to read-up on designing web pages,as after a quick glance of the code, (from your previous post regarding the background image ) the main problem you are having is that you are not 'implementing' a consistent design/development procedure.
    Try reading the following -
    General tutorials on html, css, etc - http://www.w3schools.com/.
    Design of web site, general - http://articles.sitepoint.com/article/principles-beautiful-web-design.
    PZ
    www.pziecina.com

  • How to set ORACLE_HOME environment variables in win 2003

    Can anyone tell me how to set ORACLE_HOME environment variables in Win2003
    Please tell me the significance of that also.It will be really helpful if u can help me out from Path variable seting of JAVA SDK also... Thanks in advance...

    hi
    use this code IN FORMS60 variable in Regedit
    \\server\DATA\store\Forms;
    Rizwan

  • Getting help for setting up a "good" network

    Hi all,
    I've been "managing" our network and doing the IT stuff even though I'm not a "true" IT guy, just a graphic artist dabbling in the stuff. I want to get some help on moving our multiple public IP address network to a more secure single Public IP address. I don't know where I can get that help so I'm taking my chances here even though this is not specific to Apple server.
    Here's the equipment we have:
    Apple Extreme dual band
    Apple Server 10.6.3 for file services, iCal, iChat, DNS, Open directory, Address book, Web.
    FTP server using CrushFTP on a Mac Pro running 10.6.3
    Two ADSL modem from same ISP, one 16 Mbps the other 10 Mbps
    a Peplink Balance 310 for load balancing the traffic (and it's not working as advertised as far as I could configure it.
    30 static IP addresses hooked to the 16Mbps modem/router
    a gigabit switch ASANTE Intracore IC36240
    a 100 mbs switch ASANTE intracore 3524
    I'd also like to be able to log into any machine remotely with ARD. Right now, it's a peace of cake with everyone having it's own public IP address, but how will I make this work with DHCP? I'd also like to be able to have VPN enabled.
    I have no idea how to make the best of this equipment so if you have any insight or know where I can get some help to set that up, that'd be great!

    There are as many 'good' networks as there are network requirements and hardware combinations.
    Get a server-grade firewall, if that peplink router can't provide that function.
    Figure out what's up with the peplink router.
    If the peplink isn't working and if it doesn't have firewall capabilities (I've not read the specs), I'd replace it with a firewall with dual uplinks.
    Once you get DHCP going, you'll have two IP subnets, and you'll have to set up subnet routing for your gear. Other than that (and with that external server-grade firewall), the remote connections are straightforward.
    The server-grade firewall should have VPN end-point servers for pptp and l2tp, and probably ssl, and probably a DMZ. RADIUS support, likely. For this case, dual uplinks and support for running both.
    Stay out of 192.168.0.0/16 for your private stuff.
    I'd likely set up the public static IP for the router, the DMZ, and key stuff that needs to be public facing. I might well run the rest of the stuff in a private IP block.
    None of which involves Mac OS X.

  • 很全的help.sql 安装Oracle的sqlplus帮助系统

    在linux系统下的时候,我们可以通过man命令,获得系统里对某个命令的usage的解释。
    在sqlplus里我们也可以通过help和?命令。
    sqlplus的帮助主题对应的是数据库里的一张表(system.help)。
    在$ORACLE_HOME/sqlplus/admin/help/目录下的helpus.sql包含了这个表的帮助主题
    不过oracle自带的help和?的解释太少了
    在网上找了很久终于找到一个很全的help.sql叻
    下载文中附件,用system登录,因为这个是建立在system的schema里的help表里的。
    直接执行脚本就可以了。比如我把这个sql保存到$ORACLE_HOME\sqlplus\admin\help里,
    大家在这里可以看到有
    helpbld.sql
    helpdrop.sql
    helpus.sql
    hlpbld.sql
    这四个文件,这就是oracle自带的help脚本。可以执行
    helpbld.sql来安装oracle默认的help, 这里会提示你输入两个参数,看了这个源文件。
    两个参数一个是当前路径,一个是helpus.sql, 还是用system来执行,执行完就安装了help,
    就可以使用我上面的那些方式。这个是默认会安装的。
    要安装我这个最新的help文件,只需要执行就可以了
    SQL>conn system/systempwd;
    SQL>@?/sqlplus/admin/help/helpbld.sql
    输入 1 的值: F:\developer\oracle\product\10.2.0\db_1\sqlplus\admin\help
    输入 2 的值: F:\developer\oracle\product\10.2.0\db_1\sqlplus\admin\help\help.sql
    这里就会执行了,执行是有一些和默认的有冲突,可以忽略这些错误。
    成功以后,我们执行一下
    SQL> select count(*) from system.help ;
    COUNT(*)
    5085
    呵呵呵一下多了好多条了哟
    SQL> help create database;
    引用:
    CREATE DATABASE
    Use this command to create a database, making it available for
    general use, with the following options:
    * to establish a maximum number of instances, data files, redo
    log files groups, or redo log file members
    * to specify names and sizes of data files and redo log files
    * to choose a mode of use for the redo log
    * to specify the national and database character sets
    Warning: This command prepares a database for initial use and erases
    any data currently in the specified files. Only use this command
    when you understand its ramifications.
    .......这里还要好多有关create table的帮助信息,我就不写了。
    有了这个帮助系统,要查一个命令的详解,正是太方便叻。
    help.sql文件【 下载 】

  • SQLPLUS* environment doubt ...

    when i use SQLPLUS environment ...i always need to set the LINESIZE to 1000 ...so tht my data comes in proper 1 line .... But it only remains for tht particular session ..
    so is there any setting so that i can change ..the DEFAULT linesize of 80 to 1000 for permanent ...

    i know this method ...but this method remains for a particular session on ...
    ..& what i want to do is to make these changes of line size = 1000 permamne t...
    so tht whenever i open my sqlplus environment next time ... i do not need to set the linesize ..again .....

  • Bash: xhost: command not found  AND  set DISPLAY environment varibale

    Hi all, i have this issue, when i try to execute
    -> xhost +amjad.iqbal.com
    bash: xhost: command not found
    -> DISPLAY = amjad.iqbal.com:0.0
    -> export DISPLAY
    after which if i start installation of oracle database 11g, it says display variable has not been set.
    PLEASE HELP!

    Hi,
    when i try to execute "service vncserver status" o/p: unrecognised service
    when i execute "ps -ef|grep vnc" o/p: root 1981 1700 1 11:30 tty1 00:00:00 grep vnc
    and when i downloaded VNC and tried to install, it says "failed dependencies: libstdc++-libc6.2-2.so.3 is needed by vnc-4.1.3-1.i386"
    to install i used command -- "rpm -ivh vnc-4_1_3-x86_linux.rpm"
    because of which im not able to complete your steps and im not able to set display environment variable and my installation is not getting started.
    Please advice

  • HT201209 Hey guy I need to help please set balance my app id = 0

    I need to change location my id but I can't make because I have  point
    In store please help me set my point app id to null thk
    <Subject Edited by Host>

    You will need to Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I took my iMac to be fixed and when i got it back, mail was not set up. I called Apple Support and they helped me set up mail. Then the emails went to trash on the iMac and on the MacBook Pro (same emails). There are no numbers by the 'inbox' to tell how

    I took my iMac to be fixed and when I got it back, mail was not set, so I called Apple and they helped me set up mail. Now the new mail goes to trash and there is no number by the 'inbox' to tell me how many new messages I have. I cannot save a draft to 'drafts.' There is a large number by 'trash' (I think all mail went to trash - including drafts). When I send myself an emai, it goes to trash also. This is on both my iMac (the one taken in) and my MacBook Pro (same emails) which was not taken in.
    I went to 'rules' but have no idea what to do there. There are no rules in the rule box. When I click 'add rule' it puts 'rule 1' in the rule box, but since that was not there when I took it in, I delete it to have an empty rule box.
    Can someone pleasehelp me. I am completely stupid with all this. Do not under stand what is suppose to be set up in 'rules.'
    Thank you so much,
    Arudi

    Now new mail is coming to both computer's inboxes but there is no number on the stamp icon on dock to show number of emails on the iMac. Nor is there a number by either email address under MAILBOXES/inbox (sidebar) on the iMac. This number is showing on MacBook Pro.
    I also can save drafts now on both computers.
    Seems the Pro is fixed and the iMac is only missing the numbers on dock icon and by addresses in inbox.
    Now that the problem is less, I feel i am wasting your time but will continue so maybe I can get those numbers back.
    Two emails > AT&T email and gmail.
    Apple's Mail program for email - yes, and gmail.
    IMAP for both accounts.
    Did not change mail configuration on MacBook.
    The iMac and MacBook Pro have the same mail configuration except in Accounts/mailbox behaviours/store draft messages on the server was not marked on MacBook > it is now.
    'Store junk messages on the server' was marked on one computer for gmail, but is unmarked on both now.
    On the iMac, Accounts/Accounts info/Outgoing mail for gmail is smtpgmail.
    On the MacBook Pro for gmail it is smpt.gmail.com (plus) my email address.
    Rules/Add rule window, on the MacBook third line is 'Any Recipient', on the iMac third line is 'From."
    The last box on that line has my email address on the MacBook.
    The last box on that line has the last address I sent an emil to (last night), on the iMac.
    On the last line on iMac, no box was selicted for 'to mailbox' > I choose 'inbox' because it is on the MacBook Pro.
    Now I have a Rule #1 and am not sure I should have because there was no rules marked when I took the computer in.
    Thank you. I relized I had done the labeling wrong when so much of my question appeared twice and no one else's did. I know how to do it now.
    Thank you so much,
    Arudi

Maybe you are looking for

  • Different indicator based on filtered input

    Dear all, I am trying to indicate the radar range based on a certain payload value. I filter out the CAN frames (Starting with ID 513) which give me the status. In the payload, the fourth byte value indicates the range ie 32, 3C, 46, 50, 5A, 64, C8 i

  • BRS configuration- Posting directly to customer account

    Hi, I have done BRS configuration and I am able to do clearing, posting to bank charges etc based on configuation when I upload the bank statement thro FF_5. But I have a new scenario, where while uploading a Bank statement thro FF_5, based on the ex

  • Convert PR to PO

    Hi i am creating PO with reference to PR (a/c assignment cat: Q ) in PO am trying add item category as "L" then it is not allowing me to save PO, getting error pl tell me the reason. Is standard SAP behaviour ? we should not change any information wh

  • The GR-based IV is tick marked & it is in grey Field,Kindly help me how to

    Dear All While creating Framework PO,The GR-based IV is tick marked & it is in grey Field,Kindly help me how to remove the tick mark. Correction did in Vendor master.Kindly let me know whatelse i have to do.

  • How to set  row height  for  each row

    Hi i am trying to set rowheight of row in a JTable using setRowHeight(row,rowheight) it is not affecting on Table.but if i use setRowheight(rowheight) it applying entire table ,please help me to solve this problem after setRowHeight(row,rowheight), i