Using quote delimiter with define off.

I am having issues with the the quote delimiter picking up the colon as a bind variable. For some reason when there is a tick infront of the colon it will break (ex. 2) but in (ex. 3) it is behind the colon it will work fine.
set define off
DECLARE
s1 VARCHAR2(20);
s2 VARCHAR2(20);
s3 VARCHAR2(20);
BEGIN
  s1 := 'Isn''t t:his cool';
  --s2 := q'{Isn't th:is cool}';
  s3 := q'{Isnt th:is co'ol}';
  dbms_output.put_line(s1);
  dbms_output.put_line(s2);
  dbms_output.put_line(s3);
END;
/

@SY,
Can you please explain the difference ?
SQL> select  * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
PL/SQL Release 9.2.0.8.0 - Production
CORE    9.2.0.8.0       Production
TNS for HPUX: Version 9.2.0.8.0 - Production
NLSRTL Version 9.2.0.8.0 - Production
SQL> SET define off
SQL>
SQL> DECLARE
  2     s1   VARCHAR2 (20);
  3     s2   VARCHAR2 (20);
  4     s3   VARCHAR2 (20);
  5  BEGIN
  6     s1 := 'Isn''t t:his cool';
  7     s2 := q'{Isn't th:is cool}';
  8     s3 := q'{Isnt th:is co'ol}';
  9     DBMS_OUTPUT.put_line (s1);
10     DBMS_OUTPUT.put_line (s2);
11     DBMS_OUTPUT.put_line (s3);
12  END;
13  /
   s2 := q'{Isn't th:is cool}';
ERROR at line 7:
ORA-06550: line 7, column 11:
PLS-00103: Encountered the symbol "{Isn" when expecting one of the following:
. ( * @ % & = - + ; < / > at in is mod not rem
<an exponent (**)> <> or != or ~= >= <= <> and or like
between ||
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL> SET define off
SQL>
SQL> DECLARE
  2     s1   VARCHAR2 (20);
  3     s2   VARCHAR2 (20);
  4     s3   VARCHAR2 (20);
  5  BEGIN
  6     s1 := 'Isn''t t:his cool';
  7     s2 := q'{Isn't th:is cool}';
  8     s3 := q'{Isnt th:is co'ol}';
  9     DBMS_OUTPUT.put_line (s1);
10     DBMS_OUTPUT.put_line (s2);
11     DBMS_OUTPUT.put_line (s3);
12  END;
13  /
Isn't t:his cool
Isn't th:is cool
Isnt th:is co'ol
PL/SQL procedure successfully completed.Thanks in advance.

Similar Messages

  • Using Quota templates with Self Service Site Creation

    I am having an issue with quota templates not getting assigned to site collections created with Self Service Site Creation.
    I set up a quota template in 'Specify Quota Templates' and give it the name 'test'.  I then go to self service site creation management and select the name 'test' from the 'Quota template to apply' dropdown.  I then create a site using self service
    site creation and when completed no template is applied to the new site collection.  I am wondering if anybody has seen this or if not am I incorrect in what I am expecting, that is that all site created in that web application should have the quota template
    applied that I selected in self-service site creation management
    Steven Albrecht
    University of Colorado Denver
    Steven Albrecht

    Hi Steven,
    Please create a quota template named "Personal site" and apply in self service site creation page, then check again.
    http://blogs.msdn.com/b/jimmiet/archive/2012/07/22/10332361.aspx
    http://danmyhre.wordpress.com/2010/03/16/my-sites-do-not-have-a-quota-when-they-are-created/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Using map-application with dataroaming "off"

    hello,
    does the map-application require internet- or wifi-access or uses it only gps-data? when not logged in to my provider with setting "dataroaming OFF" can I use maps-app and will get actual information?

    The iPhone includes A-GPS or assisted GPS to speed up the tracking process.
    The iPhone's GPS radio is functional by itself, but maps data must be downloaded to the iPhone via an available wi-fi network that you have access to, or via a cellular data/internet connection.
    If you are roaming internationally with data roaming off, no maps data will be downloaded/available. Maps data is not stored locally on the iPhone.

  • SSIS importing comma delimited with double quote text qualifier - Works in VS - SQL Job ignores text qualifier and fails (truncation)

    I've created an SSIS package to import a comma delimited file (csv) with double quotes for a text qualifier ("). Some of the fields contain the delimiter inside the qualified text. An example row is:
    15,"Doe, John",IS2,Alabama
    In SSIS I've specified the text qualifier as ". The sample output in the connection manager looks great. The package runs perfectly from VS and when manually executed on the SSIS server itself. The problem comes when I schedule the package to run via SQL
    job. At this point the package ignores the text qualifier, and in doing so pushes half of a field into the next available column. But instead of having too many columns, it concatenates the last 2 columns ignoring the delimiter. For example (pipes are fields):
    15|"Doe| John"|IS2,Alabama
    So the failure happens when the last half of a field is too large to fit into the next available field. In the case above _John" is 6 characters where the IS2 field is char(3). This would cause a truncation failure, which is the error I receive from the
    job history.
    To further test this I created a failure flow in my data flow to capture the records failing to be pulled from the source csv. Out of ~5000 records, ~1200 are failing, and every one of the failures has a comma delimiter inside the quoted text with a 'split'
    length greater than the next ordinal field. The ones without the comma were inserted as normal and records where the split fit into the next ordinal column where also imported, with the last field being concatenated w/delimiter. Example records when selected
    from table:
    25|"Allan Percone Trucking"|GI6|California --Imported as intended
    36|"Renolds| J."|UI6,Colorado --Field position offset by 1 to right - Last field overloaded
    To further ensure this is the problem, I changed the csv file and flat file connection manager to pipe delimited, and sure enough every record makes it in perfectly from the SQL job execution.
    I've tried comma delimited on the following set ups. Each set up failed.
    SSIS Server 2008 R2 RTM
    DB Server 2008 RTM
    DB Compat 80
    SSIS Server 2008 R2 RTM
    DB Server 2008 R2 RTM
    DB Compat 80
    SSIS Server 2008 R2 RTM
    DB Server 2008 RTM
    DB Compat 100
    SSIS Server 2008 R2 RTM
    DB Server 2008 R2 RTM
    DB Compat 100
    Since a lot of our data comes in via comma delimited flat files, I really need a fix for this. If not I'll have to rebuild all my files when I import them to use pipe delimiters instaed of commas. I'd like to avoid the extra processing overhead if possible.
    Also, is this a known bug? If so can someone point me to the posting of said bug?
    Edit: I can't ask the vendor to change the format to pipe delimited because it comes from a federal government site.

    Just wanted to share my experience of this for anyone else since I wasted a morning on it today.
    I encountered the same problem where I could run the package fine on my machine but when I deployed to a server and ran the package via dtexec, the " delimeter was being replaced with _x0022_ and columns all slurped up together and overflowing columns/truncating
    data etc.
    Since I didn't want to manually hack the DTS XML and can't install updates, the solution I used was to set an expression on the textdelimiter field of the flat file connection with the value "\"" (a double quote). That way, even if the one stored in XML
    gets bodged somewhere along the way, it is overridden with the correct value at run time. The package works fine everywhere now.

  • Basic Photoshop 101: I want to use an image with an outer glow in another Photoshop document. When I place the image, the outer glow has hard edges where the box of the image cut the glow off. Naturally, I want a soft feathered outer glow. How do I get th

    Basic Photoshop 101: I want to use an image with an outer glow in another Photoshop document. When I place the image, the outer glow has hard edges where the box of the image cut the glow off. Naturally, I want a soft feathered outer glow. How do I achieve that? Thank you.

    That should work out, maybe edit it to force updating in the new image.
    Could you please post a screenshot with the Layers Panel visible?

  • HT201412 my ipad3 does not turn on after it went off while using it, anyone with same experience and have it resolve already?

    my Ipad 3 will not turn-on after it went off while using it, anyone with the same experience and have it resolve?

    Is the battery charged?
    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • Database copy with "set define off" option

    Is there an option to do a database copy with a "set define off" option ? I'm copying packages that contain ampersands (&) in strings and during the copy I'm being asked the value of these variables.

    Apologies for spamming this thread, but I'd like to point out a couple of additional issues regarding Database Copy:
    1) On Fedora it tries to create the script file in a system folder ( +/opt/sqldeveloper/sqldeveloper+, IIRC) which obviously doesn't work unless you are root.
    2) DDL generated for objects named like the exporting schema (for example table TEST in schema TEST) is incorrect. For example (note the missing table name):
    -- DDL for Table TEST
    CREATE TABLE
    (     "FIELD1" NUMBER,
    ) ;

  • Face time with wifi only.  I have a 4Gs iPhone traveling to Japan.  Can I use face time with another 4Gs or IMacback in the States using just wifi and with I have my Celluar Data and Data Roaming off?

    Face time with wifi only.  I have a 4Gs iPhone traveling to Japan.  Can I use face time with another 4Gs or IMacback in the States using just wifi and with I have my Celluar Data and Data Roaming off?

    Thanks,  After changing my settings in face time per your suggestion, (it needed to be done),  I turned off cellular data and data roaming and made a call using face time.  It worked!  Great way to stay in touch while overseas without the need for those egregious phone data plans. 

  • Can i use photoshop touch with out internet  photoshop in off line

    can i use photoshop touch with out internet  photoshop in off line

    If the question was if you could use PS Touch without Internet access, yes. I do it all the time.

  • I have an iphone5 which is currently off ( network I use to have with sprint) but now I'm using wifi. All of my apps work fine except my safari (web). When I'm ready to search suggestions won't pop up and my screen will freeze and go blank. HELP PLS

    I have an iphone5 which is currently off ( network I use to have with sprint) but now I'm using wifi. All of my apps work fine except my safari (web). When I'm ready to search suggestions won't pop up and my screen will freeze and go blank. Even my bookmarks won't load. I don't know what the problem is can someone please help

    I have an iphone5 which is currently off ( network I use to have with sprint) but now I'm using wifi. All of my apps work fine except my safari (web). When I'm ready to search suggestions won't pop up and my screen will freeze and go blank. Even my bookmarks won't load. I don't know what the problem is can someone please help

  • What TV's are compatible with Macbook pro using HDMI in the capacity off a monitor?

    What TV's are compatatable with Macbook pro to use as a monitor using HDMI?

    Hi Ralph,
    More information about using HDMI displays with your MacBook Pro is available here -
    Mac computers: Frequently asked questions about using HDMI
    http://support.apple.com/kb/HT4214
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Need help in using replace function with special characters

    I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
    The data looks like this:
    CREEK&#39;S LANE
    ie for a street named CREEK'S LANE.
    I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
    When I try the query below I get prompted for substitution variable value.
    I don't seem to be able to find the right syntax to make this query work.
    SELECT REPLACE (street_name, '&#39;', '''')
    FROM
    streets WHERE street_id = 1
    Does anybody know how to do this?
    Any help would be much appreciated.
    Thanks.
    George

    george91 wrote:
    I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
    The data looks like this:
    CREEK'S LANE
    ie for a street named CREEK'S LANE.
    I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
    When I try the query below I get prompted for substitution variable value.
    I don't seem to be able to find the right syntax to make this query work.
    SELECT REPLACE (street_name, ''', '''')
    FROM
    streets WHERE street_id = 1
    Does anybody know how to do this?
    Any help would be much appreciated.
    Thanks.
    GeorgeHa! The codes you specified rendered in the HTML, but showed properly when I listed your original posting above. I didn't understand what you meant initially because the 5-character string represenation got rendered as the quote that you said you weren't able to get - a display problem.
    You're getting prompted for the substituon variable because of the ampersand; you appear to be doing this in SQL*PLUS. The first thing I would try is to SET DEFINE OFF when using the ampersands to see if that works. If That doesn't work check the docs to delmit the ampersand (I think its a backslash before it but can't remember offhand). Another, harder option might be to use the TRANSLATE function replacing the literal character instead of using REPLACE (though replacing a quote will be a little tricky). If you're on 10g also consider using the advanced quoting
    Good luck!
    Edited by: riedelme on May 22, 2009 12:45 PM

  • Use private function with interface

    I'm working with ActionScript 2 and wanted to use an
    interface for one of my classes. However, the functions that it
    would define should be private in the classes that implement the
    interface. The problem is that I can't define private functions in
    the interface, and if I leave off any scope in the interface
    ("function findAndSetInformation():Void;") and make it private in
    the implementing class ("private function
    findAndSetInformation():Void {...") I get the error: "The
    implementation of the interface method doesn't match its
    definition.

    WHATS UP ?? WHERE IS TEH MODERATOR ?!!!!
    NO REPLY TELL NOW !!!!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Yh:
    hi,
    how can i used REPLACE function with LOB database item????!!!1<HR></BLOCKQUOTE>
    null

  • Using directory alias with a wanboot installation

    I have setup a Jumpstart server and have been using it for a while without issues. Now I want to incorporate wanboot into the process so that I do not need boot servers in each of our subnets. Since the jumpstart directory structure is already in place and I have apache running on the same server, I did not want to have to recreate the whole jumpstart directory structure. So I decided to create an alias in the apache configuration for the jumpstart directory:
    root@swamphenxb:/usr/local/apache2/conf> cat httpd.conf
    <snip>
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    Alias /jumpstart /export/jumpstart
    ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #Scriptsock logs/cgisock
    </IfModule>
    # "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/usr/local/apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    *<Directory /export/jumpstart>*
    AllowOverride None
    Options All
    Order allow,deny
    Allow from all
    *</Directory>*
    The wanboot.conf file is located in /etc/netboot and looks with the following information:
    root@swamphenxb:/usr/local/apache2/conf> cat /etc/netboot/wanboot.conf
    # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # ident "@(#)wanboot.conf.sample 1.2 04/01/30 SMI"
    # wanboot.conf(4): boot configuration file.
    # Please consult wanboot.conf(4) for further information. Note that
    # this interface is "Evolving" as defined by attributes(5).
    # Anything after a '#' is comment. Values may be quoted (e.g. "val").
    # <empty> means there is no value, i.e. null. The absence of any
    # parameter implies that it takes a default value (<empty> unless
    # otherwise specified).
    # <url> is of the form http://... or https://...
    # The path of the bootstrap file (within htdocs) which is served up
    # by wanboot-cgi(bootfile).
    boot_file=/jumpstart/wanboot/wanboot.s10_sparc # <absolute pathname>
    # These are used by wanboot-cgi(bootfile|bootfs|rootfs) to determine
    # whether boot_file or the bootfs is to be sent encrypted/signed, or
    # root_file is to be sent signed; the client must be setup with the
    # corresponding encryption/signature key(s) (which cannot be auto-
    # matically verified).
    # If an encryption_type is specified then a signature_type must also
    # be specified.
    encryption_type= # 3des | aes | <empty>
    signature_type= # sha1 | <empty>
    # This is used by wanboot-cgi(bootfs) and wanboot to determine whether
    # server authentication should be requested during SSL connection
    # setup.
    server_authentication=no # yes | no
    # This is used by wanboot-cgi(bootfs) and wanboot to determine whether
    # client authentication should be requested during SSL connection
    # setup. If client_authentication is "yes", then server_authentication
    # must also be "yes".
    client_authentication=no # yes | no
    # wanboot-cgi(bootfs) will construct a hosts file which resolves any
    # hostnames specified in any of the URLs in the wanboot.conf file,
    # plus those found in certificates, etc. The following parameter
    # may be used to add additional mappings to the hosts file.
    resolve_hosts= # <hostname>[,<hostname>*] | <empty>
    # This is used to specify the URL of wanboot-cgi on the server on which
    # the root_file exists, and used by wanboot to obtain the root server's
    # URL; wanboot substitutes root_file for the pathname part of the URL.
    # If the schema is http://... then the root_file will be signed if there
    # is a non-empty signature_type. If server_authentication is "yes", the
    # schema must be https://...; otherwise it must be http://...
    root_server=http://170.12.14.240/cgi-bin/wanboot-cgi # <url> | <empty>
    # This is used by wanboot-cgi(rootfs) to locate the path of the
    # rootfs image (within htdocs) on the root_server.
    root_file=/jumpstart/miniroot/miniroot # <absolute pathname> | <empty>
    # This is used by wanboot to determine the URL of the bootserver
    # (and whether bootlog traffic should be sent using http or https),
    # or whether it should simply be sent to the console.
    boot_logger= # <url> | <empty>
    # This is used by the system startup scripts. If set, it should
    # point to a file that contains name value pairs to be used at
    # start up time. For example, this file may be used to provide
    # install the values for sysidcfg and jumpscfg.
    system_conf=system.conf
    I have the client configured to boot from the web server and when I attempt to boot, I get the following message:
    {2} ok boot net - install
    Boot device: /pci@9,700000/pci@2/network@0 File and args: - install
    /pci@9,700000/pci@2/network@0: 1000 Mbps full duplex link up
    HTTP: Bad Response: 500 Internal Server Error (boot_file missing)
    Boot load failed
    I am able to see a listing of all the directories and files including the boot_file in my browser. The permissions for the /etc/netboot directory is:
    root@swamphenxb:/etc/netboot> ls -al
    total 26
    drwx------ 3 daemon other 512 Nov 20 13:09 .
    drwxr-xr-x 63 root sys 6144 Nov 2 11:43 ..
    drwx------ 3 daemon other 512 Nov 20 13:10 170.12.144.0
    -rw------- 1 daemon other 80 Nov 5 17:02 system.conf
    -rw------- 1 daemon other 3331 Nov 2 14:07 wanboot.conf
    It looks like maybe wanboot does not like the alias I am using, but I want to verify that before I move on to plan B. Thanks.
    Chuck Briggs

    Long but this is a copy of my lab configuration files for WAN boot
    */etc/ethers*
    0:3:ba:16:99:f5 wgls01
    0:3:ba:14:b9:71 wgls02
    0:3:ba:16:a5:bf wgls03
    0:3:ba:5b:c7:5b wgls04
    0:3:ba:16:9d:31 wgls05
    0:3:ba:e8:65:9 wgls07
    0:3:ba:e8:92:a9 wgls08
    0:3:ba:16:6b:27 wgls09
    0:3:ba:2b:35:c2 wgls10
    0:3:ba:5c:b0:5 wgls11*/etc/bootparams*
    wgls01 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls02 root=wgls06:/js/sparc/Solaris_9_2005-09/Solaris_9/Tools/Boot   install=wgtsinf01:/js/sparc/Solaris_9_2005-09  boottype=:in   rootopts=:rsize=8192
    wgls03 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls04 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls05 root=wgls06:/js/sparc/Solaris_9_2005-09/Solaris_9/Tools/Boot   install=wgtsinf01:/js/sparc/Solaris_9_2005-09  boottype=:in   rootopts=:rsize=8192
    wgls06 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls07 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls08 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192
    wgls09 root=wgls06:/js/sparc/Solaris_8_2004-02/Solaris_8/Tools/Boot   install=wgtsinf01:/js/sparc/Solaris_8_2004-02  boottype=:in   rootopts=:rsize=8192
    wgls10 root=wgls06:/js/sparc/Solaris_10_2009-10/Solaris_10/Tools/Boot install=wgtsinf01:/js/sparc/Solaris_10_2009-10 boottype=:in   rootopts=:rsize=8192*/etc/hosts*
    # Fake prod subnet
    #10.64.86.30     wgls01.nz.thenational.com wgls01
    #10.64.86.31     wgls02.nz.thenational.com wgls02
    10.64.86.32     wgls03.nz.thenational.com wgls03
    10.64.86.33     wgls04.nz.thenational.com wgls04
    10.64.86.34     wgls05.nz.thenational.com wgls05
    10.64.86.35     wgls06.nz.thenational.com wgls06
    10.64.86.36     wgls07.nz.thenational.com wgls07
    #10.64.86.37     wgls08.nz.thenational.com wgls08
    #10.64.86.42     wgls09.nz.thenational.com wgls09
    10.64.86.43     wgls10.nz.thenational.com wgls10Under wgls06:/js/sparc I have many small (~85MB) directories just to load the boot code
    # find /js/sparc/Solaris_10_2008-10
    /js/sparc/Solaris_10_2008-10
    /js/sparc/Solaris_10_2008-10/Solaris_10
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/solarisn
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/liveupgrade20
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/solarisn.class
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/JRE
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/liveupgrade20.class
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/com
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/com/sun
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/com/sun/launcher
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/com/sun/liveupgrade
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Installers/.install/install_common
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/rm_install_client
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/add_install_client
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/pkg_db.cpio.bz2
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/X_small.cpio.bz2
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4us
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4us/inetboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4us/wanboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4us/boot_archive
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4u
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4u/boot_archive
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4u/inetboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4u/wanboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4v
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4v/wanboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4v/inetboot
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/platform/sun4v/boot_archive
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/netmask
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/X.cpio.bz2
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/lu.platforms
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/Boot/lu.cpio.bz2
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/.wanboot_unneeded_packages
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/setup_install_server
    /js/sparc/Solaris_10_2008-10/Solaris_10/Tools/dialAll OS files are located at wgtsinf01:/js/sparc
    Firewalls should allow the traffic (TFTP)

  • Oracle Data Mining - How to use PREDICTION function with a regression model

    I've been searching this site for Data Mining Q&A specifically related to prediction function and I wasn't able to find something useful on this topic. So I hope that posting it as a new thread will get useful answers for a beginner in oracle data mining.
    So here is my issue with prediction function:
    Given a table with 17 weeks of sales for a given product, I would like to do a forecast to predict the sales for the week 18th.
    For that let's start preparing the necessary objects and data:
    CREATE TABLE T_SALES
    PURCHASE_WEEK DATE,
    WEEK NUMBER,
    SALES NUMBER
    SET DEFINE OFF;
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('11/27/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 1, 55488);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/04/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 2, 78336);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/11/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 3, 77248);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/18/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 4, 106624);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('12/25/2010 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 5, 104448);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/01/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 6, 90304);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/08/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 7, 44608);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/15/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 8, 95744);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/22/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 9, 129472);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('01/29/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 10, 110976);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/05/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 11, 139264);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/12/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 12, 87040);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/19/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 13, 47872);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('02/26/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 14, 120768);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('03/05/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 15, 98463.65);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('03/12/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 16, 67455.84);
    Insert into T_SALES
    (PURCHASE_WEEK, WEEK, SALES)
    Values
    (TO_DATE('3/19/2011 23:59:59', 'MM/DD/YYYY HH24:MI:SS'), 17, 100095.66);
    COMMIT;
    There are a lot of linear regression models and approaches for sales forecast out on the market, however I will focus on what oracle 11g offers i.e. package SYS.DBMS_DATA_MINING to create a model using regression as mining function and then, once the model is created, to apply prediction function on the model.
    Therefore I'll have to go through few steps:
    i) normalization of data
    CREATE OR REPLACE VIEW t_sales_norm AS
    SELECT week,
    sales,
    (sales - 91423.95)/27238.3693126778 sales_norm
    FROM t_sales;
    whereas the numerical values are the mean and the standard deviation:
    select avg(sales) from t_sales;
    91423.95
    select stddev(sales) from t_sales;
    27238.3693126778
    ii) auto-correlation. For the sake of simplicity, I will safely assume that there is no auto-correlation (no repetitive pattern in sales among the weeks). Therefore to define the lag data I will consider the whole set:
    CREATE OR REPLACE VIEW t_sales_lag AS
    SELECT a.*
    FROM (SELECT week,
    sales,
    LAG(sales_norm, 1) OVER (ORDER BY week) L1,
    LAG(sales_norm, 2) OVER (ORDER BY week) L2,
    LAG(sales_norm, 3) OVER (ORDER BY week) L3,
    LAG(sales_norm, 4) OVER (ORDER BY week) L4,
    LAG(sales_norm, 5) OVER (ORDER BY week) L5,
    LAG(sales_norm, 6) OVER (ORDER BY week) L6,
    LAG(sales_norm, 7) OVER (ORDER BY week) L7,
    LAG(sales_norm, 8) OVER (ORDER BY week) L8,
    LAG(sales_norm, 9) OVER (ORDER BY week) L9,
    LAG(sales_norm, 10) OVER (ORDER BY week) L10,
    LAG(sales_norm, 11) OVER (ORDER BY week) L11,
    LAG(sales_norm, 12) OVER (ORDER BY week) L12,
    LAG(sales_norm, 13) OVER (ORDER BY week) L13,
    LAG(sales_norm, 14) OVER (ORDER BY week) L14,
    LAG(sales_norm, 15) OVER (ORDER BY week) L15,
    LAG(sales_norm, 16) OVER (ORDER BY week) L16,
    LAG(sales_norm, 17) OVER (ORDER BY week) L17
    FROM t_sales_norm) a;
    iii) choosing the training data. Again, I will choose the whole set of 17 weeks, as for this discussion in not relevant how big should be the set of training data.
    CREATE OR REPLACE VIEW t_sales_train AS
    SELECT week, sales,
    L1, L2, L3, L4, L5, L6, L7, L8, L9, L10,
    L11, L12, L13, L14, L15, L16, L17
    FROM t_sales_lag a
    WHERE week >= 1 AND week <= 17;
    iv) build the model
    -- exec SYS.DBMS_DATA_MINING.DROP_MODEL('t_SVM');
    BEGIN
    sys.DBMS_DATA_MINING.CREATE_MODEL( model_name => 't_SVM',
    mining_function => dbms_data_mining.regression,
    data_table_name => 't_sales_train',
    case_id_column_name => 'week',
    target_column_name => 'sales');
    END;
    v) finally, where I am confused is applying the prediction function against this model and making sense of the results.
    On a search on Google I found 2 ways of applying this function to my case.
    One way is the following:
    SELECT week, sales,
    PREDICTION(t_SVM USING
    LAG(sales,1) OVER (ORDER BY week) as l1,
    LAG(sales,2) OVER (ORDER BY week) as l2,
    LAG(sales,3) OVER (ORDER BY week) as l3,
    LAG(sales,4) OVER (ORDER BY week) as l4,
    LAG(sales,5) OVER (ORDER BY week) as l5,
    LAG(sales,6) OVER (ORDER BY week) as l6,
    LAG(sales,7) OVER (ORDER BY week) as l7,
    LAG(sales,8) OVER (ORDER BY week) as l8,
    LAG(sales,9) OVER (ORDER BY week) as l9,
    LAG(sales,10) OVER (ORDER BY week) as l10,
    LAG(sales,11) OVER (ORDER BY week) as l11,
    LAG(sales,12) OVER (ORDER BY week) as l12,
    LAG(sales,13) OVER (ORDER BY week) as l13,
    LAG(sales,14) OVER (ORDER BY week) as l14,
    LAG(sales,15) OVER (ORDER BY week) as l15,
    LAG(sales,16) OVER (ORDER BY week) as l16,
    LAG(sales,17) OVER (ORDER BY week) as l17
    ) pred
    FROM t_sales a;
    WEEK, SALES, PREDICTION
    1, 55488, 68861.084076412
    2, 78336, 104816.995823913
    3, 77248, 104816.995823913
    4, 106624, 104816.995823913
    As you can see for the first row there is a value of 68861.084 and for the rest of 16 values is always one and the same 104816.995.
    Question: where is my week 18 prediction ? or maybe I should say which one is it ?
    Another way of using prediction even more confusing is against the lag table:
    SELECT week, sales,
    PREDICTION(t_svm USING a.*) pred
    FROM t_sales_lag a;
    WEEK, SALES, PREDICTION
    1, 55488, 68861.084076412
    2, 78336, 75512.3642096908
    3, 77248, 85711.5003385927
    4, 106624, 98160.5009687461
    Each row out of 17, its own 'prediction' result.
    Same question: which one is my week 18th prediction ?
    Thank you very much for all help that you can provide on this matter.
    It is as always highly appreciated.
    Serge F.

    Kindly let me know how to give input to predict the values for example script to create model is as follows
    drop table data_4svm
    drop table svm_settings
    begin
    dbms_data_mining.drop_model('MODEL_SVMR1');
    CREATE TABLE data_4svm (
    id NUMBER,
    a NUMBER,
    b NUMBER
    INSERT INTO data_4svm VALUES (1,0,0);
    INSERT INTO data_4svm VALUES (2,1,1);
    INSERT INTO data_4svm VALUES (3,2,4);
    INSERT INTO data_4svm VALUES (4,3,9);
    commit;
    --setting table
    CREATE TABLE svm_settings
    setting_name VARCHAR2(30),
    setting_value VARCHAR2(30)
    --settings
    BEGIN
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.algo_name, dbms_data_mining.algo_support_vector_machines);
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.svms_kernel_function, dbms_data_mining.svms_linear);
    INSERT INTO svm_settings (setting_name, setting_value) VALUES
    (dbms_data_mining.svms_active_learning, dbms_data_mining.svms_al_enable);
    COMMIT;
    END;
    --create model
    BEGIN
    DBMS_DATA_MINING.CREATE_MODEL(
    model_name => 'Model_SVMR1',
    mining_function => dbms_data_mining.regression,
    data_table_name => 'data_4svm',
    case_id_column_name => 'ID',
    target_column_name => 'B',
    settings_table_name => 'svm_settings');
    END;
    --to show the out put
    select class, attribute_name, attribute_value, coefficient
    from table(dbms_data_mining.get_model_details_svm('MODEL_SVMR1')) a, table(a.attribute_set) b
    order by abs(coefficient) desc
    -- to get predicted values (Q1)
    SELECT PREDICTION(MODEL_SVMR1 USING *
    ) pred
    FROM data_4svm a;
    Here i am not sure how to predict B values . Please suggest the proper usage . Moreover In GUI (.NET windows form ) how user can give input and system can respond using the Q1

Maybe you are looking for

  • ALV fields which are not referenced to data dictionary table fields

    Hello, I am using function module reuse_alv_popup_to_select. How do I display fields in ALV which are not referenced to data dictionary table fields. I am showing 4 columns in alv out of which first column is checkbox and remaining 3 columns are from

  • Need to Post Components in Production Order in MB1A through BAPI as Planned Good Issue

    Hi , I have created a Program to upload data s for MB1A through BDC , it works fine, but for huge data s it takes more time.  alternatively created one more Program which updates through BAPI Function Module  "BAPI_GOODSMVT_CREATE".  It works fine ,

  • JTextPane custom views keyboard problem

    Hi, I am trying to implement a custom view in the JTextPane. The view is appearing fine but the keyboard cursor movements are not working. The cursor no longer moves from line to line as it used to when using the arrow keys. However Iam able to move

  • Show Photo Settings VS Emptying Trash?

    Am very confused about implications of emptying the trash in iMovie (6hd) ... I've done a movie which is really just photos with effects, motion, music. It SEEMS, as if it's no longer possible to display a preview of a motion photo (Ken Burns effect)

  • Batch change photo dates in Photos for 10.10.3?

    If anyone has access to the 10.10.3 beta or has managed to use Photos at all, does it still allow you to batch change photo dates like iPhoto used to? Thanks!