SQL0104N  An unexpected token "END-OF-STATEMENT"

Hello,
for some audits we should run the following command:
DB2 SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE CONTROLAUTH = 'Y' OR 'G'
UNION
SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE ALTERAUTH = 'Y' OR 'G'
UNION
SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE DELETEAUTH = 'Y' OR 'G'
UNION
SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE UPDATEAUTH = 'Y' OR 'G'
UNION
SELECT DISTINCT GRANTEE FROM SYSCAT.TABAUTH
WHERE INSERTAUTH = 'Y' OR 'G' > all_users_auth.txt
This does not work. When I run a single step I get the following message:
db2 "select distinct grantee from syscat.tabauth where controlauth = 'Y' or 'G'"
SQL0104N  An unexpected token "END-OF-STATEMENT" was found following "rolauth
= 'Y' or 'G'".  Expected tokens may include:  "<interval_qualifier>". 
SQLSTATE=42601
But what kind of interval_qualifier is needed???
Regards
Olaf

Hello Olaf,
You can try to run the following SQL statement.
db2 "select distinct grantee from syscat.tabauth where controlauth in ('Y','G')"
Regards,
Masako

Similar Messages

  • Java.sql.SQLException: Unexpected token: IN in statement

    I use Toplink 2.0-b41-beta2 (03/30/2007) and have a problem with the following JPQL query:
    “SELECT DISTINCT OBJECT(e) FROM Entry e WHERE e.location IN (SELECT loc From View v JOIN v.viewLocs vl JOIN vl.location loc where v.code = :code)”
    “Entry” is a subclass of “TrainElement”, location points to Entity Location. Entity View has a one-to-many relationship to ViewLoc whereas each ViewLoc has a relationship to a Location object.
    Toplink creates the following incorrect sql statement – I inserted some CRLF for better readability::
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Unexpected token: IN in statement
    [SELECT DISTINCT t0.TELEM_TRAINELEM_ID, t0.TRAINELEMENT_TYPE, t0.TELEM_INDEX, t0.TTELEM_TRAIN_ID, t0.ENTRY_TYPE, t0.ENTRY_ARRIVAL, t0.DISPLAY, t0.ENTRY_ORDERED_STOP, t0.ENTRY_DEPARTURE, t0.ENTRY_ORDER_CODE, t0.ENTRY_PREV_SEC_ID, t0.ENTRY_NEXT_SEC_ID, t0.ENT_LOC_ID FROM TRAINELEMENT t0, LOCATION t1
    WHERE (( IN ((SELECT DISTINCT t2.LOC_ID, t2.LOC_GPSY, t2.LOC_GRX, t2.LOC_CODE, t2.LOC_GRY, t2.LOC_GPSX, t2.LOC_LOCAL_RADIO, t2.LOC_NAME, t2.DELETED, t2.LOC_CLASS_ID FROM VIEW t4, VIEWLOC t3, LOCATION t2 WHERE ((t4.VIEW_CODE = ?) AND ((t3.VIEWLOC_VIEW_ID = t4.VIEW_ID) AND (t2.LOC_ID = t3.VIEWLOC_LOCACTION_ID))))) AND (t0.TRAINELEMENT_TYPE = ?)) AND (t1.LOC_ID = t0.ENT_LOC_ID))]
    Error Code: -11
    Call: SELECT DISTINCT t0.TELEM_TRAINELEM_ID, t0.TRAINELEMENT_TYPE, t0.TELEM_INDEX, t0.TTELEM_TRAIN_ID, t0.ENTRY_TYPE, t0.ENTRY_ARRIVAL, t0.DISPLAY, t0.ENTRY_ORDERED_STOP, t0.ENTRY_DEPARTURE, t0.ENTRY_ORDER_CODE, t0.ENTRY_PREV_SEC_ID, t0.ENTRY_NEXT_SEC_ID, t0.ENT_LOC_ID FROM TRAINELEMENT t0, LOCATION t1 WHERE (( IN ((SELECT DISTINCT t2.LOC_ID, t2.LOC_GPSY, t2.LOC_GRX, t2.LOC_CODE, t2.LOC_GRY, t2.LOC_GPSX, t2.LOC_LOCAL_RADIO, t2.LOC_NAME, t2.DELETED, t2.LOC_CLASS_ID FROM VIEW t4, VIEWLOC t3, LOCATION t2 WHERE ((t4.VIEW_CODE = ?) AND ((t3.VIEWLOC_VIEW_ID = t4.VIEW_ID) AND (t2.LOC_ID = t3.VIEWLOC_LOCACTION_ID))))) AND (t0.TRAINELEMENT_TYPE = ?)) AND (t1.LOC_ID = t0.ENT_LOC_ID))
         bind => [ROMAN W-Pb, ENT]
    There sould be a “t0.ENT_LOC_ID” before the IN in the WHERE clause and the implicit join “ID FROM TRAINELEMENT t0, LOCATION t1” seems incorrect to me. At any rate the database (HSQLDB) rejects that incorrect sql statement.
    How can I circumvent that problem?
    A add the relevant mapping part of the involved classes.
    @Entity
    @DiscriminatorValue("ENT")
    public class Entry extends TrainElement implements IEntry {
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "ENT_LOC_ID", nullable = true)
         private Location location;
    @Entity
    @Table(name = "LOCATION")
    public class Location implements ILocation {
         // persistent part
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "LOC_ID")
         private Long id;
         @Column(name = "LOC_CODE", nullable = false)
         private String code;
         @Column(name = "LOC_NAME", nullable = false)
         private String name;
    @Entity
    @EntityListeners(EntityListener.class)
    @Table(name = "VIEW")
    public class View implements IView {
         // persistent
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "VIEW_ID")
         private Long id;
         @OneToMany(mappedBy = "view", cascade = CascadeType.ALL)
         private List<ViewLoc> viewLocs = new ArrayList<ViewLoc>();
    @Entity
    @Table(name = "VIEWLOC")
    @EntityListeners(EntityListener.class)
    public class ViewLoc implements IViewLoc {
         // persistent fields
         // primary key field
         @Id
         @GeneratedValue
         @Column(name = "VIEWLOC_ID")
         private Long id;
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "VIEWLOC_VIEW_ID", nullable = false)
         private View view;
         // direct Linking to the infrastrucutre location
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "VIEWLOC_LOCACTION_ID")
         private Location location;
    ….

    IN doesn't support objects, only state_field_path_expression that must have a string, numeric, or enum value.
    Try using
    “SELECT DISTINCT OBJECT(e) FROM Entry e WHERE e.location.id IN (SELECT loc.id From View v JOIN v.viewLocs vl JOIN vl.location loc where v.code = :code)”
    Best Regards,
    Chris

  • Unexpected token in mapping

    Hello,
    I'm trying to extract data from Essbase to an Oracle database. The columns in the db map one on one with the dimensions in essbase but I am getting error on one dimension only. The error is:
    -11 : 37000 : java.sql.SQLException: Unexpected token: POSITION in statement [select            C2_ACCOUNT        ACCOUNT,      C10_PERIOD        PERIOD,      C12_ENTITY        ENTITY,      C9_VERSION        VERSION,      C13_EMPLOYEE_TYPE        EMPLOYEE_TYPE,      C1_POP        POP,      C11_FUNCTIONAL_TITLE        FUNCTIONAL_TITLE,      C5_EMPLOYEE        EMPLOYEE,      C7_CURRENCY        CURRENCY,      C6_POSITION        POSITION,      C8_GRADE        GRADE,      C4_SCENARIO        SCENARIO,      C3_YEARS        YEARS from      C$_0TEST1 where           (1=1)]
    I have checked the spellings of the dimension and the column and they are fine.
    Secondly, to extract data from Essbase does the ODI agent need to run on the Essbase server and does the reportscript have to be on the server as well? I have separate machines for ODI and Essbase and I have written a ReportScript and put it in a folder on the ODI machine.
    Thanks.

    That "read-host" seems weird, that cmdlet is supposed to be used to read input from a user typing into the console. Try changing this line
    $line = $AllScopes[$i] (Read-Host" ").Split(",")
    to this
    $line = $AllScopes[$i].Split(",")
    DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com

  • Unexpected Token Error

    Hi,
    --> I am using JBoss 3.0.2
    --> have succesfully deployed my beans
    --> client to server communication is happening
    But when a method in my session bean is calling a finder method on an entity bean i get the following error
    14:23:02,781 ERROR [STDERR] Caused by: javax.ejb.EJBException: Load failed; Caus
    edByException is:
    Unexpected token: FROM in statement [SELECT name,count FROM ENTITY WHERE
    (name='david') OR (name='mandy') OR (name='bush') OR (name='clinton') OR (name=
    'arun')]
    14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
    Command.execute(JDBCLoadEntityCommand.java:176)
    14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntity
    Command.execute(JDBCLoadEntityCommand.java:62)
    14:23:02,781 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManag
    er.loadEntity(JDBCStoreManager.java:572)
    what might be the reason ?
    Thanks in advance
    Meka Toka

    The problem is that count is a reserved word. It's expecting, count(some_column_name) or count(*).
    Paul

  • PowerShell command returned an exception. Unexpected token 's' in expression or statement

    Hi All,
    I am trying to Creating a VM based on a Template in VMM through Orchestrator Runbook using below URL;
    http://blogs.catapultsystems.com/lrayl/archive/2013/07/03/orchestrator-system-center-integrations-part-3-creating-a-vm-based-on-a-template-in-vmm.aspx
    Runbook:
    But at the Create VM from Template activity runbook will failed:
    Throwing below error in while running runbook in Error Summary text:
    PowerShell command returned an exception. Unexpected token 's' in expression or statement.
    Exception: InvalidOperationException
    Target site: PSRunspaceInvoker.HandleInvokeException
    Stack trace:
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.HandleInvokeException(Exception ex, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.Invoke(RunspaceInvoke runspace, String script, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSScriptRunner.Execute(String script)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012Domain.VM.CloneFromTemplate(String vmmServer, ParameterList inputParameters)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.VM.CloneFromTemplate.DoExecute(IActivityRequest request, ILogger logger)
       at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.ActivityBase`2.Execute(IActivityRequest request, IActivityResponse response)
    Both Orchestrator & SCVMM powershell are set on Unrestricted powershell.
    Kindly suggest any solution or work around for resolution.
    Thanks Rahul$

    This may be a bit late and perhaps not even relevant but I came across this post when trying to solve an issue I had with a powershell script in Orchestrator. Maybe it will help you, or maybe it will help someone else.
    I was trying to create a connector between SCOM and our ticketing system. I wanted to export alert descriptions and in the process of testing I came across an alert description that had multiple lines and all kinds of crazy formatting. When I tried to assign
    the Published Data to a varialbe in my powershell script i would get an error "Unexpected token [a partial alert description] in expression or statement.". After looking at the actual alert description data and seeing that i was only getting some of it
    and not all of it it dawned on me that i somehow needed to escape out of all the crazy quoting, carriage returns, and special characters. to do that i assigned the Published Data to a variable in my powershell script as follows:
    $Description = @"
    {Description from "Get Alert"}
    Apparently the @" "@ is called a here-string. Somewhat interesting. Hope it helps you or someone else!

  • Unexpected Token '(' in expression or statement.

    I'm trying to retrieve DHCP server names and Leases using this script. But when I execute this section of the script of receive the following error message:
    Pwershell> C:\PowerShell\DHCPLease.ps1
    At C:\PowerShell\DHCPLease.ps1:287 char:25
    +  $line = $AllScopes[$i] (Read-Host " ").Split(",")
    +                         ~
    Unexpected token '(' in expression or statement.
        + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : UnexpectedToken
    Here is the part of the script that is failing
    #region Get all Scopes in the Server
    # Run the Command in the Show Scopes var
    $AllScopes=Invoke-Expression$ShowScopes
    # Go over all the Results, start from index 5 and finish in last index -3
    for($i=5;$i-lt$AllScopes.Length-3;$i++)
    # Split the line and get the strings
    $line=$AllScopes[$i](Read-Host"
    ").Split(",")  
    -   This is the line I receive the error
    $Scope.Address
    +=Check-Empty$line[0]
    $Scope.Mask
    +=Check-Empty$line[1]
    $Scope.State
    +=Check-Empty$line[2]
    # Line 3 and 4 represent the Name and Comment of the Scope
    # If the name is empty, try taking the comment
    If(Check-Empty$line[3]-eq"-")
    $Scope.Name
    +=Check-Empty$line[4]
    else{
    $Scope.Name
    +=Check-Empty$line[3]}

    That "read-host" seems weird, that cmdlet is supposed to be used to read input from a user typing into the console. Try changing this line
    $line = $AllScopes[$i] (Read-Host" ").Split(",")
    to this
    $line = $AllScopes[$i].Split(",")
    DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com

  • Unexpected token ''Test_Group (p)'' in expression or statement?

    Hi,
    I am trying to get a list of computers in each OU and get the count of each that are a member of the ''Test_Group (p)'' but I am getting the error "Unexpected token in expression or statement. Not sure what I am doing wrong here? I appreciate any help
    someone can give I am very new to powershell. Thank you
    import-module activedirectory
    foreach ($ou in Get-ADOrganizationalUnit -filter * -SearchScope 1){
    $computers = 0 + (get-adcomputer -filter * -searchbase $ou.distinguishedname).count
    $Test = get-adcomputer -Property * | where {$_.memberof 'Test_Group (p)'}
    $ou | add-member -membertype noteproperty -name Computers -value $computers -force
    $ou | select name,computers
    $Test | select name

    You may want to take some time to gain a level of proficiency with Powershell. Try this link for example: http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx then
    take some time to familiarize yourself with the features and capabilities of the ActiveDirectory module cmdlets. That will give you all the information you need.
    To see imported modules run:
    Get-Module
    To see available modules run:
    Get-Module -ListAvailable
    To see available cmdlets in a give module run:
    Get-Command -Module ActiveDirectory
    To get help on a specific cmdlet run:
    help Get-ADUser -Full
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

  • Syntax error near unexpected token `)'

    I get that error sometimes when i try to complile. I was trying to use my Banshee1.5.1 PKGBUILD on my desktop (it works on my laptop) and i got that error again. But i don't think it's banshee cause i remember getting that same error when i wanted to complile Gnote.
    Banshee
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    ./configure: eval: line 2650: unexpected EOF while looking for matching `''
    ./configure: eval: line 2651: syntax error: unexpected end of file
    configure: WARNING: `missing' script is too old or missing
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking how to create a ustar tar archive... gnutar
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether NLS is requested... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for intltool >= 0.35.0... 0.41.0 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for XML::Parser... ok
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for a BSD-compatible install... /bin/install -c
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for ANSI C header files... (cached) yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.16... yes
    checking for GLIB - version >= 2.0.0... yes (version 2.22.2)
    checking for GDK_X11... yes
    checking for CLUTTER... yes
    checking for GST... yes
    checking for GST_PBUTILS... yes
    checking for BNPX_GTK... yes
    checking for X... libraries , headers
    checking for XVIDMODE... yes
    checking for MONO_MODULE... yes
    checking for gmcs... /usr/bin/gmcs
    checking for mono... /usr/bin/mono
    checking for Mono 2.0 GAC for System.Data.dll... found
    checking for Mono 2.0 GAC for System.Web.dll... found
    checking for Mono 2.0 GAC for System.Web.Services.dll... found
    checking for Mono 2.0 GAC for Mono.Cairo.dll... found
    checking for Mono 2.0 GAC for Mono.Posix.dll... found
    checking for Mono 2.0 GAC for ICSharpCode.SharpZipLib.dll... found
    checking for NDESK_DBUS_GLIB... yes
    checking for NDESK_DBUS... yes
    checking for MONO_ADDINS... yes
    checking for MONO_ADDINS_SETUP... yes
    checking for MONO_ADDINS_GUI... yes
    checking for NOTIFY_SHARP... yes
    checking for BOO... yes
    checking for monodocer... /usr/bin/monodocer
    checking for mdassembler... /usr/bin/mdassembler
    checking for NUNIT... no
    checking for NUNIT... yes
    checking for TAGLIB_SHARP... yes
    checking for GTKSHARP... yes
    checking for GLIBSHARP... yes
    checking for SQLITE... yes
    checking for GCONFSHARP... yes
    checking for GNOMESHARP... yes
    checking for gconftool-2... /usr/bin/gconftool-2
    Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
    Using $(sysconfdir)/gconf/schemas as install directory for schema files
    checking for LIBMTP... yes
    checking for struct LIBMTP_track_struct.modificationdate... no
    checking for IPODSHARP... yes
    checking for KARMASHARP... no
    checking for MONO_ZEROCONF... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for catalogs to be installed... ar be@latin bg br ca cs da de dz en_CA en_GB es eu fi fr gl gu he hu it ja ko ky lt lv mk nb nl oc pa pl pt pt_BR ru sl sr sr@latin sv th uk vi zh_CN zh_HK zh_TW
    checking for sed... /bin/sed
    configure: creating ./config.status
    ./config.status: line 400: syntax error near unexpected token `)'
    ./config.status: line 400: ` *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;'
    Gnote
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    ./configure: eval: line 2411: unexpected EOF while looking for matching `''
    ./configure: eval: line 2412: syntax error: unexpected end of file
    configure: WARNING: `missing' script is too old or missing
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether ln -s works... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for dlfcn.h... yes
    checking whether we are using the GNU C++ compiler... (cached) yes
    checking whether g++ accepts -g... (cached) yes
    checking dependency style of g++... (cached) gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC -DPIC
    checking if g++ PIC flag -fPIC -DPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking if g++ supports -c -o file.o... (cached) yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking for LIBGLIBMM... yes
    checking for GTK... yes
    checking for LIBGTKMM... yes
    checking for LIBXML... yes
    checking for LIBXSLT... yes
    checking for GCONF... yes
    checking for PCRE... yes
    checking uuid/uuid.h usability... yes
    checking uuid/uuid.h presence... yes
    checking for uuid/uuid.h... yes
    checking for uuid_unparse_lower in -luuid... yes
    checking for LIBPANELAPPLETMM... yes
    checking for GTKSPELL... yes
    checking for Boost headers version >= 103400... yes
    checking for Boost's header version... 1_39
    checking boost/bind.hpp usability... yes
    checking boost/bind.hpp presence... yes
    checking for boost/bind.hpp... yes
    checking boost/cast.hpp usability... yes
    checking boost/cast.hpp presence... yes
    checking for boost/cast.hpp... yes
    checking boost/lexical_cast.hpp usability... yes
    checking boost/lexical_cast.hpp presence... yes
    checking for boost/lexical_cast.hpp... yes
    checking for the toolset name used by Boost for g++... gcc44 -gcc
    checking boost/system/error_code.hpp usability... yes
    checking boost/system/error_code.hpp presence... yes
    checking for boost/system/error_code.hpp... yes
    checking for the Boost system library... yes
    checking boost/filesystem/path.hpp usability... yes
    checking boost/filesystem/path.hpp presence... yes
    checking for boost/filesystem/path.hpp... yes
    checking for the Boost filesystem library... yes
    checking boost/format.hpp usability... yes
    checking boost/format.hpp presence... yes
    checking for boost/format.hpp... yes
    checking boost/test/unit_test.hpp usability... yes
    checking boost/test/unit_test.hpp presence... yes
    checking for boost/test/unit_test.hpp... yes
    checking for the Boost unit_test_framework library... yes
    checking tr1/memory usability... yes
    checking tr1/memory presence... yes
    checking for tr1/memory... yes
    checking whether gcc understands -Wall... yes
    checking whether gcc understands -Wextra... yes
    checking whether gcc understands -Wsign-compare... yes
    checking whether gcc understands -Wpointer-arith... yes
    checking whether gcc understands -Wchar-subscripts... yes
    checking whether gcc understands -Wwrite-strings... yes
    checking whether gcc understands -Wunused... yes
    checking whether gcc understands -Wpointer-arith... yes
    checking whether gcc understands -Wshadow... yes
    checking whether gcc understands -fshow-column... yes
    checking whether NLS is requested... yes
    checking for intltool >= 0.35.0... 0.41.0 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for perl >= 5.8.1... 5.10.1
    checking for XML::Parser... ok
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for gconftool-2... /usr/bin/gconftool-2
    Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
    Using $(sysconfdir)/gconf/schemas as install directory for schema files
    checking for sed... /bin/sed
    configure: creating ./config.status
    ./config.status: line 400: syntax error near unexpected token `)'
    ./config.status: line 400: ` *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;'
    Both get exactly the same error.

    I have tried downgrading bash and gcc, but no luck. I have also looked into some config files and stuff but i can't find anything. Maybe it's time for a reinstall.

  • Unexpected Token: Error occuring inside a stored procedure

    I get an unexpected token error when trying to compile below stored procedure. The error occurs on the exec pk_proof.pr_ProofAssets execution statement inside the stored procedure. Any reason why?
    CREATE OR REPLACE PROCEDURE MONTHLY_ASSET (ln_business_dt_num IN NUMBER DEFAULT NULL,
                                               missing_tbl_name OUT NOCOPY VARCHAR2)
    IS
       ln_business_dt_num NUMBER;
       missing_tbl_name VARCHAR2;
       no_tbl_name_found EXCEPTION;
       bad_date_value EXCEPTION;
       counts_not_matched EXCEPTION;
    BEGIN
       IF ln_business_dt_num < 0 THEN
       RAISE bad_date_value;
       ELSE
         Select MAX(business_dt_num) into ln_business_dt_num
         FROM sasor.dp_ca_proof;
       if missing_tbl_name IS NOT NULL then
          raise no_tbl_name_found;
       end if;
       exec pk_proof.pr_ProofAssets('SLH_DST_ASSET', ln_business_dt_num, 'sasor_batch');

    EXEC (short for EXECUTE) is an SQL*Plus command. Just remove it.

  • /etc/init.d/nodemgr: line 96: syntax error near unexpected token `is'

    I am trying to modify the unix script to auto start nodemanager on Oracle Linux server,however i am getting below error when ever i tried to start service nodemgr restart
    here is script:
    ============
    #!/bin/sh
    # nodemgr Oracle Weblogic NodeManager service
    # chkconfig: 345 85 15
    # description: Oracle Weblogic NodeManager service
    # The script needs to be saved as /etc/init.d/nodemgr and then issue chkconfig .add nodemgr as root
    ### BEGIN INIT INFO
    # Provides: nodemgr
    # Required-Start: $network $local_fs
    # Required-Stop:
    # Should-Start:
    # Should-Stop:
    # Default-Start: 3 4 5
    # Default-Stop: 0 1 2 6
    # Short-Description: Oracle Weblogic NodeManager service.
    # Description: Starts and stops Oracle Weblogic NodeManager.
    ### END INIT INFO
    . /etc/rc.d/init.d/functions
    export WLS_HOME=/u01/Oracle/Middleware/wlserver_10.3
    export MW_HOME=/u01/Oracle/Middleware
    export JAVA_HOME=/u01/Oracle/Middleware/jdk160_24
    export IDM_HOME=/u01/Oracle/Middleware/Oracle_IDM1
    export OAM_HOME=/u01/Oracle/Middleware/Oracle_IDM2
    export ORACLE_INSTANCE=/u01/Oracle/Middleware/Oracle_IDM1
    export IAM_HOME=/u01/Oracle/Middleware/Oracle_IDM2
    export DOMAIN_HOME=/u01/Oracle/Middleware/user_projects/domains
    DAEMON_USER="oracle"
    PROCESS_STRING="^.*/u01/Oracle/Middleware/.*weblogic.NodeManager.*"
    source $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh > /dev/null
    export NodeManagerHome="$WLS_HOME/common/nodemanager"
    NodeManagerLockFile="$NodeManagerHome/nodemanager.log.lck"
    PROGRAM="$MW_HOME/wlserver_10.3/server/bin/startNodeManager.sh"
    SERVICE_NAME=`/bin/basename $0`
    LOCKFILE="/var/lock/subsys/$SERVICE_NAME"
    RETVAL=0
    start() {
    OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
    if [ ! -z "$OLDPID" ]; then
    echo "$SERVICE_NAME is already running (pid $OLDPID) !"
    exit
    fi
    echo -n $"Starting $SERVICE_NAME: "
    /bin/su $DAEMON_USER -c "$PROGRAM &"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $LOCKFILE
    stop() {
    echo -n $"Stopping $SERVICE_NAME: "
    OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
    if [ "$OLDPID" != "" ]; then
    /bin/kill -TERM $OLDPID
    else
    /bin/echo "$SERVICE_NAME is stopped"
    fi
    echo
    /bin/rm -f $NodeManagerLockFile
    [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
    restart() {
    stop
    sleep 10
    start
    case "$1. in
    start)
    start
    stop)
    stop
    restart|force-reload|reload)
    restart
    condrestart|try-restart)
    [ -f $LOCKFILE ] && restart
    status)
    OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
    if [ "$OLDPID" != "" ]; then
    /bin/echo "$SERVICE_NAME is running (pid: $OLDPID)!"
    else
    /bin/echo "$SERVICE_NAME is stopped"
    fi
    RETVAL=$?
    echo $"Usage: $0 start"
    exit 1
    esac
    exit $RETVAL
    =================
    here is error message
    [root@oam init.d]# service nodemgr restart
    /etc/init.d/nodemgr: line 96: syntax error near unexpected token `is'
    /etc/init.d/nodemgr: line 96: `/bin/echo "$SERVICE_NAME is running ("pid: $OLDPID")"'

    It is necessary to post code between code tags, otherwise it screws up. See the FAQ.
    What sticks out right away is your wrong case statement case *"$1.* which should read *case "$1"*. You are also missing ;; to terminate your default case statement. You should also put $RETVAL between quotes and remove the /bin paths.

  • BUG?: unexpected token in connection pane for cursor declaration

    If I declare a cursor with an order clause in the declaration part of a procedure in a package I will get the unexpected token. The code compiles without errors.
    SQL Developer 15.57.
    Windows XP SP2
    Oracle 10g
    example:
    declare procedure test( param in integer ) as
    cursor cur( nVal in integer ) is
    select * from tab where col1 = nVal
    order by col2;
    begin
    NULL;
    end test;
    If I comment out the order by line and proper end the line before all is OK in connection pane.

    There are a few issues logged for these unexpected tokens. We will be reviewing this section for 1.1.
    Regards
    Sue Harper

  • EJB QL "unexpected token: ( " Exception with IN operator and AND operator

    Hey everyone,
    Hopefully someone can help me. I am just starting to write more complex queries with EJB QL and am running into an issue. When I run my query I get an "Internal Exception: line 1:87: unexpected token: (" Exception below is my query with acording to the sun references I have managed to find looks right. Here is my query:
    SELECT OBJECT(e) FROM Period e, IN (e.myScorecardItem.cyclesList) t WHERE current_date() BETWEEN e.startDate AND e.endDate AND t.id =?1
    I have removed the portion with the IN navigation and it works fine, and I have removed the conditional statement and left the IN portion and that works fine but I can not get the to work together. Here is my bean relationships: Cycles have ScorecardItems have Periods. I am trying to find all the Periods that fall within a certain cycle. Any direction or help anyone can provide would be greatly appreciated.
    Thanks,
    Justen

    It's not inherently bad - but it does depend on the optimizer getting  good estimate of the data volume.
    Did you test with 200 distinct values in your IN list, and can you see in the execution plan Oracle estimate of how many rows the subquery would generate.
    Regards
    Jonathan Lewis

  • Package body in tree view shows "unexpected token"

    I have a package which is in production for months now. This does not show any error with PL/SQL Developer nor OraEdit. SQL Developer shows "unexpected token" after trying to expand the package into the list of functions and procedures. Database is 9.2, Sql developer is 1.0.0.14.22.
    Any idea how to fix this?
    Martin

    Did you get any test material? Here is one example.
    TABLES:
      CREATE TABLE "RAPTOR"."SETTLEMENTCALENDAR"
       (     "SSRRUNNUMBER" NUMBER(*,0) NOT NULL ENABLE,
         "SETTLEMENTDATE" DATE NOT NULL ENABLE,
         "SSRRUNTYPE" VARCHAR2(2 BYTE) NOT NULL ENABLE,
         "SSRRUNDATE" DATE NOT NULL ENABLE
      CREATE TABLE "RAPTOR"."DATAFILELOG"
       (     "DATAFILEID" NUMBER(*,0) NOT NULL ENABLE,
         "FILENAME" VARCHAR2(70 BYTE) NOT NULL ENABLE,
         "FILELASTMODIFIEDDATE" DATE NOT NULL ENABLE,
         "FILETYPE" VARCHAR2(8 BYTE),
         "FILEIDENTIFIER" VARCHAR2(50 BYTE),
         "FROMPARTICIPANTID" VARCHAR2(8 BYTE),
         "FROMPARTICIPANTROLECODE" VARCHAR2(2 BYTE),
         "TOPARTICIPANTID" VARCHAR2(8 BYTE),
         "TOPARTICIPANTROLECODE" VARCHAR2(2 BYTE),
         "CREATIONTIME" DATE,
         "PERIODENDDATE" DATE,
         "FILESTATUS" VARCHAR2(50 BYTE) NOT NULL ENABLE,
         "FILESTATUSDATETIME" DATE NOT NULL ENABLE,
         "EMAILINBOXLOGID" NUMBER(*,0),
         "RESPONSEFILE" VARCHAR2(50 BYTE),
         "RESPONSEFILEGROUPID" NUMBER(*,0),
         "DATETIMERECEIVED" DATE NOT NULL ENABLE
       CREATE TABLE "RAPTOR"."ELX_MULTI_PARAMETERS"
       (     "EMP_JOB_NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE,
         "EMP_PARAM_NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE,
         "EMP_STRING_VALUE" VARCHAR2(100 BYTE),
         "EMP_DATE_VALUE" DATE,
         "EMP_NUMBER_VALUE" NUMBER
       ) ;Code
    create or replace PACKAGE "ELX_PARMS_TOOLS" AS
    procedure do_settlementcal_gap_check(cutoff_date in date default null);
    END;
    create or replace PACKAGE BODY "ELX_PARMS_TOOLS" AS
    --This procedure checks the settlementcalendar table for gaps
    procedure do_settlementcal_gap_check( cutoff_date in date default null) is
    cursor gap_cursor is
      ((select rnum
       from ( select rownum rnum
              from datafilelog )
      where rownum <= ( select max(ssrrunnumber)
                          from settlementcalendar)
    minus
      select rnum
      from ( select rownum rnum
               from datafilelog )
      where rownum <= ( select max(ssrrunnumber)
                            from settlementcalendar
                         where settlementdate <=cutoff_date))
    minus
      select ssrrunnumber from settlementcalendar)
    minus
       select emp_number_value from elx_multi_parameters
            where emp_job_name ='SETTLECAL1'
            and   emp_param_name ='GAPEXCEPTION';
    begin
    null;
    end;
    END;

  • Unexpected token: {

    Trying to check how LV 2011/Mathscript supports clusters, I tried a Matlab script written by a colleague (function definition) and could not get it to pass the parsing stage in the Mathscript node.
    After correcting a few things that are not supported yet (such as the use a "~" for a dummy variable name, or anonymous function declaration), I ended up with a bizarre message:
     unexpected token: {
    The details show:
    Line 346, Column 4: unexpected token: {
    Line 346, column 4 is the end of the script, following a "end" declaration, which ends a sub-function declaration. There is no "{" character there.
    What gives?
    Solved!
    Go to Solution.

    Hi X.,
    There are a couple more issues in your script:
    1. When using multiple functions within a single m-file we currently don't support the use of "end" at the end of a function description. For example, this would be ok:
    function a = foo(x) 
     a=x;
    function b = bar(y) 
     if y>3 
      b=y;  
    wheras this would error:
    function a = foo(x) 
     a=x;
    end
    function b = bar(y) 
     if y>3 
      b=y; 
     end
    end
    2. If possible you may wish to refrain from using global variables since it causes the MathScript Node to run in decreased performance mode. For more info look here.
    3. You are still using varargin (which is not supported) in the Likelihood_subfunction parameters. You should treat this like you treated the original function call by replacing it with the total number of inputs you wish to use. In this case the four inputs required for the subfunction call.
    4. You are using optimset to pass options to fminsearch. Currently optimset is not supported. Our default values for max iterations and max function calls are 100 and 1000 respectively. If you really need to set these values to something different we may have some ideas. Please send me a pm if that is the case. 
    5. Finally, the syntax you use for fminsearch is not correct in MathScript. Our current implementation of fminsearch only supports two outputs. Having a third output (errflag) will cause this function to give an error.
    This script has been very useful to use in providing a usecase for support that we currently lack. Thanks for sharing and let us know if we can be of more help.
    Thanks,
    K Scott

  • Unexpected token on package body

    Tree shows a "Unexpected Token" message and icon for package bodies of some packages. After some investigation we discovered that it happens only when there is a "FOR UPDATE" clause in declared cursors in any of the packages functions. Without the clause the problem disapears. It compiles and runs correctly. Is there a fix for this bug?
    Thanks

    Here is a simple test case for the development team:
    CREATE OR REPLACE PACKAGE test_token IS
    PROCEDURE test_case;
    END;
    CREATE OR REPLACE PACKAGE BODY test_token IS
    PROCEDURE test_case
    IS
    test_var VARCHAR2(1);
    BEGIN
    SELECT TRIM('Z')
    INTO test_var
    FROM dual;
    EXCEPTION
    WHEN OTHERS THEN NULL;
    END test_case;
    END;
    Using:
    SQL Developer 1.0.0.14.67
    on Microsoft Windows XP Professional Version 2002 Service Pack2
    Oracle 10g Enterprise Edition Release 10.2.0.1
    on HP/UX Itanium 11.23

Maybe you are looking for

  • Is there any way of getting back from a wrong clicked free trial to add my serial number correctly?

    Hi On purchasing a new imac I copied the apps across & on opening CS6 was requested to load serial numbers, through tiredness I added the seria; number from CS5.5 and therefore not recognised for the CS6, then when about to enter again through tiredn

  • Spreadshee​t String To Array DBL Performanc​e Improvemen​t

    While developing and profiling a batch data-analysis program, I found that the "Read From Spreadsheet File.vi" function was where the majority ofthe execution time was spent.  Digging further, I found the time was spent in the "Spreadsheet String To

  • APP Store error 100

    This is quite annoying and seems like I am not alone. Am waiting on a Support call. I upgraded to Lion through App Store and iWork '09 and PhotoShop Elements stopped working. Then I used App store to purchased Pages. I was happy as a clam that all wa

  • Scroll bar is not working since last updates

    my scroll bar on laptop mouse pad no longer works in browser since last update. It works fine in all other programs.

  • AccessControlException

    I am making a project in netbeans using JDBC(MS-access being the database). I've come across a very strange error. This happens when i try to access the database from the applet. Netbeans shows the following error # A fatal error has been detected by