Error When Prompting for Substitution Variable

Hi - I'm receiving an error when I try to run the following using the substitution variable - but only when I enter a string; when I enter a numeric value it runs fine.
DECLARE
    l_SCR_Info            VARCHAR2(50) := '''SCR'||&SCR_NUM||'-'||'''';
begin
dbms_output.put_line(l_SCR_Info);
end;Here is the error I receive when I supply a string value when prompted:
ORA-06550: line 3, column 52:
PLS-00201: identifier 'AB' must be declared
ORA-06550: line 3, column 27:
PL/SQL: Item ignored
ORA-06550: line 10, column 22:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 10, column 1:
PL/SQL: Statement ignoredCan anyone shed some light on what I'm missing here?
Thanks!
Christine

Hi,
It looks like you just want one string there:
l_SCR_Info            VARCHAR2(50) := '''SCR&SCR_NUM-''';Remeber how substitution variables work: SQL*Plus replaces them with values before sending the code to the back end to be compiled.
If you give a value like AB for the variable, the code you posted is equivalent to:
     l_SCR_Info            VARCHAR2(50) := '''SCR'|| AB ||'-'||'''';by the time it reaches the compiler. AB is not inside quotes, so the compiler looks for a variable or function called AB.
If you gave a number:
     l_SCR_Info            VARCHAR2(50) := '''SCR'|| 123 ||'-'||'''';there's no problem; the compile knows what the literal number 123 is.

Similar Messages

  • Prompted for Substitution Variable at Startup?

    Ever since I've been on version 1.2.0.29.98, when I start up SQL Developer and attempt connection to one of my databases, I get a modal popup window titled "Enter Substitution Variable" with OK and Cancel buttons. The name of the substitution variable I'm prompted for is GNAME.
    I have a couple of different Oracle homes on my machine, and I recognize gname as a lexical parameter I use in "login.sql" scripts for SQL*Plus (see http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:446220075876). Can you tell me from where SQL Developer might be picking up this lexical parameter for which it insists on substituting a value? The popup is annoying, and I'd prefer to make it go away.
    At first I thought it may have been due to a login.sql I have that lives in the same directory as the one I specified containing SQL*Plus (Tools -> Preferences; SQL*Plus -> SQL*Plus Executable), but even after I rename that login.sql's filename, the GNAME substitution persists.
    Thank you.
    Windows XP SP 2
    SQL Developer 1.2.0.29.98
    Database 9.2.0.6

    Someone else asked the same thing this morning:
    Replacement Variables/Column formatting in SQL*Developer
    At the moment, sqldev tries executing a "login.sql" from the Script Directory. If that doesn't exist, he looks for it in the sqlplus path. No other possibilities nor preferences.
    K.

  • Adcfgclone.pl dbTier is not prompting for ORACLE_HOME variable

    hi,
    adcfgclone.pl is not prompting for ORACLE_HOME variable.
    and erroring out with
    Checking the port pool 12
    done: Port Pool 12 is free
    Report file located at /appsutil/out/portpool.lst
    RC-00203: Unable to create/write to file /appsutil/out/portpool.lst.
    Complete port information available at /appsutil/out/portpool.lst
    RC-50004: Error occurred in CloneContext:
    AC-00005: No write permissions for creating the Context file - /appsutil/temp.xml
    Raised by oracle.apps.ad.context.AppsContext
    Check Clone Context logfile /mnt/ebs/PTCH/bin/db/tech_st/12.1.0/appsutil/clone/bin/CloneContext_0421032159.log for details.
    ERROR: Context creation not completed successfully.
    For additional details review the file /tmp/adcfgclone_6999.err if present.
    DOC refrred: How To Quick Solve This Post Clone Error : RC-50004, AC-00005: No Write Permissions For Creating The Context file - /tmp/temp.xml ? (Doc ID 842948.1)
    in the above DOC please let me know how to perform ANALYSIS part..
    Database version: 12.1.0.2.0
    Applications version: 12.1.3
    OS                         : OEL6.4
    please suggest
    Thanks
    Raghavendra

    are you able to create a file with os user which is running the rapidclone in /appsutil/temp.xml
    please check and update
    use touch command to create a file
    did you gave correct oracle home when prompted by rapidclone ?
    If you have set the right permissions at /tmp and the problem remains then check if at the post cloning steps at the dbTier, the scripts asks for the "Oracle Database Home"
    Target System RDBMS ORACLE_HOME Directory [/u01/clone/db/11.2.0/] :
    post the output of below command
    $ls -ltr ( in appsutil folder )
    AppsMasti
    sharing is Caring

  • 2.1 EA1 Bug No promt for substitution variables

    Didn't see a post for this yet. In this release, I am not being prompted for replacement variables when I use & in my query.
    SELECT &1 from dual;
    ORA-01008: not all variables bound
    01008. 00000 -  "not all variables bound"
    *Cause:   
    *Action:
    SELECT &&1 from dual;
    ORA-01745: invalid host/bind variable name
    01745. 00000 -  "invalid host/bind variable name"
    *Cause:   
    *Action:

    Substitution variables have to be defined:
    define 1 = 'Defined'
    select '&1' from dual;A current 2.1 EA1 bug will let you only execute this as script (F5).
    Bind variables have to be given through the dialog:
    select ':1' from dual;A current 2.1 EA1 bug will let you only run this as statement (F9).
    To the development team:
    Please log the bug that bind variables can't be used when executing as script.
    Regards,
    K.

  • Calendar prompt for Date variable from bex

    Hi All,
    I have a Bex query where I have a variable on 0CALDAY
    - Customer exit (i_step = 1 to populate with current date)
    - Single value
    - Mandatory
    I created universe on this query and in webI selection screen i do see the variable prompt.
    I am not able to see the current date populated automatically since exit values are not populated to WebI at runtime.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly.
    I am currently on BO XI 3.1 SP3.
    Is there any specific setting in Universe or bex query which is required to get this Calendar prompt instead of list of values for dates?
    Note: When we were on SP1 the universe created then had same variable from bex and it still shows us Calendar prompt but ever since we upgraded to SP3 for the query splitter functionality we not able to get the calendar prompt for date variable in new universe we create
    Thanks
    Ritesh

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • Error when searching for entries in secure store

    Hi All,
      I need to assign the certificate in the sender agreement  for signature verification and decrpting. So when i search for entries, i am getting the error as " Error when searching for entries in Secure Store".
    Details of the Error is showing as:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
    What is the reason for the above error and how to rectify it..?
    Suggest some useful solution
    Regards
    Prakash

    Hi All,
      Can anyone suggest some ways to rectify the error, as i am not able to  find solution for the error in the
    forum.
    Regards
    Prakash

  • Float4() causes "error saving Pixel Bender Byte Code file" error when exporting for flash player

    Simple test
    <languageVersion : 1.0;>
    kernel untitled
    <   namespace : "Your Namespace";
        vendor : "Your Vendor";
        version : 1;
    >
        input image4 src;
        output pixel4 dst;
        void
        evaluatePixel()
            dst = float4(sampleNearest(src, outCoord()));
    The above code will produce a "error saving Pixel Bender Byte Code file" error when exporting for flash player in Pixel Bender Toolkit 2.5.449694.
    "dst = (sampleNearest(src, outCoord()));" works fine. And anything like "float4 a= float4(b);" will give same error.

    Thank you for the error report.  I'll put it into our bug database.  We're bottling things up for the current version.  Gven the workaround, it is unlikely we'll be addressing this bug soon.  Please accept my apologies for the annoyance this will cause.
    In your second example, float4 a = float4(b), does it return an error if b is only a float4 or regardless of what b is?  If b is a scalar float, for example, is the conversion performed correctly? If so, this could be an error that only crops up when using constructor/conversion syntax when the thing being converted is already the correct type.
    Thanks,
    Chuck.

  • Error when fetching into a variable of ROWTYPE

    I came across with a vied error when creating the body of a method.
    Problem:
    I have a Type called Emp_typ and a corresponding table Emp_tab.
    When I create the body of get method it gives the following error msg :
    Compilation errors for PACKAGE BODY CHAMITH.EMP_API
    Error: PLS-00386: type mismatch found at 'EMP_ROW' between FETCH cursor and INTO variables
    Line: 9
    Text: fetch get_emp_rec into emp_row;
    Get Method body :
    function get(id_ number) return emp_tab%rowtype IS
    cursor get_emp_rec IS
    select * from emp_tab;
    emp_row emp_tab%rowtype;
    begin
    open get_emp_rec;
    fetch get_emp_rec into emp_row;
    close get_emp_rec;
    return emp_row;
    end;
    However when I do the same without having a type upon the table emp_tab, it works fine.
    Pls give me a solution for that.
    Thanks,
    Chamith

    Hi,
    Let me know the Oracle Database Version.
    Regards,
    Sailaja

  • Error when using replacement path variable in exception range

    I'm trying produce a check report that produces exception highlighting based on a range determined by the associated characteristic.
    eg.
    For Check 1, highlight cells in red where the associated key figure is between 1 and 999.
    For Check 2, highlight cells in amber where the associated key figure is between -999 and -1.
    Now, I know that the lower and upper limit of an exception can be populated by a formula variable. However, when I create a formula variable that uses a replacement path to fetch the limit values from the associated Check and use that in the exception, the query errors when I try to run it:
    System Error: 'Variable name ( technical name ) does not exist or is incorrectly used 4 New Exception.'
    The error long text suggests that the variable is being used incorrectly, even though it says for Formula variables:
    ... can be used in all cases. Note: Formula variables can have units or be without them. Incorrect use can also arise here since the system always calculates in accordance with the units. Formula variables can also be used to create the upper and lower limits in exceptions.
    In this case, the formula variable does not have units.
    Interestingly, but equally unhelpfully, if a regular constant is used instead of a formula variable for the lower limit, but a formula variable is still used for the upper limit, the error message changes to:
    System error in program SAPLRRI2 and form FAC_VAR_IN_VREP_INSERT-1-
    The query works if the formula variable simply holds a default value, so the problem clearly appears to be with replacement path. If BEx doesn't support replacement path formula variables in exceptions, then aside from the fact that it would be useful if that was stated in the errors, what alternatives, if any, deliver the functionality of exception ranges that change depending on the corresponding characteristic.

    I put in the curly brackets so my formula now reads
    "Total inquiries for " + {CnAttrCat_1.CnAttrCat_1_Description} + ": " + ToText({@InquiryTypeSubtotal})
    Now when I check the formula I get the error message "This field name is not known."
    Alec

  • Error when executing query with variables in excel

    When I execute a query in excel, it gives some errors if it has some variables (From Date, To Date etc):
    Error Specify a value for variable From Date
    Error Specify a value for variable To Date
    I need to execute the query and then save a view. I want to do this in excel as I am not able to save a view if I execute in a web browser.

    Hi Sanjeev.
    Of course Excel supports input of variable values.
    What version of BW/BI both backend and frontend are you using?
    Please check if you can execute the query in TA RSRT. You could try to generate the query again here.
    Hope it helps.
    BR
    Stefan

  • Report with a prompt for a variable

    Post Author: tpham
    CA Forum: Desktop Intelligence Reporting
    I am using BO 6.5.1 and would like to figure out how to create a prompt for a user to type in when the report refreshes to be computed in the variable. Is this possible?

    Post Author: amr_foci
    CA Forum: Desktop Intelligence Reporting
    i've started with BO XI R2
    but i have no doubt that its also available in all the BO versions
    sure you can do it
    good luck
    Amr

  • MaxL statement for substitution variables

    Hi,I'm trying get a script together that changes all my substitution variables, and I'm able to do this using:alter database application.database set variable string;but how do I set the substitution variables for (all apps) and (all dbs)?Any help appreciated.ThanksSunil

    I don't think MaxL is going to do this for you, although you could always use a positional parameter to set the value.
    I'm not a big fan of passing the system date to an Essbase process as it so often varies from the data date.
    Usually, I create an external scripting process (in my case, in the past, usually VBScript, I would probably tilt towards perl now) that read the file, found the year and month, and then called the MaxL with parameter lne variables to set the Substitution Variables. This is not fancy code -- the error checking is the majority of the work.
    Regards,
    Cameron Lackpour

  • Maxl statement for substitution variable..

    Friends,
    Do we have a maxl command that will return substitution variables at the server level along with their values.
    This would help us do a quick check of the system at all environments using VLOOKUP before the cycle starts..
    The manual check seems boring :(
    Thanks,
    RN.

    Sir, I love the way u write your blogs :)
    this blog was just awsome with the conversation with JJ explaining with such details..^^^Thank you for your kind words. It really makes my day when I hear that people get real value out of my blog. But to be honest, I am but a conduit for Jason's knowledge. :)
    Regards,
    Cameron Lackpour
    P.S. You should check out his death-to-Load-Rules post. Very cool stuff.

  • Work Folders client setup errors: No prompt for AD credentials & Lockscreen policies not applied.

    Hi everyone.
    I've recently set up a test environment for Work Folders (Server 2012 R2). I'm only testing inside my network so no internet access is required. I have encountered two issues:
    When setting up a domain-joined client using a GPO everything works fine, except for the lockscreen/password policy settings. If I enable this on the fileserver the sync fails claiming that the PC
    doesn't comply with my organization's security policies. This is very weird since Work Folders is responsible for configuring these policies.
    There's no Apply GPO option available in the Control Panel item.
    When setting up a non-domain-joined client for Work Folders I'm not prompted for AD credentials. The setup fails with the error:
    You 're not set up on the server. However, if I open the workfolders URL in Internet Explorer I do
    get prompted for my AD credentials.
    Here's some details about the environment:
    Server 2012 R2 DC. No other GPO's than the work folder GPO.
    DNS alias called workfolders.<domain>.local configured.
    Fileserver set up with self-signed certificate (SSC) bound to default website. The certificate is either manually installed on the clients or distributed via the GPO. The certificate is made with server name workfolders.<domain>.local.
    Work Folder GPO on client OU:
    - Certificate distribution of SSC
    - Loopback Policy enabled
    - Work Folders enabled with Force automatic setup
    Both servers and clients are VMs. Non-domain-joined client logged in as local administrator.
    Has anyone else encountered these issues? Can anyone shed some light on how to resolve this?
    Thanks in advance!
    MicaH

    Roberto, I don't have a W3SVC1 folder containing log files, so no dice. I did find out through event logs that the account that's used to authenticate is the fileservers' local administrator account! Then I remembered that my local Administrator
    accounts' password on my client is the same as on the fileserver (it's a test environment). So I changed the clients local admin password and it finally worked!
    I still have issues with the Device Policies, though. Any thought on that subject?
    Edit: The issue with the device policies is caused by my testuser not being a local admin on the client. I had adjusted my powerplan settings so I could keep my RDP session to the client open and without admin rights the work folders policies cannot be applied.
    Does anyone know how to set these policies using GPO?

  • VCS Expressway event log errors when Jabber for iPhone and Windows log in

    hi folks,
    I've deployed Collaboration Edge with VCS Control and Expressway:
    my Jabber for iPhone succesfully can log in from Internet and it can IM but not calls and I see next messages in VCS Expressway when Jabber is logging in:
    2015-03-27T18:00:28+02:00
    tvcs: Event="Authentication Failed" Service="SIP" Src-ip="Client-in-the-Internet-IPaddress" Src-port="49543" Detail="No valid authentication" Protocol="TLS" Method="REGISTER" Level="1" UTCTime="2015-03-27 16:00:28,204"
    2015-03-27T17:58:55+02:00
    tvcs: Event="Authentication Failed" Service="SIP" Src-ip="Client-in-the-Internet-IPaddress" Src-port="49535" Detail="No valid authentication" Protocol="TLS" Method="REGISTER" Level="1" UTCTime="2015-03-27 15:58:55,786"
    2015-03-27T17:58:32+02:00
    tvcs: Event="Authentication Failed" Service="SIP" Src-ip="Client-in-the-Internet-IPaddress" Src-port="49527" Detail="No valid authentication" Protocol="TLS" Method="REGISTER" Level="1" UTCTime="2015-03-27 15:58:32,202"
    2015-03-27T17:58:08+02:00
    tvcs: Event="Inbound TLS Negotiation Error" Service="SIP" Src-ip="Client-in-the-Internet-IPaddress" Src-port="49512" Dst-ip="Expressway-IPaddress" Dst-port="5061" Detail="No SSL error available, probably remote disconnect" Protocol="TLS" Level="1" UTCTime="2015-03-27 15:58:08,582"
    "Digest User" in the "Protocol Specific Information" section of Phone Configuration selected right user. in this Jabber I see following error "Failed to get device configuration". however Jabber for Windows and for Android hasn't such issues - they succesfully can log in from Internet and it can do calls and IM but I see next messages in VCS Expressway when Jabber is logging in. The same log line appears when Jabber for Android log in:
    tvcs: Event="Inbound TLS Negotiation Error" Service="SIP" Src-ip="Client-in-the-Internet-IPaddress" Src-port="56751" Dst-ip="Expressway-IPaddress" Dst-port="5061" Detail="No SSL error available, probably remote disconnect" Protocol="TLS" Level="1" UTCTime="2015-03-27 14:19:11,769"
    and I can't find any information which describe such types of error.
    thanks!

    Thanks Srini, but the instructions have two options:
    1. Use the Control Panel, select "Oracle 11g..." and uninstall from there.
    This is of course the first thing I tried, but as I said, there is no entry for Oracle 11g in my "Programs and Features" applet.
    2. Download the install package and run OracleXE.exe with the remove iss file.
    Firstly, there is no OracleXE.exe in the package I downloaded, just setup.exe;
    Secondly, setup.exe ignores the iss parameter and tells me that OracleXE is already installed (setup.log contains ResultCode=-3) so it can't be installed.
    Is there somewhere else to get an OracleXE.exe that will work for 11g? Or are these the instructions for 10g and haven't been updated yet?
    Am I unusual in not having a Control Panel entry?
    (and I understand this is a beta - that's partly why I'd like to uninstall it - I'll go back to 10g and not be so impatient :))
    Regards,
    Andrew

Maybe you are looking for

  • Unable to find Oracle OCI libraries on Centos 6.3

    Hello, I am having an issue with configuring an application(Zabbix) to use OCI on clean image of CentOS 6.3. checking for Oracle OCI headers in /usr/include/oracle/11.1/client/... yes checking if Oracle OCI version is >= 10.0... yes checking for Orac

  • Upload graphic in smartform

    Hello All, I am facing problem in uploading graphic in smartform. I have to upload signature and its related contact details in smartform. I have maintained signature in z_sign_xxxx format in se78. In smartform i am taking userid of person in z_sign_

  • [SOLVED] How to completely 'reset' default font setup?

    In trying to improve the look of the fonts on my system, I've gotten myself into a situation where some programs either no longer start (Keepass)  and others have blank windows (Thunderbird). I've installed infinality--and then followed this guide ht

  • Migration to new computer of Adobe Acrobat Pro XI.

    I have de-activated my version on the old computer and installed the program on the new computer. On start-up it shows a screen asking to enter the serial number, I did that and checked that it was the correct serial number for Acrobat Pro XI. But it

  • Itunes error when opening

    I uninstalled and reinstalled itunes to get the 64bit version and now I get this error "The file itunes library .itl cannot be read because it was created by a newer version of itunes." It is the newest itunes 64 bit version installed from the itunes