Env. variable for sqlPlus to search for sql scripts?

On Oracle 11.2, on win / (or Win 2008 64bit) I would like to start sqlPlus and call some package scripts wich are in $ORACLE_HOME\rdbms\admin folder..
but I would not like to move to that folder or to call scripts with full filename..
so, is there some environment variable wich tells sqlPlus in wich folder to search for .sql (.plb & other) scripts?
regards,
EDIT: I think it should be something like ORACLE_PATH
Edited by: 846417 on Jul 19, 2011 5:34 AM

Try SQLPATH

Similar Messages

  • Env variable for custom top showing diffent values

    hi,
    we cloned the prod to UAT then the
    value for env variable for custom top showing different values.
    ie,
    backend it is showing
    echo $XXECO_TOP
    /oracle/UAT/apps/apps_st/appl/xxeco/12.0.0 (this is the correct value)
    from the front end when we submit the "print environment variable" concurrent request it shows the following incorrect value
    /dev/oracle/app/oraprod/apps/apps_st/appl/xxeco/12.0.0 (this is prod value)
    please let us know how to correct the value
    Edited by: 831498 on Feb 18, 2011 6:26 AM

    Hi,
    Post your Query to http://forums.oracle.com/forums/forum.jspa?forumID=475
    Regards,
    Gyan

  • Do I need to set  system env variables for weblogic and SOA server installation?

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

    Hi All,
       I already have two weblogic application servers on my machine(that were installed by others).
    I observed some environment variables were also set in System variables(ORACLE_HOME,WEB_SERVER_HOME etc) section in Env variables section(Start Menu---> Computer --> properties ---).But why do we need to have system environment variables wherein we already have those variables in files like setDomainEnv.bat or/and setSOADoaminEnv.bat for each server.
    And one more thing system variables will be applicable for all servers(the whole machine) right.It may spoil the installation of new servers and present servers as variables should be unique to each server.
        I want to install weblogic and SOA server installation.
    So Can I remove the existing system variables(as they will applicable for every server) and install weblogic and SOA server installation without setting up the environment variables?
    Especially I have multiple Weblogic servers,In that case how it would be to have environment variables(JAVA_HOME,WL_HOME,ORACLE_HOME etc)?
    Please guide me on this to installl SOA suite .
    Thanks in advance

  • Setting NLS_LANG env variable for adcmctl.sh

    How do set the NLS_LANG env variable specifically for adcmctl.sh? Currently it gets overridden by the NLS_DATE_LANG env variable. I'd like to set it to blank if possible.
    Thanks in advance!

    Unfortunately there is no way to change the session character set on the fly .
    So you are pretty limited on what you can do ..
    1. Start up multiple instances of the report server on your machine, one per langauge.
    2. Try Oracle Report which support UTF8.

  • Default directory for sql script in iSqlplus 10g

    I want to run an sql file from the url as "http://machine_name.domain:5560/isqlplus/dynamic?script=http://machine_name2.domain/myscript.sql
    ". What is the default directory to place the file myscript.sql in? Do I need to create a DAD for specifying a different directory?
    Am using Oracle 10g.
    AN

    Hi Alison,
    I tried putting the sql script on different directories on the Oracle server but the url doesnt seem to find the script at all. It gives an error "Cannot find sql script".
    I have not installed Oracle Application server 10g yet. Am only running Oracle Database 10g with iSqlplus and PL/SQL.
    AN

  • Escape code for sql scripts

    Hello,
    I have a sql script with an insert statement with the character '&' in the values clause, but it always prompts me for a value.
    Does exist an escape character for the '&'?
    Thanks

    Hi,
    Add
    SET SCAN OFF
    in the begining of the SQL script.
    Regds,
    -Sreeram

  • Default Connection for SQL scripts

    Hi everybody.
    Can somebody tell me if there is a way to set a "default connection" in SQL Developer?
    What I want to achieve: When I'm opening an SQL script with the SQL Developer it should already be chosen a defined connection, so that I only have to run the script.
    Normally after opening a script I have to choose manually a connection before running it. That's very annoying, if you have to run more than 100 scripts.
    Thanks in advance,
    Stefan

    A popular request. I suggest you vote on the various requests for this at the SQL Developer Exchange, to add weight for possible future implementation.
    Have fun,
    K.

  • Log file for sql script

    Hi all,
    i ran a sql script to create indexes. it finishedits job. Now if I want to have the log of that what should have I added to the script.
    (The sql script is nothing but a bunch of create index statements)

    Hi,
    Use SPOOL.
    Eg:
    spool c:\test.log
    select * from dba_users;
    spool offMore info here:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12043.htm#SQPUG125
    HTH,
    Paulo.

  • Job Scheduling for SQL Script procedure

    Hi,
    I am trying to activate an xsjob file with below format . But i am getting invalid file content error. Not sure where is the mistake. Unable to activate this xsjob file from my project explorer. Any inputs?
    My SQL Script procedure is in package JobScheduler which is again in package opint. REF_INQTOORD is the name of the procedure.
    "description": "Run OPI Jobs at regular intervals",
    "action": "opint.JobScheduler::REF_INQTOORD",
    "schedules": [
    "description": "Run OPI Jobs at regular intervals",
    "xscron": "* * * * * * 59",
    regards,
    Deepthi lakshmi.A

    Thanks Thomas.
    I was facing the same issue and removing the extra comma fixed it.
    However the extra comma is brought in with the template code that is provided in the Studio. Might be something to check and get removed from the template.
    Regards
    Prashant

  • Condition variable for sql query

    I have created the follwing query which adds the open sales orders and forecasts to create a projected cashflow.  The query works fine except I would like to be able to enter the forecast code, rather than have it hard coded.  If I enter Where OFCT.code='[%0]', I get no results for the forecast. 
    SELECT     FCT1.ItemCode "Item", FCT1.Date "Date", FCT1.Quantity "Qty", ITM1.Price "Price", (FCT1.Quantity*ITM1.Price)"Ext Price"
    FROM         OFCT INNER JOIN
                          FCT1 ON OFCT.AbsID = FCT1.AbsID INNER JOIN
                          ITM1 ON FCT1.ItemCode = ITM1.ItemCode
    WHERE     (ITM1.PriceList = '2') AND (OFCT.Code ='5/24/2010')
    UNION
    SELECT          RDR1.ItemCode "Item", RDR1.ShipDate "Date", RDR1.Quantity "Qty", RDR1.Price "Price", (RDR1.Quantity*RDR1.Price)"Ext Price"
    FROM          RDR1
    WHERE          RDR1.LineStatus = 'O' and  RDR1.OpenQty >'0'
    ORDER BY DATE
    Edited by: Sandra Clavell on May 27, 2010 3:50 AM
    Edited by: Sandra Clavell on May 27, 2010 3:51 AM

    Try this:
    Declare @fcod char(16)
    set @fcod/* select f.code from ofct f where f.code*/='[%0]'
    SELECT FCT1.ItemCode "Item", FCT1.Date "Date", FCT1.Quantity "Qty",
    ITM1.Price "Price", (FCT1.Quantity*ITM1.Price)"Ext Price"
    FROM OFCT INNER JOIN
    FCT1 ON OFCT.AbsID = FCT1.AbsID INNER JOIN
    ITM1 ON FCT1.ItemCode = ITM1.ItemCode
    WHERE (ITM1.PriceList = '2') --AND (OFCT.Code =@fcod)
    UNION
    SELECT RDR1.ItemCode "Item", RDR1.ShipDate "Date", RDR1.Quantity "Qty",
    RDR1.Price "Price", (RDR1.Quantity*RDR1.Price)"Ext Price"
    FROM RDR1
    WHERE RDR1.LineStatus = 'O' and RDR1.OpenQty >'0'
    ORDER BY DATE

  • Creating a range with Substitution Variables for Report Script

    Is it possible to create a range with substituion varables for use in a report script. For example instead of listing "Jan" "Feb" "Mar" "Apr" in the report script can I use a sub varaible like Jan:Apr that will list them all out?

    while I have not had luck with ranges in report scripts, others have. You could have a substitution variable the is "Jun" "Jul " "Aug" or whatever you want the members to be. and it will replace jusr fine

  • Env settings for oracle user ,  when installing Oracle on linux

    Good Morning Oracle Experts ;
    Basicallly my major subject is Electrical and Electronics
    I am very new to ORACLE/LINUX [ LEARNING  ORACLE  DBA ] Technology.
    I have THREE questions .. Please help me to understand oracle concepts.
    QUES  1 :
    i am getting confused about “setting bash_profile” and it’s contents
    I googled , it said to set env variables for oracle user. Ok .
    Can anyone explain clearly what exactly happens when “ setting bash_profile ” ?
    MY   BASH_PROFILE SETTINGS
    My  bash_profile having  following contents  :
    +# Oracle Settings+
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=TSH1; export ORACLE_SID
    ORACLE_TERM=xterm; export ORACLE_TERM
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
    +#LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL+
    +if [ $USER = "oracle" ]; then+
    +if [ $SHELL = "/bin/ksh" ]; then+
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    fi
    QUES  2 :
    Please  note  : This  url  says   lot of  env  variables
    http://www.idevelopment.info/data/Oracle/DBA_tips/Unix/UNIX_4.shtml
    2 . In my case , Why following env variables *[LD_ LIBRARY_PATH , CLASS_PATH , PATH]* are missing ?
    My  pc  showing  only  four  env variables   $ env  |  grep  -e  ORA  -e  TNS
    ORACLE_SID=TSH1
    ORACLE_BASE=/u01/app/oracle
    ORACLE_TERM=xterm
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    QUES 3 :
    *[ LD_ LIBRARY_PATH , CLASS_PATH , PATH ]*
    *Are  they  [ above mentioned  env  variables] necessary (or) not necessary for oracle DB ?*
    When listing  env  variables ,  why   they  are  not  displayed  ? (anything  wrong ) ?
    As  a  beginner , I expect  some  clean  technical  information    to  improve my knowledge  ..
    Thanks in advance ;

    Required Output
    *$ id*
    uid=502(oracle) gid=502(oinstall) groups=502(oinstall),503(dba)
    *$ env | sort*
    CLASSPATH=/u01/app/oracle/product/10.2.0/db_1/JRE:/u01/app/oracle/product/10.2.0/db_1/jlib:/u01/app/oracle/product/10.2.0/db_1/rdbms/jlib
    COLORTERM=gnome-terminal
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-s2yfterD04
    DESKTOP_SESSION=default
    DISPLAY=:0.0
    G_BROKEN_FILENAMES=1
    GDMSESSION=default
    GNOME_DESKTOP_SESSION_ID=Default
    GNOME_KEYRING_SOCKET=/tmp/keyring-oJUn3E/socket
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
    HISTSIZE=1000
    HOME=/home/oracle
    HOSTNAME=linuxserver
    INPUTRC=/etc/inputrc
    LANG=en_US.UTF-8
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    MAIL=/var/spool/mail/oracle
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    ORACLE_SID=TSH1
    ORACLE_TERM=xterm
    PATH=/u01/app/oracle/product/10.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/oracle/bin
    PWD=/home/oracle
    SESSION_MANAGER=local/linuxserver:/tmp/.ICE-unix/4394
    SHELL=/bin/bash
    SHLVL=2
    SSH_AGENT_PID=4450
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_AUTH_SOCK=/tmp/ssh-cbAqMq4394/agent.4394
    TERM=xterm
    TMP=/tmp
    USER=oracle
    _=/usr/bin/env
    WINDOWID=42039592
    XAUTHORITY=/home/oracle/.Xauthority

  • Prompt for input from PL/SQL script.

    I have PL/SQL script running in SQL*Plus. I need to prompt for user initials (all users log-in with the same username) and make those initials part of the script.
    How do I do that?
    I know how to do it for SQL script:
    ACCEPT X PROMPT 'ENTER X: '
    select ....
    where column1 = '&X'
    But what about PL/SQL?
    Thanks a lot.
    -John

    PL/SQL is not interactive, so you can't prompt from it, but you can pass parameters :
    TEST@db102 SQL> set veri off
    TEST@db102 SQL> get inp
      1  declare
      2     p_inp   varchar2(100);
      3  begin
      4     p_inp := '&1';
      5     dbms_output.put_line(p_inp);
      6* end;
    TEST@db102 SQL> @inp PM
    PM
    PL/SQL procedure successfully completed.
    TEST@db102 SQL>                                                              

  • Dynamic ORACLE_HOME in env variable PATH  not working

    Hi,
    We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
    Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
    We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
    First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
    Have changed system env variable PATH to have  %ORACLE_HOME%\bin; at very start
    when do PATH to check value shows
    literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
    How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    user5716448 wrote:
    Hi,
    We have an issue whereby we want the PATH to be dyanmic with respect to the ORACLE_HOME.
    Have implemented the solution in 'ORA-12557: TNS:Protocol Adapter Not Loadable' While Running OUI [ID 735400.1 but not working.
    We have Windows 2008 R2 server with Oracle 11.2.0.3 client installed.
    First when did set to check environment varibales, fouND no env. variable for ORACLE_HOME even though in registry so have set ORACLE_HOME as user env variable.
    Have changed system env variable PATH to have  %ORACLE_HOME%\bin; at very start
    when do PATH to check value shows
    literally as %ORACLE_HOME%\bin at start rather than translating to the real physical location as it does with other logical variables.
    How can we ensure translates the ORACLE_HOME correctly so PATH is O.K.
    open Command Window & issue command belowecho %ORACLE_HOME%COPY  the results, then PASTE all back here                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Java ENV variable on Linux

    Hi ,
    I am new to linux can any one please guide me the steps to follow to update the ENV variable for JAVA_HOME in Linux.
    Thanks
    Raghav

    Hi.
    http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/ (set JAVA_HOME)
    http://stefaanlippens.net/bashrc_and_others (Bash: about .bashrc, .bash_profile, .profile, /etc/profile, etc/bash.bashrc and others)

Maybe you are looking for

  • Returnable packaging process-Vendor-Company-Customer

    Dear SAP Gurus, I have searched through the internet as well as on this forum but I was not able to find the information I am looking for. I have the following issue concerning the Returnable packaging process in SAP: I need to gather overall informa

  • Help with adding action script to an order form

    Hi - Firs time I'm on this board. Searched and didn't see anything that fit. Adobe/Macromedia Support told me my form needs an action script insert for me to gain access to a previous page. I'm revamping an online order form. It's about 2 1/2 pages i

  • Problem with Twitter

    Are any other BT users having trouble using Twitter? This is what I now get. I've done a power cycle on the hub - no difference. I've tried using another PC on a different ISP and different phone line which works fine. I also tried my laptop which is

  • An application for multi-channel measurements

    Does NI have a software solution for multi-channel measurements? I mean systems for measurements, tests and monitoring which contain numerous DAQ devices with thousands of sensors. I suppose the software for such system should have the following feat

  • FP Install

    I have installed FP11 as indicated by the Adobe site. Internet sites requiring FP keep identifying FP to be downloaded. I hace checked computer security and internet and all are enabled. Computer is HP Pavillionh8-1234, 10gb ddr3 sys memory, 1 teraby