Using $ symbols in perl

I am trying to build a perl script to perform hot backups but I am having trouble executing any command that include queries to v$tables because it tries to interpret the $symbol. For example
sub gencontrol {
open (TRACE, "/oracle/product/8.0.6/bin/sqlplus -s sys/manager <<EOF
set heading off
set pagesize 0
set verify off
set feedback off
select spid from v$process
#HERE IS AN EXAMPLE OF FAILURE ON v$process##
where addr = (select paddr from v$session where audsid = (select
userenv('sessionid') from dual));
alter database backup controlfile to trace;
exit
EOF|") &#0124; &#0124; die "NOPE";
while (<TRACE>) {
chop;
$trace = $_;
}

Hugo,
I understand your problem after trying a similar script to yours and trying unsuccessfully to escape the '$' in V$PROCESS. I had better luck using the Perl DBI module. DBI interpreted the \$ as a literal dollar sign to pass on to Oracle. See if you can modify something like this code to work for you:
#!usr/bin/perl
use DBI;
$ENV{ORACLE_HOME} = "/oracle/app/oracle/product/7.3.4";
my $n_spid;
my $dbh = DBI->connect("dbi:Oracle:exden", "sys", "change_on_install" ) &#0124; &#0124; die $DBI::errstr;
my $sth_spid = $dbh->prepare(
"SELECT spid
FROM V\$PROCESS" ); # Note the \ symbol
$sth_spid->execute;
$sth_spid->bind_columns( {}, \$n_spid );
while ( $sth_spid->fetch ) {
last if ! --my $max;
print "$n_spid\n";
null

Similar Messages

  • Can the WLPI be used for a perl web site

    We have a client, which has a perl(Apache/mod_perl) based web site. Cutomers submit orders on the web site and right now there is an order-processing system, but the client is looking for workflow/process product which will ease with all this order processing stuff like acknowledgement, approval, shipping, etc....So my question here is, can they use the WeBLogic Process Integrator for this purpose? The reason I am asking this is, looking at the WLPI docs, it looks like a Java/WebLogic only product and cannot be used for a perl web site.Thanks,Shireesh Thanneru

    Yes.
    However I would not recommend it, at least as your primary connection for the SmartTV.  Relying primarily on VZW data plans is a bad way to view video services such as Netflix at the moment.  It is very easy to chew through your plan with only a few videos depending on the resolution and a few other factors.  Not only that but a smart TV may be periodically checking the internet from time to time to download firmware updates or provide reporting stats to the manufacturer. 
    VZW Jetpacks continue to be a poor choice for home primary internet replacement.  The data plans that come from VZW and all other metered wireless providers are not friendly to this kind of internet traffic.  Letting your guard down for a moment could result in costly overages and once you accumulate them you will be liable to pay them.  A normal cable or DSL line with a high/unlimited cap would be more appropriate.
    If the Jetpack is a backup or temporary internet connection then go for it.  This is what a Jetpack is designed for, you can get by every now and then without too much risk.  Just make sure you are powering your Jetpack down as soon as you are done streaming and keep a close eye on your data plan before and after any major viewing. 

  • How can you use symbols in Windows 7 on a IMac 27

    How can you use symbols @$€%£¥ in Windows 7 on a IMac 27 mid 2011?  I tried what was normally done on Windows and got nothing.  Alt plus numbers and nothing happens, what am I missing?

    Frosted Flake,
    Are you referring to an equivalent to the Windows Character Map Application (charmap.exe) that allowed you to see the various characters available in each font, and then give you an ALT-nnn number you could key to use the character you wanted ?
    If so you can use the Special Characters from the Edit menu of most applications. Once you have located the character/symbol you want double click it and it will be entered wherever you cursor is located in your application.
    Further information can be found here :
    http://support.apple.com/kb/PH3871
    Hope this helps
    Cheers
    AF

  • Why use symbol {   } in the following script?

    Why use symbol *{   }* in the following script?
    <read-write-backing-map-scheme>
    <scheme-name>SampleDatabaseScheme</scheme-name>
    <internal-cache-scheme>
    <local-scheme>
    <scheme-ref>SampleMemoryScheme</scheme-ref>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>com.tangosol.examples.coherence.DBCacheStore</class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    *<param-value>{cache-name}</param-value>*
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    Thank you very much
    Edited by: jetq on Jun 24, 2009 6:26 PM

    Hi Frank,
    In the example, the "{cache-name}" is supposed to be replaced by the database's table or view name that will be queried for the data to be cached. It's purpose is demonstrate how to pass parameters to the class constructor.
    Regards,
    Harv

  • Need solution for using Symbol LRT3840 with Apps 10.7 and/or 11i?

    Any suggestions for using Symbol's scanner/terminal with Oracle 10.7 and/or 11i? The symbol unit runs a telnet session (with a 1/4 viewable area). I'm looking for some alternate screen templates and/or a software solution that will allow me to remap the existing full screen forms so all critical information is displayed on the symbol unit in the allowable viewing area. I understand that version 11i of Oracle Apps does not support character-based telnet sessions, so I'm also interested in a fix that will be transparent to my material handlers when we upgrade from 10.7 to 11i. Any help would be greatly appreciated.

    Hi
    We are developing solutions in that area.
    If we can know more of the exisitng solution you have implemented or PDA and how it is integrated with Oracle Application(whether it is a third party tool?)
    then we can discuss about arriving at a solution.
    My mail-id is [email protected]
    Thanks and Regards,
    Bibs

  • Why use symbol "!" here?

    Why use symbol "!" here?
    if (!contactOld.getWorkAddress().equals(
    public void entryUpdated(MapEvent event)
    Contact contactOld = (Contact)event.getOldValue();
    Contact contactNew = (Contact)event.getNewValue();
    StringBuffer sb = new StringBuffer();
    if (!contactOld.getHomeAddress().equals(
    contactNew.getHomeAddress()))
    sb.append("Home address ");
    if (!contactOld.getWorkAddress().equals(
    contactNew.getWorkAddress()))
    sb.append("Work address ");
    if (!contactOld.getTelephoneNumbers().equals(
    contactNew.getTelephoneNumbers()))
    sb.append("Telephone ");
    sb.append("was updated for ").append(event.getKey());
    System.out.println(sb);
    }

    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/operators.html
    :Rob:
    Coherence Team

  • ABAP field symbols and PERL reference variables to unnamed arrays.

    Rob -
    Please do NOT delete this post even though it contains this link:
    ABAP field symbols and PERL reference variables to unnamed arrays.
    to a question I posted in the Scripting Languages forum.
    It's a question that should be of interest to ABAP programmers, and they may miss if they don't frequent the SL forum ...
    Thanks for your forbearance here (in advance, of course) ...
    Best
    djh
    Edited by: Rob Burbank on Jul 11, 2011 1:26 PM

    If interested, please reply in the original thread. We don't want multiple conversations at cross purposes do we?
    Rob

  • How to use symbols in a loaded swf

    I want to load a swf file in flex as application with embed
    tag and then create instance of its class. I want to use symbols
    within this swf i.e. to load dynamically those symbols when needed
    and play with it. is it possible in flex builder 3? If yes then how
    and if not then how can it be done? Any suggestion is
    appriciated.

    Hello,
    using that page as guide:
    http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/events/Uncau ghtErrorEvent.html#includeExamplesSummary
    (last sample on where to insert handlers) what about:
    <s:SWFLoader id="swfLoader" init="swfLoaderInitHandler(event)" source="B.swf"/>
    and:
    protected function swfLoaderInitHandler(event:Event):void
         if(!swfLoader.content) return;
         swfLoader.content.loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAU GHT_ERROR,
              uncaughtErrorHandler);
    protected function uncaughtErrorHandler(errorEvent:UncaughtErrorEvent):void
         if(errorEvent.error is Error)
              var e:Error = errorEvent.error as Error;
              // my error is 1009 - it is expected here
              const NULL_ERROR:uint = 1009;
              if(e.errorID == NULL_ERROR)
                   errorEvent.preventDefault();
                   Alert.show(e.errorID+" "+e.message);
              // else fall through
         // else fall through
    B is supposed to fail:
    private var emptyObject:Object = null;
    public function B()
         flash.utils.setTimeout(throwErrorNow, 100);
    protected function throwErrorNow():void
         emptyObject.numericValue();
    regards,
    Peter

  • Time Machine Error Prevention - Do Not Use "/" Symbols on the names on HD!

    This is a warning message:
    If your Time Machine Backup Fails with the Message:
    "The Backup Was Not Performed Because an Error Occurred while Copying Files To the Backup Disk. The problem May be temporary. Try again later to back up.etc.."
    *If you Use Symbols In Your Names DONT!*
    *Do Not Use this / slash Symbol on the names of your Hard Drives*! Also check your logs to see if the TM backup is hanging on a file name with : or / symbol.
    *Back Story*
    I had purchased a new 3TB Western Digital HD and needed to do a full backup. I never had issues with Time Machine before. But After trying 2 times and received the error message I new something was wrong.
    I did some research installed the Time Machine Widget and checked Console for the error codes.
    I was searching on the forums here and just read a post from Pandini regarding the use of characters in file names. I was having an issue with an error code #2 every time. I reformatted with a GUID Partition (Intel Only) and verified and repaired the disks and permissions on everything was good on all my HD's.
    After reading his short post about the characters possibly causing the issue I changed the naming on one of the external USB drives to be backed up.
    I had it labeled as "Audio/Video/Docs 1TB."
    I changed to: "Audio Video Docs 1TB" then tried the backup again it worked great.
    It's amazing how a / slash can hang then entire system. I wish Apple would provide some informational notes about these very very simple subtle issues.
    Thanks to Pandini for the post, it was the key clue. Save yourself some time and check your logs and hard drive naming to be sure there are no / Slashes.
    Thanks to everyone on the forum for their contributions.

    Problem solved. Issue resolved. Problem was due to the : or / symbol in the file or HD name.

  • My keyboard on my computer keeps switching to using symbols as I'm typing.

    My keyboard on my computer keeps switching to using symbols as I'm typing. I've gone through and changed/reset/etc the keyboard, text, and language settings. I've tried to figure out if a key is stuck, but couldn't find one. I've disabled function keys to check if that affects anything, it does not. The keys will eventually, spontaneously switch back to normal (with or without my troubleshooting). It keeps switching back and forth without rhyme or reason. I eventually linked a wireless keyboard, which types correctly- even when my computer keyboard does not- so I figure it must be a technical malfunction of somekind. Using this other keyboard permanently would be fine, except it is not my own and I am traveling abroad while working from my computer.
    Please help guide me to a solution!
    Thanks!

    You may just have to take it into your local Apple Store and have them run diagnostics. Some applications will let you type diacritical marks if you hold down, for example, the a and e keys, but that doesn't seem if that's what you're experiencing.
    If you've already fooled around with Language & test, Input Sources, etc., then it's likely a hardware malfunction.
    Clinton

  • Why i am not able to use '+' symbol in ISQL PLUS

    I am getting error if i use + symbol in my plsql program while using isqlplus

    Following runs fine when run in isqlplus
    set serverout on
    begin
      dbms_output.put_line('3+5=' || (3+5));
    end;
    /Whats your issue exactly?

  • Is it possible to have two fonts apply to one string? or use symbols amongst normal font?

    Hi,
    Is it possible to apply two different fonts to one string, or use symbols amongst normal font? My purpose is to display an Omega symbol after some number.
    ".99982 Ω" or "-180 φ"
    I am using version 6.0,
    Thanks in advance!
    Solved!
    Go to Solution.

    It's not possible to use differnt fonts in the same text control (string, text message, text box, listbox...) or in the label for any control.
    An alternative solution can be to use a font that natively includes the letters / symbols you need. Within CVI 6 native fonts you can use NISystemMetaFont which includes uppercase omega letter together with other commonly used greek letters (and uppercase / lowercase alphabet and numbers, of course  ).
    In charmap the font is seen as NISYSTEM: with that program you can see all characters included in the font file and select / copy each of them to paste in CVI controls if you need it.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Can I use symbols in imessages???

    Is there any way that I can use SYMBOLS in imessages or regular text??

    Depends on how they are created. Some symbols created in special apps will only be visible to other users if they use that particular app. Just like how emojis were only visible for a time for those on iOS and with that keyboard installed. You couldn't see them on non-iOS devices. That has changed somewhat, but not for app creation.

  • Extract all used symbols in column

    Hi all,
    I've got varchar2 column where users can type all desired symbols. My need is to extract all used symbols (suppresing doubles).
    select 'abcabcd123.,,,,%' from dual union all
    select 'qqwwweabcabcd123.,,,,%' from dual My need is to extract "abcdeqw123.,%".
    How do I perform it?

    A list of used symbols could be extracted like this:
    SQL> ed
    Wrote file afiedt.buf
      1  with test as (
      2  select 'abcabcd123.,,,,%' txt from dual union all
      3  select 'qqwwweabcabcd123.,,,,%' txt from dual
      4  )
      5  --
      6  -- end of testdata
      7  --
      8  select
      9  character,
    10  count(*)
    11  from (
    12     select
    13     substr(test.txt,dummy.col,1) character
    14     from test
    15     join (
    16        select level col
    17        from dual
    18        connect by level <= 40
    19     ) dummy
    20     on (
    21        dummy.col <= length(test.txt)
    22     )
    23  )
    24  group by character
    25* order by character
    SQL> /
    C   COUNT(*)
    %          2
    ,          8
    .          2
    1          2
    2          2
    3          2
    a          4
    b          4
    c          4
    d          2
    e          1
    q          2
    w          3
    13 rows selected.Change *40* to the maximum length of your column.
    Will this suffice to get your list of used symbols? Or do you need it to be in one string?

  • Using symbols

    I am using an HP touchsmart tx2 and running windows 7 pro.  I want to use symbols such as those used in the Spanish language.  With my desk top Dell I simply use the number pad with the Alt key and appropriate numbers.  For example, can make the accented "a" using alt + 160.  This works in both e-mail and Word type documents.  My question is:  How do I do this with my HP?  No, I haven't figured out how to activate the number pad on my HP which seems to be integrated into the keyboard rather than standing alone on the side as on my Dell.  Appreciate any help.
    This question was solved.
    View Solution.

    Hi,
    Try holding down the fn amd alt keys and enter the ascii code from the integrated numbers on the keyboard.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

Maybe you are looking for

  • Can not open hfm application in Workspace

    When try to open HFM application from Workspace, application failed to open, errors pop up as below fyr, pls help: --------------01---------------------------------------------- An error occurred processing the result from the server. Description: In

  • Ipod touch 2nd gen disconnects from itunes and turns off while syncing

    My Ipod touch i try to connect to itunes and sync it with the itunes, but everytime there is a problem. The problem is that every time it gets like maybe 10 - 30 % done syncing the ipod cuts to a black screen and it is gone from itunes window. Also o

  • Downsizing original Iphoto library

    I wanted to downsize (segment) my 96Gb Iphoto library to smaller libraries by year. What is the recommended method of doing this? I've already tried this: Copied original 96Gb to another location, renamed as "2006" , opened in Iphoto, using hold opti

  • Can't enable root access in Lion 10.7.2

    Hi all, I have read this Apple article on enabling root in Lion. It doesn't work for me. I did a fresh install of Lion 10.7.2 to a formatted drive from a USB thumbdrive. I ran Software Update until there were no more updates. When I open the "Directo

  • Need to explicitly setup AutoRerun for new installations of SCDPM2012 R2?

    Do I have to explicitly create the AutoRerunNumberOfAttempts and AutoRerunDelay keys in the registry of my DPM servers for AutoRun to work or is it built into SCDPM2012 R2 to automatically perform a rerun when a Sync and Recovery Point (RP) fails?  H