Passing a variable to command in WLST script

I have a script I have written to suspend and resume connection pools based on a specific path using the managed server as the variable.
The problem is that when I pass the managed server name as a variable, the cd() command never gets it.
Does anyone have any suggestions here?
import os
singlqt = "'"
connect('weblogic', sys.argv[1], sys.argv[2])
if sys.argv[4] == 'show_pools':
try:
domainConfig()
ls('JDBCSystemResources')
sys.exit(0)
except:
print "Error showing pools ", sys.argv[4]
sys.exit(1)
tempPoolPathVar = os.path.join('/ServerRuntimes/', sys.argv[3], 'ApplicationRuntimes/', sys.argv[5], 'ComponentRuntimes', sys.argv[5])
poolPathVar = "%s%s%s" % (singlqt, tempPoolPathVar, singlqt)
if sys.argv[4] == 'suspend_pool':
try:
domainRuntime()
print poolPathVar
cd(poolPathVar)
cmo.suspend()
except:
print "Error suspending pool", sys.argv[5]
so when you print poolPathVar it shows:
'/ServerRuntimes/myManagedServer1/ApplicationRuntimes/ConnectionPool1/ComponentRuntimes/ConnectionPool1
with the single quotes included.
I tried to feed this variable to cd() but it gets lost for some reason.
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to t3://myAdminServer1:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer'1 that belongs to domain 'mydomain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)
'/ServerRuntimes/myManagedServer1/ApplicationRuntimes/ConnectionPool1/ComponentRuntimes/ConnectionPool1
This Exception occurred at Tue Jul 01 16:32:42 PDT 2008.
javax.management.AttributeNotFoundException: com.bea:Name=mydomain,Type=DomainRuntime:'
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:221)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:224)
at javax.management.remote.rmi.RMIConnectionImpl_1001_WLStub.getAttribute(Unknown Source)
at weblogic.management.remote.common.RMIConnectionWrapper$11.run(ClientProviderBase.java:531)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:61)
at weblogic.management.remote.common.RMIConnectionWrapper.getAttribute(ClientProviderBase.java:529)
at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:857)
at weblogic.management.scripting.BrowseHandler.regularPush(BrowseHandler.java:420)
at weblogic.management.scripting.BrowseHandler.splitPush(BrowseHandler.java:145)
at weblogic.management.scripting.BrowseHandler.cd(BrowseHandler.java:640)
at weblogic.management.scripting.WLScriptContext.cd(WLScriptContext.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:270)
at org.python.core.PyObject.invoke(PyObject.java:2041)
at org.python.pycode._pyx19.cd$5(<iostream>:161)
at org.python.pycode._pyx19.call_function(<iostream>)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:267)
at org.python.core.PyFunction.__call__(PyFunction.java:172)
at org.python.pycode._pyx18.f$0(/tmp/wl_pool_control.wlst:50)
at org.python.pycode._pyx18.call_function(/tmp/wl_pool_control.wlst)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
at weblogic.management.scripting.WLST.main(WLST.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at weblogic.WLST.main(WLST.java:29)
Caused by: javax.management.AttributeNotFoundException: com.bea:Name=qapoc-core,Type=DomainRuntime:'
at weblogic.management.jmx.modelmbean.WLSModelMBean.getPropertyDescriptorForAttribute(WLSModelMBean.java:1419)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.getPropertyDescriptor(SecurityInterceptor.java:842)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.checkGetSecurity(SecurityInterceptor.java:580)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttribute(SecurityInterceptor.java:297)
at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$5.run(AuthenticatedSubjectInterceptor.java:192)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.getAttribute(AuthenticatedSubjectInterceptor.java:190)
at weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttribute(WLSMBeanServer.java:269)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1387)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1247)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1350)
at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:599)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Error suspending pool ConnectionPool1

Try prepending your string with "serverRuntime:", i.e.,
cd ("serverRuntime:/WLDFRuntime")
Think of it like changing drives on a DOS system. You're trying to change to a serverRuntime "dir" from the domainRuntime "drive". Prepending the drive prefix should fix it.

Similar Messages

  • Can we pass the ant property to the wlst script?

    Hi,
    I am using WLST to configure domain. Is there ant way in which we can pass the ant property to script tag? Rite now we are hardcoding the username, password and serverIp in the script.
    <target name="configServer">
    <wlst debug="false" failOnError="false" executeScriptBeforeFile="true" fileName="./myscript.py">
    <script> connect('weblogic','weblogic','t3://localhost:7001')
    </script>
    </wlst>
    </target>
    So essentially the above script will lok like following
    <target name="configServer">
    <wlst debug="false" failOnError="false" executeScriptBeforeFile="true" fileName="./myscript.py">
    <script> connect(${username},${password},'t3://${serverIP}:7001')
    </script>
    </wlst>
    </target>
    Thanks,

    In 10.3, we added a replaceProperties option to allow ant properties to be
    evaluated in <script> tag.
    In the meantime, you may be able to use the load properties command in WLST.
    <Scott Ding> wrote in message news:[email protected]..
    Hi,
    I am using WLST to configure domain. Is there ant way in which we can pass
    the ant property to script tag? Rite now we are hardcoding the username,
    password and serverIp in the script.
    <target name="configServer">
    <wlst debug="false" failOnError="false" executeScriptBeforeFile="true"
    fileName="./myscript.py">
    <script> connect('weblogic','weblogic','t3://localhost:7001')
    </script>
    </wlst>
    </target>
    So essentially the above script will lok like following
    <target name="configServer">
    <wlst debug="false" failOnError="false" executeScriptBeforeFile="true"
    fileName="./myscript.py">
    <script> connect(${username},${password},'t3://${serverIP}:7001')
    </script>
    </wlst>
    </target>
    Thanks,

  • [SOLVED] Pass Environment variables from PKGBUILD to .INSTALL script

    Hi everyone,
                       I am trying to modify the grub2-efi-bzr (http://aur.archlinux.org/packages.php?ID=38369) package making some changes in the PKGBUILD and the post-install script. I want to pass few environment variables from the PKGBUILD to the install script. How do I do that?
    Some code from the PKGBUILD
    _bzrtrunk="lp:grub/grub2" # GRUB2 BZR Main Trunk
    # _bzrtrunk="lp:~skodabenz/grub/grub2-bzr-exp" # GRUB2 BZR Experimental Branch
    _bzrmod="grub2"
    if [ ${_bzrtrunk} = "lp:~skodabenz/grub/grub2-bzr-exp" ]
    then
    _bzrmod="grub2_exp"
    pkgver="exp_${pkgver}"
    fi
    # grub-extras bzr repo locations
    _bzrtrunk_zfs="lp:~skodabenz/grub/grub2-extras-zfs"
    _bzrtrunk_lua="lp:~skodabenz/grub/grub2-extras-lua"
    if [ "$CARCH" = 'i686' ]
    then
    _EFI_ARCH=i386
    elif [ "$CARCH" = 'x86_64' ]
    then
    _EFI_ARCH=x86_64
    fi
    # _EFI_ARCH=x86_64 # Uncomment if you want to override the if condition for _EFI_ARCH above, incase the EFI ARCH does not match the Linux Kernel ARCH.
    # $CARCH=x86_64 and _EFI_ARCH=i386 requires gcc-multilib with lib32-glibc installed in the system.
    # I do not know about $CARCH=i686 and _EFI_ARCH=x86_64
    if [ ${_EFI_ARCH} = "i386" ]
    then
    pkgver="${pkgver}_x86"
    _trns_name="grub2_efi_x86"
    elif [ ${_EFI_ARCH} = "x86_64" ]
    then
    pkgver="${pkgver}_x64"
    _trns_name="grub2_efi_x64"
    fi
    Now the post-install script needs the values of _EFI_ARCH and _trns_name env variables. I do not want to copy the if statements to that script as these are decided at compile time but needed while setting up grub2-efi. This is due to the fact that EFI-ARCH need not match the Linux Kernel ARCH. How do I do that.
    Code from the post-install script
    ${_trns_name}-install --root-directory=/ --no-floppy --recheck --debug
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/lua.mod /boot/${_trns_name}/
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/zfs.mod /boot/${_trns_name}/
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/zfsinfo.mod /boot/${_trns_name}/
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/unifont.pf2 /boot/${_trns_name}/
    cp /usr/lib/${_trns_name}/${_EFI_ARCH}-efi/ascii.pf2 /boot/${_trns_name}/
    ${_trns_name}-mkimage --verbose --directory=/usr/lib/${_trns_name}/${_EFI_ARCH}-efi --prefix="" --output=/boot/${_trns_name}/grub2.efi --format=${_EFI_ARCH}-efi ${_EFI_APP_MODULES}
    Thank in advance.
    Last edited by skodabenz (2010-07-27 15:46:40)

    falconindy wrote:
    Don't rely on %foo% existing -- it won't after the first build and this will prevent the PKGBUILD from being reentrant. I would use something like this (untested):
    sed -i "s|^\(_EFI_ARCH\)=.*|\1=${_EFI_ARCH}|; \
    s|^\(_trns_name\)=.*|\1=${_trns_name}|; \
    s|^\(export _EFI_APP_MODULES\)=.*|\1=${_EFI_APP_MODULES}|" \
    ${startdir}/grub2-efi-bzr.install
    Your code works except for 1 problem in the install script I want
    export __EFI_APP_MODULES="${_EFI_APP_MODULES}" (the passed ${_EFI_APP_MODULES} value should again come inside double quotes).
    right now
    export _EFI_APP_MODULES=ata part_gpt part_msdos fat ntfs ntfscomp ext2 iso9660 udf hfsplus fshelp normal chain linux ls search search_fs_file search_fs_uuid search_label help loopback boot configfile echo efi_gop efi_uga xnu xnu_uuid lvm
    which is equivalent to
    export _EFI_APP_MODULES=ata
    I want
    export _EFI_APP_MODULES="ata part_gpt part_msdos fat ntfs ntfscomp ext2 iso9660 udf hfsplus fshelp normal chain linux ls search search_fs_file search_fs_uuid search_label help loopback boot configfile echo efi_gop efi_uga xnu xnu_uuid lvm"
    How to do it with sed since sed already uses double quotes?

  • How to pass a variable from se38 prog to script.

    hi ,
    my requirement is for billing.
    what i need to do is if kona-zlsch = 'T', then i have to set a flag = 'X'.
    i want to know that how i will pass this flag value to my script ?
    plz can any one help me.
    thanks
    Santosini

    SAP script:
    select the window in which u want to display the varibale.
    go to edit->text elements
    then goto->change editor
    first column select /:
    then mention &FLAG&.
    main program:
    call functions: 1. open_form
                         2. write_form
                         3. close_form

  • Pass a variable from JSP to embedded Script

    I can't seem to find a way around this. Please help.
    I need to get the value of "item.likes" from the JSP page and put it into the embedded Script.
    Can I do that ?
    Nothing I came up with worked, and I found nothing on the Internet. I searched for a lot of things. Is the only way to just implement that JSP page as a servlet ?
    Please see code below
    thank you !!
    Dennis
    <sql:setDataSource var="profileDS"
    url="jdbc:mysql://localhost/test"
    driver="com.mysql.jdbc.Driver"
    user="xxx" password="xxx" />
    <sql:query var="profileQuery" dataSource="${profileDS}">
    SELECT likes
    FROM profiles where likes=?
    <sql:param value="${param.likes}"/>
    </sql:query>
    <c:forEach var="item" items="${profileQuery.rows}">
    c:out value="${item.likes}"/>
    <%
    String dd= request.getAttribute("item.likes");
    out.write(dd); //does not work here ... should print out the value of item.likes
    %>
    </c:forEach>

    Some funny scooping with forEach. But if you put a "<c:set var="item.likes" value="${item.likes}" scope="request"/>" first inside the loop it is possible to use that value for your script. But using your sample the printout gets funny. All script output first and then the EL-created out.
    Hopes this helps you anyway.
    /Micael Ericsson

  • Passing a date presentation variable in 'Invoke a Browser Script'

    Hi,
    I have a problem with passing presentation variable with Invoke a Browser Script.
    In my main report i set the filters and it works correctly:
    ColumnDate is greater than or equal to  @{vStartDate}{01/05/2015}
    ColumnDate is less than or equal to  @{vEndDate}{04/05/2015}
    (It works with different dates, i have tested, not only for the values between 01/05/2015 and 04/05/2015)
    i gave the same filters to the detail report.
    When i choose the action link to go the detail report, it only brings me the values between 01/05/2015 and 04/05/2015 .
    If i remove the default date values then both report gives the error :
    A date value was expected (received "vStartDate"). 
    Error Details
    Error Codes: GYYEWLWG 
    What i am doing wrong?
    Please help me.
    Thanks in advance.

    You should be using prepared statements.
    String scoredGoalsQuery = "SELECT count(name) from player_goal_rel where name = ? and pdate BETWEEN ? and ?":
    PreparedStatement pstmt = connection.prepareStatement(scoredGoalsQuery);
    pstmt.setString(1, pName);
    pstmt.setDate(2, startYear);
    pstmt.setDate(3, endYear);
    ResultSet scoredGoalsResult = pstmt.executeQuery();

  • Using variables in WLST Script ant task

    I have multiple scipts that are run using ant tasks, however, I do not want to have to enter the password every time one of these scripts is executed. Instead I would like to use the following ant task to store the password in a variable/property:
    <target name="getPassword" >
         <echo message="Domain: ${domain}" />
    <echo message="Username: system" />
    <input message="Please enter password:" addproperty="password" />
    </target>
    I would then like to use that variable/property everytime a script is executed like this:
         <target name="deploy4x">
              <echo message="***** Copying 4X.ear *****" />
              <copy file="${build.path}\jar\4X.ear" todir="${apps.dir}" preservelastmodified="true"/>     
              <echo message="***** Updating 4X.ear on ${domain} *****"/>
              <wlst debug="true" fileName="Deploy4X.py" executeScriptBeforeFile="true" failonerror="true" >
                   <script>
                        connect('system','%s' % ${password},'%s' % $url)
                   </script>
              </wlst>
         </target>
    However, the script blows up every time I try to run it b/c of the connect() line. I have also tried connect('system','%s' % password, '%s' % url).
    Has anyone else successfully used variables in an Ant WLST Script task?
    Thanks.

    Hi,
    when I use *XDIM_MEMBERSET ACCOUNT AS %TEST% = BAS(REVENUE) - it work fine.
    BUT ! after my first commit, it seems like the variable value is lost. And the *Xdim_memberset takes all.....
    Fortunately enough, *select still contains the variable value after *commit.
    Thanks,
    Joergen
    *Correction !
    It actually works, it still contains the variable value after commit !!
    Edited by: Jørgen Dalby Andersen on Dec 30, 2011 1:33 PM

  • Environmental variables as command line args

    Hello, all,
    I would like to pass an environmental variable as a command line argument for a java program.
    Example:
    java MyClass $MY_VARIABLE
    However, it actually passes "$MY_VARIABLE", and not the value of MY_VARIABLE. I know that I can use java -D(MY_VARIABLE=SOMETHING) and get it using System.getProperty ("MY_VARIABLE");
    However, I would prefer it the first way, actually passing the variable inside command line. Is there a way to do this?
    Thank you,
    Elana

    Nevermind... Error in my code... It works
    Thank you

  • How to pass parameter to RMAN command?

    Hi,
    When i am execute delete.sh file. the following error coming. it expecting to pass parameter YES or NO.
    How I can pass parameter to RMAN command in shell scripts.
    [oracle@dbNode1 rman]$ sh delete.sh
    Executing Command : Backup as copy to file system
    Recovery Manager: Release 10.2.0.3.0 - Production on Mon Apr 20 12:13:18 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: HERMESQA (DBID=3819666523)
    connected to recovery catalog database
    RMAN> 2> 3>
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=135 devtype=DISK
    List of Backup Pieces
    BP Key BS Key Pc# Cp# Status Device Type Piece Name
    98 96 1 1 AVAILABLE DISK /u01/app/oracle/flash_recovery_area/HERMESQA/backupset/2009_03_17/o1_mf_ncnnf_TAG20090317T180639_4vz6bqkl_.bkp
    Do you really want to delete the above objects (enter YES or NO)?
    Error occurred getting response - assuming NO response
    thanks
    settu gopal

    Use
    DELETE NOPROMPT - then no questions will be asked.

  • WLST script argument passing

    Is it possible to pass arguments to a wlst script which can then be accesses via sys.argv[1:]? The execfile() command seems to only take the filepath. Do I have to use the properties file?
    Thanks,
    - Nathan

    Nathan,
    you can invoke the script directly as,
    java weblogic.WLST foo.py myarg1 myarg2
    and in your script you can get reference to the arguments passed in using the sys.argv.
    I do not think execfile supports passing in arguments, yes, you may want to try using the properties file.
    Thanks,
    -satya

  • How to pass in variables using the command line when starting ActionScript native app

    How do I pass in variables or startup arguments using the command line when starting an ActionScript native app? For example, I have my app call MySweetWidget and it has been compiled with Adobe AIR captive runtime so now I have MySweetWidget.exe.
    In the command line, I am calling MySweetWidget.exe and would like to pass in variables or properties to the application. I would assume that those variables are then read from the loaderInfo.parameters object.
    Please let me know if the Adobe AIR runtime supports passing in parameters to the native runtime. If so, I would like help determining the correct format of how to pass in the variables. Then would you read those from the loaderinfo.parameters object?
    Thanks,
    Jeff

    I found the answer to my own question:
    Yes it is a supported feature. It is documented on the following page:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApp lication.html#event:invoke
    When you subscribe to the invoke event of the NativeApplication it will subsequently dispatch the event and you read the e.arguments Array object to get the startup arguments passed into the native application.

  • Passing importing parameter in  ABAP to  java script variable

    Hi Experts,
    I am calling a ABAP function module in javascript.Now how can I take importing parameter in  ABAP to java script variable. Because I need to give alert using the improting Paramter value...
    Thanks in advance..
    RR

    to pass ABAP variable value to javascript variable the syntax is
    var myjsvariable = "<%=abapvariable%>";
    Edited by: Durairaj Athavan Raja on Jul 29, 2009 2:39 PM

  • Is it possible to pass a variable from a shell script back to an Automator action?

    Is it possible to pass a variable from a shell script back to an Automator action?
    For instance, if I assign a value of foo to $var1 in my shell script how would I retrieve/pass that value in the next Automator action. I see that there is a variable called "Shell Script" but I can't any information on how to use it. 

    red_menace,
    Thanks but I still don't understand how to pass a single value that was set in the UNIX scipt back to Automator has a variable. Take the example below, I write 4 varables to STDOUT and all 4 are stored in a variable named "storage".  How do I assign 1 of these values to the Automator "storage" variable? For instance if I wanted to assign the value of $var2 to "storage" , how would I do that?

  • Pass variables to child via C# script task ?

    I don't want to use package configurations to pass variables from Parent to child package. I'd prefer to pass the variables to child, from a  C# script task in the parent package. Can this be done ? Here is the pseudocode for what I hope to do - 
    //code in script task of parent package
    Main(){
    Object parentObj = SSIS.ParentPackage.myObject;
    String parentStr =  SSIS.ParentPackage.myString;
    callChildPackage(parentObj, parentStr);

    You have four choices for this:
    Use Parent-Child variable configurations
    Place the value in a variable in the parent package, which can be referenced from the child package, when run with an Execute Package Task. (http://agilebi.com/jwelch/2009/10/03/passing-an-object-from-a-parent-package-to-a-child)
    Take over the execution of the child package entirely executing the package from inside your C# script task.
    Use something like the Task Factory Advanced Execute Package task. (Full Disclosure: I work for Pragmatic Works)
    Item 3 is probably closest to what you want. You'd need to use the Package.Execute method to run the child package yourself. The advantage of doing that is you can set child package variables explicitly before executing the package.
    John Welch | www.pragmaticworks.com | www.agilebi.com | ssisUnit.codeplex.com

  • Passing variables to command syntax

    Is it possible to pass a variable as part of a command in a PL/SQL proceedure.
    I want to change the value of the column a cursor references by using a variable
    ie concat('my_cursor.',variable_name)
    where variable_name is the name of a column.
    This just returns the literal value and not the data we want to reference.
    Any one know how to do this, please!!

    Try Using Name_in built in ,
    consider var2 is a varchar2 type variable
    containing 'Cursor_name.'&#0124; &#0124;col_variable
    i.e
    var2:= 'Cursor_name.'&#0124; &#0124;col_variable
    col_value := name_in(var2);
    Then col_value will have the value u r searching for.
    Regards
    NGS
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Anthony Hunter ([email protected]):
    Is it possible to pass a variable as part of a command in a PL/SQL proceedure.
    I want to change the value of the column a cursor references by using a variable
    ie concat('my_cursor.',variable_name)
    where variable_name is the name of a column.
    This just returns the literal value and not the data we want to reference.
    Any one know how to do this, please!!<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • How can I determine batches while picking in transaction VL02N?

    Hi all, good day. I would appreciate your suggestions. I'm developing some RF Transactions and at this point I have to solve the following: The program process data which the user enters using a handheld; values are send to the transaction VL02N, usi

  • Can't find my serial number for Photoshop Elements 9

    Can't find my serial number for Photoshop Elements 9 which I purchased in a bindl with Premiere Elements two years ago. Now, after reinstalling Windows on my desktop I need to register my Adobe products again. They were bought by Internet. No disks o

  • Zen Micro Replacements-Are they New or Refurbis

    I've only had my Zen Micro for 4 weeks and fortunately I haven't had any problems. I dread the day I awake to the feared headphone jack problem. My question is if you have to RMA your Micro to Creative for a replacement due to the headphone jack (or

  • Website is messed up on IE

    I'm currently working on this site: http://www.akaratworld.com it works just fine on other browsers but strangely odd on IE any idea why this is happening ?

  • ITunes TV Shows - How can I consolidate the view, aka sort by season?

    I have multiple seasons of various TV shows in iTunes. Each season has its own listing when you click on TV Shows. What I would like is for the view to condense the TV shows, then I could expand them to see the individual seasons and episodes. Here's