error procedure

Posted on 2012-09-16
Last Modified: 2012-10-01
SQL> EXEC sysman.setEMUserContext(”,5);    
BEGIN sysman.setEMUserContext(”,5); END;

ERROR at line 1:
ORA-06550: line 1, column 31:
PLS-00103: Encountered the symbol "?" when expecting one of the following:
( ) - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable>
table continue avg count current exists max min prior sql
stddev sum variance execute multiset the both leading
trailing forall merge year month day hour minute second
timezone_hour timezone_minute timezone_region timezone_abbr
time timestamp interval date
<a string literal with character set specification>

Question by:tomvv
    LVL 22

    Expert Comment

    There is mistake there:
    EXEC sysman.setEMUserContext(,5);

    Try changing ” with ''
    EXEC sysman.setEMUserContext('',5);
    LVL 37

    Accepted Solution

    The procedure setEMUserContext is expecting 2 parameters, have a look at the procedure what the parameters are. If you specify 2 like you are doing and the first one is an empty string then 2 single quotes specify an empty string as Henka is mentioning ('').

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
    From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now