While compiling package '±' change to '?'

Hi,
I try to compile a package with special character set '±' inside the package. The package is taken in windows platform. While I try to compile this package in Linux environment; the character '±' change to '?'.
Pls help how to resolve the problem.
Subir

Try setting NLS_LANG environment variable :
$ sqlplus test/test
SQL*Plus: Release 10.2.0.3.0 - Production on Thu Mar 27 09:43:14 2008
Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
TEST@db102 > select '±' from dual;
TEST@db102 > exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
$ export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15
$ sqlplus test/test
SQL*Plus: Release 10.2.0.3.0 - Production on Thu Mar 27 09:43:26 2008
Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
TEST@db102 > select '±' from dual;
±
TEST@db102 >

Similar Messages

  • [SOLVED] Strange error while compiling packages via AUR

    I've been facing this error while compiling packages via AUR. I'm also posting the output of my /etc/makepkg.conf
    Error
    ==> Starting build()...
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether cc supports -O2... yes
    checking for g++... g++
    checking whether the C++ compiler works... yes
    checking for C++ compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    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 for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for GSTREAMER... yes
    checking for GSTREAMER_GTK... yes
    checking for XOpenDisplay in -lX11... yes
    checking for ncursesw5-config... /usr/bin/ncursesw5-config
    checking for initscr in -lncurses... yes
    checking whether gcc supports -Wall... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating docs/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    fatal: Not a git repository (or any of the parent directories): .git
    CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /tmp/yaourt-tmp-hellknight/aur-gst123/src/gst123-0.2.0/build-aux/missing --run aclocal-1.11 -Wno-portability
    sh: autom4te: command not found
    aclocal-1.11: autom4te failed with exit status: 127
    make: *** [aclocal.m4] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build gst123.
    ==> Restart building gst123 ? [y/N]
    ==> -------------------------------
    ==>
    /etc/makepkg.conf
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/curl
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Exclusive: will only run on x86_64
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CFLAGS="-march=amdfam10 -mtune=generic -O2 -pipe"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j8"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    BUILDENV=(fakeroot !distcc color !ccache)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries in STRIP_DIRS
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    OPTIONS=(strip docs libtool emptydirs zipman purge)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Directories to be searched for the strip option (if strip is specified)
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    Last edited by tarun.hellknight (2011-04-12 15:45:26)

    That's strange... it wasn't installed.. although I had never,ever faced a problem while compiling packages via AUR.. maybe, I should be careful when uninstalling orphans.. thanks for the help..

  • Error while compiling package

    Hi,
    While compiling an invalid package i get this error, But the coding in the package has no error.
    ORA-00600: internal error code, arguments: [psdtyfnd_with_suffix],[],[],[],[],[],[],[]

    I have similar problem.
    I droped all object from scheme but one package won't drop.
    Now when I try drop this package or user,
    I get ORA-00600: internal error code, arguments: [psdtyfnd_with_suffix], [], [], [], [], [], [], []
    There is no possibility to drop, recompile, replace this package. Everithing ends with error. There is no other object in scheme.
    Even package has no body. So I try to create it. Package body was created with warnings but I still can't see it. When I create it again then I get ORA-00955: name is already used by an existing object.
    I use Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 on Linux
    All experiments I do as SYSDBA.

  • Errors not showing up while compiling package spec

    Version :11g
    While compiling a package specification, i get the message
    Warning: Package created with compilation errors.But when i type
    SQL> show errors
    No errors.Why can't i see the errors?

    Weirdly enough, using double quotes around the proc/package name can cause this issue
    SQL> select * from v$version where rownum=1;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    SQL> create procedure "proc1" as
      2     begin
      3       null -[
      4     end;
      5    
      6  /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    No errors.
    SQL> create procedure proc1 as
      2     begin
      3       null -[
      4     end;
      5    
      6  /
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE PROC1:
    LINE/COL ERROR
    3/11     PLS-00103: Encountered the symbol "-" when expecting one of the
             following:
    3/11     PLS-00103: Encountered the symbol "-" when expecting one of the
             following:
             ;

  • PLS-00801: internal error [1401] while compiling Package body

    I am getting the error PLS-00801: internal error [1401] while compiling the package.
    recently upgraded to version 11.1.0.7 database .
    Any pointer to this ..

    935026 wrote:
    I am also getting the same error while compiling a procedure which use a remote object over db_link.
    Let me know if this needs to be run on source db or destination db
    1. RUN as SYS
    $ORACLE_HOME/rdbms/admin/utlirp.sql
    $ORACLE_HOME/rdbms/admin/utlrp.sql
    RegardsYES
    post results from SQL below from both DBs
    SELECT * FROM V$VERSION;

  • ORA-00900 while compiling package in 11gR1(11.1.0.7)

    Hello Folks,
    In our apps(Ebs) instance we are recently encountering an issue,we have some packages(seeded ones) which are invalid one of them I am mentioning below:
    SQL> select object_name,object_type,status from dba_objects where object_name='MSC_AATP_PVT';
    OBJECT_NAME
    OBJECT_TYPE STATUS
    MSC_AATP_PVT
    PACKAGE BODY INVALID
    MSC_AATP_PVT
    PACKAGE VALID
    Now when I am trying to compile this package I get the following message:
    SQL> alter package MSC_AATP_PVT compile body
    2 /
    alter package MSC_AATP_PVT compile body
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-00900: invalid SQL statement
    ORA-00900: invalid SQL statement
    Even If I try to compile the body which is been shown as Valid I get the same:
    SQL> alter package MSC_AATP_PVT compile;
    alter package MSC_AATP_PVT compile
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-00900: invalid SQL statement
    ORA-00900: invalid SQL statement
    This can't be an Apps issue as we have the same version of package running(Valid) in our other instances which is on same configuration as this one .
    Is this a Database Bug on 11g and anybody around here is aware of any workaround which can helps us get out of this issue.
    Thanks

    It means package body MSC_AATP_PVT has an invalid sql statement. Get package body source code and compile it. Check line number giving you the error.
    SY.

  • Error while compiling packages

    Hi All,
    i have been asked to execute some packages. so i took the backup of the existing package by using dbms_metadata and spool.
    Now i have been asked to revert it again back to the original.
    When i am executing the old backup one again i am getting error. It was valid before. I know the error is due to not proper fromatting, as in vi editor when i am seeing it its coming like this may be due to improper pagesize and linesize setting while spooling
      CREATE OR REPLACE PACKAGE "STGPUB1"."BP_RELATED_CONTENT_PKG" AS
    * Package Name    : BP_RELATED_CONTENT_PKG
    * This package is called to get all the information about all related content
    * New Procedure "GET_TEASER_IMG_TXT_PRC" is created for BPR2. Date: 15-Mar-04,
    */could you plz help me how to get rid of this...by using vi or notepad or wordpad or by any other process.
    Edited by: user8850066 on Jun 28, 2010 1:03 AM

    As i told you no dependencies failed the error is due to improper formatting as it was valid earlier.
    below is the error
    TEXT
    PL/SQL: ORA-00923: FROM keyword not found where expected
    PLS-00103: Encountered the symbol "AS" when expecting one of the following:
       , from
    PLS-00103: Encountered the symbol "M" when expecting one of the following:
       . ( ) , * @ % & | = - + < / > at in is mod remainder not
       range rem => .. <an exponent (**)> <> or != or ~= >= <= <>
       and or like LIKE2_ LIKE4_ LIKEC_ between || multiset member
       SUBMULTISET_
    TEXT
    The symbol "." was substituted for "M" to continue.
    PLS-00103: Encountered the symbol "NULL" when expecting one of the following:
       , * & - + / at mod remainder rem <an identifier>
       <a double-quoted delimited-identifier> <an exponent (**)> as
       from || multiset
    The symbol "," was substituted for "NULL" to continue.
    PLS-00103: Encountered the symbol "NULL" when expecting one of the following:
    TEXT
       . ( , * @ % & - + / at mod remainder rem <an identifier>
       <a double-quoted delimited-identifier> <an exponent (**)> as
       from || multiset
    The symbol "," was substituted for "NULL" to continue.
    PL/SQL: SQL Statement ignored
    6 rows selected.

  • Got Error While Compiling Packages with TOAD (URGENT)

    Dear Experts,
    Please help me to resolve this erroe this is very criticla.
    ORA-20000: You have insufficient privileges for an objects in this schema
    ORA-06512: at "SYS.DBMS.UTILITY" LINE 422
    ORA-06512: Line 1

    You should be connected to the user that owns the packages, or SYS.

  • Help! ORA-03113 while compiling certain packages!

    Hello everyone
    Recently we migrated our PLSQL code from Oracle 8.1.7.0 to 9.2.0.4.
    While compiling our packages in 9i, we are getting the ORA-03113: end-of-file on communication channel error.
    This happens only when we compile two particular packages.
    And then when we connect again immediately, and recompile the same package, it gets compiled.
    This is only happening for two packages, frequently. All other packages are not giving this error.
    Why could this be happening? Any pointers to this would really help.
    Thanks
    Bob

    ORA-3113 often throws a .TRC file in the USER_DUMP_DEST directory. That might give you a clue.
    Cheers, APC

  • Error when Compiling package header and body - how change pkb file associat

    Hi everyone,
    it has already been noticed elsewhere (in the thread "Compiling package header and body" of Jan 12, 2010) that the compilation of package scripts sometimes fails (apparently because of a sqldeveloper bug) when the script contains the terminating slash /.
    Is this bug still open?
    Next question: In the above mentioned thread it is recommended as workaround to change the corresponding file type association from pl/sql to sql. I would like to do that; I know the place in the preferences dialog, but most of the associations there seem to be hard coded and cannot be changed.
    I would appreciate any ideas!
    Thanks in advance,
    user8632123.

    For the workaround: you'd have to change the file's extension, not the association (to e.g. .sql).
    Have fun,
    K.

  • Compilation probelm  while using package.

    Hi Friends,
    I have one package Alert.java which stored and compiled class file is kept in MyPack directory.
    I am in Projec directory . The MyPack directory is subdirectory of Projec directory.
    My main java program has import statement like this
    import MyPack.*;
    While compiling the main program, it thows error as follows in Windows XP.
    C:\project>javac -d bin -sourcepath src src\sagent_reg.java
    src\sagent_reg.java:29: cannot find symbol
    symbol : constructor Alert(java.lang.String,sagent_reg)
    location: class MyPack.Alert
    alert = new Alert("Unable to Connect Database",this);
    ^
    src\sagent_reg.java:40: cannot find symbol
    symbol : constructor Alert(java.lang.String,sagent_reg)
    location: class MyPack.Alert
    alert = new Alert("Database Error....!!"+e.toString(),this);
    ^
    Note: src\sagent_reg.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    2 errors
    Can anybody please help in this regard.
    I tried many mothods to compile.
    javac -d , javac -sourepath etc. Still this error comes.

    I tried by compiling *.java option. The above mentioned eror is again displayed.
    My directory structure is
    C;\project
    c:\project\src (source java files)
    c:\project\bin (all class files)
    c:\project\bin\MyPack (class files of package)
    my source file is c:\project\src\sagent-reg.java
    my_package files are at c:\project\src\MyPack\Alert.java
    my_package files are at c:\project\src\MyPack\db_connect.java
    I am now in the directory c:\project.
    I compiled the package files as
    c:\project:> javac -d bin -sourcepath src src\MyPack\*.java
    It has copiled the two packages successfully and class files are generated in
    C:\projec\bin\MyPack\Alert.class
    C:\project\bin\MyPack\db_connect.class
    Now I tried to compile the main program as like this
    c:\project> javac -d bin -sourcepath src src\sagent_reg.java
    I get the same errorsC:\project>javac -d bin -sourcepath src src\sagent_reg.java
    src\sagent_reg.java:29: cannot find symbol
    symbol : constructor Alert(java.lang.String,sagent_reg)
    location: class MyPack.Alert
    alert = new Alert("Unable to Connect Database",this);
    ^
    src\sagent_reg.java:40: cannot find symbol
    symbol : constructor Alert(java.lang.String,sagent_reg)
    location: class MyPack.Alert
    alert = new Alert("Database Error....!!"+e.toString(),this);
    ^
    Note: src\sagent_reg.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    2 errors
    my class path defined in System environment variable is
    C:\>set classpath
    CLASSPATH=.;c:\Program files\QuickTime\QTJava.zip;d:\oracle\ora92\jdbc\lib\class
    es12.zip;d:\oracle\ora92\jdbc\lib\classes12.jar;d:\oracle\ora92\jdbc\lib\classes
    111.zip;d:\oracle\ora92\jdbc\lib\classes111.jar;d:\oracle\ora92\jdbc\lib\ojdbc14
    .jar;;.;c:\project;c:\Program files\QuickTime\QTJava.zip;d:\oracle\ora92\jdbc\li
    b\classes12.zip;d:\oracle\ora92\jdbc\lib\classes12.jar;d:\oracle\ora92\jdbc\lib\
    classes111.zip;d:\oracle\ora92\jdbc\lib\classes111.jar;d:\oracle\ora92\jdbc\lib\
    ojdbc14.jar;
    Kindly tell me where I have gone wrong. Should I include calsspath while compiling.

  • How does one escape special characters while compile the package.

    Hi
    The below is my function, while compiling the function in SQL plus it’s asking the substitute values, still I want to & symbol this column 'S&P Long Term Rating'
    now my question is how to avoid while compiling substitute values
    FUNCTION get_attribute_list RETURN t_ref_cursor AS
    lv_array varchar2_table_type := varchar2_table_type('Emerging Market Flag'
    ,'Region Code'
    ,'Region Name'
    ,'Moody''s Rating'
    ,'S&P Long Term Rating'
    ,'Credit Rating'
    ,'Region ISO'
    ,'Loan Country Code'
    ,'Loan Country Name'
    ,'What If Emerging Market Flag');
    lv_ref t_ref_cursor;
    lv_step_name a_run_log.step_name%TYPE;

    Frank Kulash wrote:
    SET DEFINE OFF is the best solution, as long as you don't need substritution variables elsewhere in the function.Agreed, however, just to toss out an alternative I use alot:
    anytime I encounter a "special" or "odd" character (ie &, CR, LF, TAB, whatever ...)
    I usually resort to stuffing it into a constant variable :)
    Of course, the OP's code might beg why the hardcoding in the proc? If the values being passed in via parameters, none of this is an issue. :)
    (in other words - if the OP is encountering this "issue" with a simple test - it might be worth mentioning - it might not be an issue with the "production" code - assuming things are being passed in via parameters)
    set serverout on
    declare
       lc_Amp   VARCHAR2(1) := CHR(38);   -- Ampersand
       lv_var   VARCHAR2(100);
    begin
       lv_var := 'S' || lc_Amp || 'P Long Term Rating';
       dbms_output.put_line ( lv_var );
    end;
    /

  • Can not compile package

    Hi,
    I have package and it is invalid. When I try to compile it starts to compile but not stop. I think it is locked or something else. I renamed it and compiled and it worked. Functions in package runned also.
    But I want the orginal package to run.
    Does anyone has idea about this problem?
    Thanks in advance.

    If you have killed all the session using this package, it may take sometime to rollback the transactions. Mean while also make changes in the package, so that it commits its transaction at the end of logical transaction end otherwise you will face this issue again. After sometime you can compile the package.
    Other option may be to restart the database in restricted mode. Make your changes, compile the package and then put the database in normal mode.
    Regards
    Edited by: skvaish1 on Apr 9, 2010 10:27 AM

  • Getting a bad bind variable error while compiling a custom form in R12

    Hi,
    I am getting a bad bind variable error while compiling a custom form.
    I tried setting the forms_path variable and I am still getting the error. Can anyone please suggest what can be done?
    DECLARE
    BEGIN
    IF :parameter.p_line_ship_to = 'T'
    THEN
    IF :SYSTEM.cursor_item = 'LINE.SHIP_TO'
    THEN
    :parameter.lov_num_param1 := :line.ship_to_customer_id;
    oe_lines.ship_to ('WHEN-VALIDATE-ITEM');
    :parameter.lov_num_param1 := :line.ship_to_customer_id;
    END IF;
    :parameter.p_line_ship_to := 'F';
    END IF;
    END;
    I am getting this error:
    Bad bind variable 'parameter.p_line_ship_to'

    The Parameter is not defined in the form.. But, this form is already been compiled and deployed.. I have to make some changes to the form and tried to compile it, when i am getting this error. Is it possible that the parameter would be defined in some other form or can this error be due to some other reasons?
    Thanks in Advance.

  • Syntax error while compiling

    Hi Gurus,
    I have started with VC and while compiling a model, I get a syntax error in Fiscalyear (variable in the query).
    the message is "The expression in field 'FiscalYear' contains an error: Syntax error".
    "Stopped due to errors"
    Have no clues as the other variable (Cost center) is working fine.
    We are on NW7.0 SP13
    Tks
    KS

    Hi
    Right click on the joining line after that form. Go to the field mapping & go to the field for the 'Fiscal Year'
    Do following changes 
    If by default you are getting there '@Fiscal year' then make it '@Fiscal year_Key' means whatever is there, just add "_key" after that. Then instead of compiling & deploying, Directly Deploy the model & then check if you are getting any error.
    Regards
    Sandeep

Maybe you are looking for