substitution variables

If we say that this substitution variable is a feature of sql * plus, why do we have this feature in sql developer/Toad and other client software oracle. I know that when we run commands in the based graphic tools (Toad / sql dev) while he in turn generates a sql * plus term and run my query. But even if I don't class not my sql script statement, how is, I use the sql variable substitution feature * more in Toad/sql developer.   Or I can say that there is behind each session of Toad/sql sql developer * more session

> what is the difference when we run a SQL as a script (by pressing f5) and a normal execution mode (by pressing ctrl + enter).

I don't use a lot of Toad, but I remember well, the toad has built in emulation of most (but not all) of SQL * Plus features and commands.

However, I also remember a Toad option to run a script through SQL Plus.  And it will open a sql more separate window to run it.

You might be best to consult a manual of Toad or a toad forum.

Tags: Database

Similar Questions

  • Substitution Variables database

    Hello guys,.

    In the EPM 11.1.2.3.500 system where are stored the substitution variables, wise db?

    Thank you

    Right-click on the server in the EA and then edit > Variables. Here, you will get a list of all the variables, and it will also show if they are set at the level of the server, the application or database level.

    For your next question, where variables are stored. All substitution variables are stored in the file essbase.sec (essbase security file)

    When you try to view the variables, it go from variable substitution, and when you try to edit and save any variable, then it will update the security file.

    Hope this helps

    See you soon

    Amarnath

    ORACLE | Essbase

  • global substitution variable vs. variable

    Hi gurus,

    Can we can use variables of surrogacy in Business (we can make it) Rules applicable for all the applications...

    So what exactly is the difference between global and variable substitution variable.

    Thank you

    ~ RN

    Yes you can use substitution variables.

    A global variable in trade rules can be used on all business rules and cannot be used in business rules, it has the added advantage that they can be defined as guests of the run time, more information on the variables

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Cannot use the #A01 substitution variable # in dynamic list

    Greetings...

    I want to generate a dynamic list on the page.  The list will contain an indicator that specifies whether or not the entry in the list is in fact hidden from the user.  If it is hidden to the user, then I want to apply a particular to this entry from the list class when rendering.

    The dynamic list has the following SQL code:

    SELECT null lvl,

           menu.menu_nm label_value,

           q'!javascript:$s('P32_MASTER_MENU_ID', '!' ||

              menu.menu_id || q'!');!' target_value,

           null image,

           null image_attribute,

           null image_alt_attribute,

           case when menu.hidden = 'Y'

                  then 'class="hiddenNode"'

                  else null end attribute1

    from ( select 'N' hidden, vis.* from std_vw_apex_menu vis

            union all

           select 'Y' hidden, hid.* from std_vw_apex_menu_hidden hid ) menu

    where menu.menu_ty = 'MAINMENU'

    order by menu.sort_order

    I then use a list template with the following as the entrance to the "current": list

    <li class="active"><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>

    ... and list the following as the "Non-Current" entry:

    <li><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>

    I see in the rendered however page result is that substitution does not, as it is shown in the following snippet:

    <li><a href="javascript:$s('P32_MASTER_MENU_ID', '18893191201');"><span #a01#="">Education</span></a></li>

    We are on ApEx 4.2.1.  What I'm doing wrong as I've seen other threads indicate that it is possible for dynamic lists to use substitution variables, as in their list templates.

    Shane.

    I found the solution to the attribute replacement does not not in the models of dynamic lists.

  • How to use substitution variables, as in Microsoft Word using Hyperion Smart view

    Can we use the Substitution Variables to copy data points and cool off in Microsoft Word? I tried and it does not dynamically (copy the data points only copies what was in excellent cell right there). It copies only the static value of this variable for this cell. I want to use dynamically in Word so that if I change the value of this variable in Essbase, it is updated in Word on refresh. Any idea?

    We need this notification feature in microsoft word and keep using data points every year (instead of copy the cells of excellent on new)

    Any help or suggestion is appreciated.

    Thank you

    You may not use substitution variables, as with the copy data points. I tried a while back (after 111.1.2.1.102) and it wouldn't work.  I checked with Oracle development and they said that I is not available

  • Range of values for substitution variables

    Hello

    Can assign us range of values for substitution variables...

    CurrActuals: Jan: Mar
    CurrFcst: Mar: Dec


    When I set up and use the void daataforms var aboive... his throw error... How can I set vales for variable sub range.

    Jan: Mar will not work in Web Forms. I have not tried 11.1.2.2 but older versions, it will not be

  • Reduce code SQL injection when forced to use substitution variables, as

    The 3rd party software that I use has exactly a way to allow users to specify execution settings: the Substitution variables.
    The scripts are executed using SQL * more. I'm looking for ways ensure this.

    Please, don't say "do not use substitution variables" - read above, it is the only way this software works.


    My first thought was something like this:
    var myvar varchar2(30)
    exec :myvar := '&user_input';
    It's no good. What happens if the user specifies "X"; ". run immediately "drop table sometable" then we get
    exec :myvar := 'X'; execute immediate 'drop table sometable';
    Once again, not good.

    I thought that perhaps something like the following would work:
    exec :myvar := dbms_assert.noop('&user_input');
    but then again, a malicious user could specify "'); run immediately "drop table sometable"; dbms_assert. NOOP('")

    I'm open to suggestions.
    What can I do to clean up the substitution variables?

    Thank you!

    Edited by: Yes on 30 January 2013 15:02

    If your attacker is able to enter a value for this parameter substitution is too late to worry.
    It can stop the execution of the script and enter a code of maliciious he wants. Or I missed something?

  • Sharing the values of substitution variables complex between ASO and BSO of databases

    We ASO and Essbase BSO names of members of database with spaces in and need to store some of these member names in the substitution variables. However, this should be done differently for ASO and BSO, due to script syntax calc requiring double quotes and MDX requiring hooks. For example:

    ASO:
    & CurWeek value = 1 week
    MDX: [& CurWeek]

    ASF:
    & CurWeek value = "week 1".
    Calc script: & CurWeek

    Therefore, the substitution variables can be shared between ASO and BSO, cubes because the value of the variable BSO requires double quotes because of the space in the name of the Member.

    Is there a way to get the above to work with ASO and OSB? Unable to escape the quotes in the calc script syntax? Or double quotes can be removed in the MDX formula?

    Yuck! I'm curious to see if someone has a really elegant solution to this. :)

    I'm sure you have seen this already, but a workaround is to create an alias that is not a space (or probably better, use a name without a space Member but leave some space in the alias).

    What is your specific motivation to avoid the solution two variables? If it is purely of synchronization, do not forget that even with a variable unique no guarantees of the formulas of Member ASO and BSO calc scripts will be always synchronized without a response, because the formulas (by the SER60) pick up not a new value until the application is restarted.

  • Business rule - unable to name the text data using substitution variables

    Hello

    I can't assign a value of text stored in a variable substitution. I read the posts that you can't assign string values I just want to check if it was possible using substitution variables.

    For example.,.

    Trouble (scenario, Version and year)

    "Test year".
    (
    "Test year" = &;
    );

    EndFix

    & those is a substitution variable whose value is "FY13.

    Please advice.

    Thanks, Cz

    The same rules apply, you must apply a numerical value, because this is what is stored in essbase data compared to the intersection.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Assign the numeric value of Substitution Variable?

    What I try to do is:

    Read a CSV file via the unix shell and choose some columns in each row
    Transmit the data to a MaxL Script
    Assign the data passed to substitute variables in the MaxL script.

    Problem:

    Two of the columns contain digital data (for example: 0.5 or 60 etc..) I want to set the substitution variables in these digital data (without the quotes). I tried to use

    Edit the < app and cube name > database variable 'Variable' $1;

    but it gives me error
    ERROR - syntax error 1242021-1 ['. 5']
    I tried with quotes single and double, but they value the value of the variable $1

    If I manually set the value of this Variable through the Regional service to 0.5, everything works perfectly. Any ideas on how to do this? the Ser60 does not provide a solution.

    An example is

    startMaxl scriptname.mxl "0.5"

    alter database appname.dbname set variable "VariableName" $1;

    or

    startMaxl scriptname.mxl 0.5

    alter database appname.dbname set variable "VariableName" ' \'$1\' ";

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Re: Enter Substitution Variable pop up

    Windows 2008 - OS
    Oracle 11.2.0.2 - database
    Developer SQL 3.1.0.7

    I get a very annoying pop ups on the seizure of a variable substitution with Oracle SQL Developer, how can I leave it?
    I have the pop-up when I try to open any connection, it doesn't matter what database.

    You have a login.sql with substitution variables?

    Tools | Preferences | Database | The name of the connection startup script file.

    OR

    If you have defined as an environment variable SQLPATH it may be picked up from there.

    Published by: Jim Smith on March 2, 2012 16:03

  • Possible values range Setup for essbase for reports substitution variables

    Hi all

    I tried to define a substitution variable that holds the current month and the previous in current year called curryrmnths. For example, the current month is March, the value of the variable must be Jan, Feb, Mar.

    I am trying to use this variable for reports in order to make dynamic reports, instead of manually enetering the new month each time. (We use the reports financial hyperion).

    I tried different syntaxes like,

    Jan: Mar
    Jan, Feb, Mar
    "Jan, Feb, Mar.

    But none seems not to work, they arise while setting in the reports.

    Can anyone suggest a solution? How a range of values is dynamically adjustable in a report?

    Your answers would be appreciated.

    Thank you.

    Take a look at these discussions - your condition has been discussed quite a bit more in the forum of queries and reports:
    Re: Very Urgent report EN
    Hyperion Financial Reporting v 11 - Relative function (in another dimension)
    Re: Roll month HFR - really Urgent

    Kind regards

    Cameron Lackpour

  • Enter i: Substitution Variable (capital letter I for Indigo)

    Hi all

    I need emergency to run a query in SQL Developer today, but one of my ' case... when ' clauses which I had to slightly modify is originally the query request a Substitution Variable. I have never seen it before and that you see that no fault in my code so I am confused and getting frustrated why this problem appeared suddenly today on the performance reports.

    The original clause works very well:
                      ,case when lower(class_name) like ('%funding note%')
                            then 0
                            else orig_bal
                      end orig_bal_amd
    I changed it to this:
                     
     ,case when geo_segment_name in ('NorthAmer')
                            then case when bus_grp_typ in ('CMBS')
                                      then case when c_bond_type_desc not in ('P&I') 
                                                then c_notional_amount
                                                else orig_bal
                                           end
                                      else case when lower(class_name) like ('%funding note%')
                                                then 0
                                                else orig_bal
                                           end
                                 end
                            else orig_bal
                      end orig_bal_amd
    or this:
                      ,case when geo_segment_name in ('NorthAmer')
                            and bus_grp_typ in ('CMBS')
                            then case when c_bond_type_desc not in ('P&I') 
                                      then c_notional_amount
                                      else orig_bal
                                 end
                            else case when geo_segment_name in ('NorthAmer') 
                                      and lower(class_name) like ('%funding note%')
                                      then 0
                                      else orig_bal
                                end 
                      end orig_bal_amd  
    also, strangely what amounts to what above to be syntactically identical to the first cause (work) more simple, is also causing the problem of substitution.
                      ,/*case when geo_segment_name in ('NorthAmer')
                            and bus_grp_typ in ('CMBS')
                            then case when c_bond_type_desc not in ('P&I') 
                                      then c_notional_amount
                                      else orig_bal
                                 end
                            else */case --when geo_segment_name in ('NorthAmer') 
                                      when lower(class_name) like ('%funding note%')
                                      then 0
                                      else orig_bal
                                end orig_bal_amd         
                      -- end orig_bal_amd  
    does anyone have an idea why this is happening? I really need to get this data race and I have no idea what is causing this problem.

    Thank you very much in advance for any ideas.

    Jon

    Published by: berlinhammer on January 4, 2011 05:17

    Hello

    Change the condition

    c_bond_type_desc not in ('P&I')
    
    to
    
    c_bond_type_desc not in ('P'||'&'||'I')
    

    The reason in & I is treated as a parameter that requires a value or as you say substitution.

    see you soon

    VT

  • Web Forms using substitution variables with multiple values

    Hello

    I'm trying to select a substitution variable in a WebForm (Hyperion Planning 11.1.1.3) with multiple values in environmental assessments, but does not does someone knows if this expected behavior.

    I already try.

    & month = "Jan", "Feb", "Mar".
    & month = Jan, Feb, Mar
    & month = Jan: Mar

    Please let me know something, since I remember in previous versions of Hyperion Planning it was possible.

    Kind regards

    Reading of:- Re: use of the Variables of Essbase alternative forms of planning

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to prevent substitution variable recognition?

    Hi, is it possible to prevent the recognition of the substitution variables in a SQL worksheet? I would like for example, run the following query in SQL Developer 2.1.1.64:
    SELECT UTL_HTTP.request ('http://localhost:8088/foo/servlet/bar?x=10&y=10')
      FROM DUAL;
    Here, ' & y' is not a substitution variable, but a query parameter. Is it possible to escape the sign '& '? Or any other way to run this query without proxy?

    Thanks in advance.

    Regards, Markus

    Try this

    set define off
    

    HTH,
    dhalek

Maybe you are looking for