Peculiar problem in oracle 10g  on AIX 5.3.0 With Check constraints

Hi Every One,
I am facing peculiar problem in oracle 10.2.0.1.0,AIX 5.3.0. I created table with check constraints like this
create table test1 (name nvarchar2(1),check (name in('Y','N')));
SQL> create table test1 (name nvarchar2(1),check (name in('Y','N')));
Table created.
SQL> insert into test1 values ('Y');
1 row created.
SQL> COMMIT;
SQL> select from test1 where name = 'Y';* Why this statement is n't working
no rows selected
SQL> select * from test1;
N
Y
ANOTHER INTERSTING ONE IS
SQL> select * from test1 where name in('Y'); Why this statement is n't working
no rows selected
SQL> select * from test1 where name in('Y','Y'); it's working
N
Y
SQL> select * from test1 where name in('','Y'); it's working
N
Y
SQL> select * from test1 where name in('7','Y'); it's working
N
Y
Like
SQL> select * from test1 where name like 'Y'; it's not working
no rows selected
I created a table without check constraints
SQL> create table test2 (name nvarchar2(1));
Table created.
SQL> insert into test2 values ('Y');
1 row created.
SQL> select * from test2;
N
Y
SQL> select * from test2 where name ='Y'; it's working
N
Y
SQL> select * from test2 where name like 'Y'; it's working
N
Y
Database Details
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET WE8MSWIN1252
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
PARAMETER VALUE
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 10.2.0.1.0
Why it's happening. Whehter check constraint is valid or not in Equallity operator and like and in .
Whereever we using single character column with check constraint,it's working with Equality operator and like and in.
IT'S WORKING FINE WITHOUT CHECK CONSTRAINTS.WE HAVE TWO AIX MACHINES WITH ORACLE10G.THE SAME PROBLEM OCCURING IN TWO MACHINES
PLEASE HELP ME .
THANK YOU,
WITH REGARDS,
N.VINODH

h
Edited by: user3266490 on Dec 3, 2008 2:30 AM

Similar Messages

  • Oracle 10g on AIX 6.1

    Dear all,
    I am installing oracle 10g on AIX 6.1. But the installer hangs.
    -bash-3.2$ ./runInstaller -ignoreSysPrereqs
    Has 'rootpre.sh' been run by root? [y/n] (n)
    y
    Starting Oracle Universal Installer...
    No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
    Ignoring required pre-requisite failures. Continuing...
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-01-14_09-38-12AM. Please wait ...
    please help

    Might be a little late for you but maybe for others. If the installer hangs on your exact point you don't have X11 redirection enabled.
    I wrote some interesting articles about it:
    Installation and configuration ssl and ssh on aix 6.1:
    http://www.warmetal.nl/aix61#additional_software
    Installation and configuration for your Windows machine:
    http://www.warmetal.nl/cygwin
    Additional redirection configuration when you use su:
    http://www.warmetal.nl/aixpostinstall#ssh_x11_forwarding_and_su
    This should solve your problems.
    Regards
    Sjoerd

  • Error while installing oracle 10g on AIX

    I am receiving the following error while installing oracle 10g on AIX..
    error in invoking target 'relink' of makefile 'u01/app/oracle/product/10.2.0/orcl/precomp/lib/ins_precomp.mk'..
    i am installing enterprise edition. pl help

    Hi;
    What is AIX version?
    Please see:
    Installing 10g On Aix 5.3:'Error In Invoking Target 'Relink' Of Makefile ...' [ID 309668.1]
    AIX: On Silent Install, Getting Several 'Error In Invoking Target' Messages [ID 351380.1]
    "Error invoking target ... of makefile ... " Errors While Installing 8.1.6 [ID 113781.1]
    Please also check below and be sure you have all prereq. on your server:
    Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) [ID 169706.1]
    Regard
    Helios

  • Problem in oracle 10g release 2

    I faced strange problem while selecting data from join of tables (in oracle 10g). While selecting, when the order of fields in "group by" clause is changed, the resulting summary of values is changed too. For eg,
    query1 = SELECT F1, F2, F3, SUM(F4)
    FROM TBL1
    GROUP BY F1, F2, F3, F4
    query2 = SELECT F1, F2, F3, SUM(F4)
    FROM TBL1
    GROUP BY F2, F4, F1, F3
    The results SUM(F4) given by query1 and query 2 do not match. While testing these querries in differnt environments, we found such problem in ORACLE 10g RELEASE 2 only and not in ORACLE 10g RELEASE 1. I need to execute this query in oracle 10g. Can anybody help me finding the exact problem?

    The results SUM(F4) given by query1 and query 2 do not matchSince the group by clause is not same, the result of sum can be different.
    Can you provide us some dataset ?
    Nicolas.

  • I'm debutante in oracle 10g how to create a database with picture?

    I'm debutante in oracle 10g how to create a database with picture? help please

    d7401ec1-d4d6-4e54-9eb4-2181ac367d0c wrote:
    I'm debutante in oracle 10g how to create a database with picture? help please
    Oracle 10g is obsolete.  Oracle 11g is already at terminal release.
    Have you installed the Oracle rdbms software?
    Installing Oracle and Building the Database
    If you are going to be a professional DBA, you need to learn to
    1) read the documentation
    2) wean yourself from dependence on pictures and GUIs.
    3) read the documentation
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career.  To that end, you should drop everything else you are doing and do the following:
    Go to  docs.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    BOOKMARK THAT LOCATION
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what kind of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what kind of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth.  They are reference manuals.  Just get familiar with what is there to be referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - *Read a chapter a day from the Concepts Manual*.
    - Take a look in your alert log.  One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - *When you have finished reading the Concepts Manual, do it again*.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Open cursors problem- j2ee + oracle 10g

    Hi,
    I am using EJB on sunOne application server 8.1., Oracle 10g DB.
    EJB container connects to Oracle DB through a set of connection pools.
    BMP for all entity beans.
    I have about 160 PL/SQL functions that make up the business logic of the online application. everytime the application runs, I get an increasing number of open cursors, including some of the ones that are explicitly closed within PL/SQL (inspection with sys.v_$open_cursor).
    I made sure all CallableStatements, PreparedStatements, RecordSets within the beans are closed and set to NULL. All PL/SQL functions use explicit cursors, so every select statement is managed within a cursor which is explicitly closed when the function finishes with it.
    From v$open_cursor, I identified the sessions with the cursors still open, and issued (ALTER SYSTEM KILL SESSION �sid, #serial�) for each of the sessions (this is done via a PL/SQL function for all inactive sessions).
    These sessions have state INACTIVE, and wait_class IDLE. This has Killed all sessions, but I was not able to use the application anymore. I suspect by killing those sessions we have also caused the connections between EJB container and the Oracle DB. The only way to use the application now is to stop and restart the sunONE domain � this is very inconvenient.
    Has anyone encountered a similar problem? any suggestions to reduce or eliminate the open cursors number? Please help.
    Thank you all

    Maybe you can try to have a smaller steady-pool-size and idle-timeout-in-millis for your connection pools.
    Also, if that's at all possible, have smaller number of connection pools being shared by more apps.
    Just my 2c.
    thanks.

  • Problems: install oracle 10g 32 bits on RH 5.8 x64

    Hello,
    Someone has given me an oracle 10g 32 bits to install on a Redhat 5.8 64 bits server (no other server available).
    I have a lot of errors during the installation process
    exemple:
    INFO: /usr/bin/ld: skipping incompatible /oracle/client/10x_32/lib/libxml10.a when searching for -lxml10
    /usr/bin/ld: cannot find -lxml10
    collect2: ld returned 1 exit status
    I installed libxml10 64 and 32 bits on the system !
    I would like to know if this configuration is POSSIBLE ???!
    If yes, what is the solution / process to fix these compli. problems :-|
    Thanks for your help !

    962147 wrote:
    yes i read the installprocess and pre requisits:
    But first "**is it possible to install oracle 10g 32 bits on redhat 64 bits ???* "
    yes or no ? :-(
    I've never seen any 32-bit software that DIDN'T run on a 64 bit OS, as long as the necessary libraries are installed.
    I used this process: is it the good one ?
    http://www.oracle-base.com/articles/10g/oracle-db-10gr2-installation-on-rhel-5.php
    Tim does a very nice job with his stuff on oracle-base, but that is NOT the official documentation. Why not use ORACLE'S own installation guide? Have you seen http://docs.oracle.com/cd/B19306_01/install.102/b15667/toc.htm
    And why are you installing a a version of Oracle that is out of support?
    And as long as you have a 64-bit OS, why would you want to run a 32-bit version of Oracle?
    Edited by: 962147 on 29 sept. 2012 13:06Edited by: EdStevens on Sep 29, 2012 9:22 PM

  • Form login problem in Oracle 10g AS, even form does display

    Dear All
    We are facing one problem, when we access form with oracle 10g AS, the form is displayed, but when we enter username and password, it doesnt go to the other screen, it remains hang there and doesnt do any thing, neither give any error.
    we would appreciate the help.
    thanks in advance

    Sounds like you cannot connect to the database....
    Is there a firewall between the app-server and the database? If yes, could you check with your firewall people that all traffice from db-server is allowed to app-server (from app-server to db-server just 1521, or another port that you used for the listener, is enough)
    If not all traffic is allowed, then check the USE_SHARED_SOCKET environment variable (this is the windows name, there is a setting like this for unix too, but I can't recall the exact name by heart. It might be different)

  • Password problem in oracle 10g after upgrading from oracle 9i

    Hi to all,
    i'm migrating oracle 9i to oracle 10g. in oracle 9i username/password are same character(eg kareem/kareem)
    after upgrading to oracle 10g will it create any problem. Because in oracle 10g the condition is when creating user is username and password should not contain same character (kareem/kareem not allowed).
    Thanks in advance

    in oracle 10g document, they have mention below condition to create user. See the second condition.
    • Passwords must be between 4 and 30 characters long.
    • Passwords cannot be the same as the user name.
    • Passwords must be from the database character set and can include the underscore (_), dollar ($), and pound sign (#) characters.
    • Passwords cannot be Oracle reserved words.
    • Don't start the password with a numeral.
    • Don's use change_on_install or manager as passwords, since they are used by Oracle.
    As i'm going to upgrade oracle 9i to 10g. if it give problem because username and password are same then i have to request my development team to change the password in their application.Can you please verify and tell me.
    Edited by: user7071421 on Sep 25, 2008 4:33 AM

  • Step to export and import oracle 10g on AIX,LINUX

    Hi ,
    Plase any one can give nme the steps to be followed to export and import oracle 10g database from AIX to AIX and LINUX also.
    Waiting for your response.
    Thanks..

    You dont have to follow any special steps, Export and Import are same on all OS's.

  • Problem in oracle 10g(client) to server is oracle 8i

    i want to coneect oracle 10g is client to oracle 8i is server. so i am getting problem.
    how to connect oracle 10g (client) to oracle 8i server.please give me steps.

    so i am getting problem
    Apart from the fact it doesn't work - which error message do you recieve??
    Dim

  • Patch problems in Oracle 10g

    HI All,
    Recently a security patch was applied in our oracle 10g database. After that a strange problem has occurred, where in many correct data is wrongly rejected after validations. if the data are processed again then some data are correctly passed through the validations. These process as to be repeated to properly pass all the valid data otherwise they are wrongly rejected. the values are passed through arrays in these validations. Is there any problems with arrays in oracle 10g

    Your explanations are not clear at all, at least for me.
    What data are you talking about ?
    What validations' processes ?
    What 10g ?
    What patch ?
    What OS ?
    Could you try to rephrase your entry ?
    Nicolas.

  • View problem in Oracle 10g migration

    Hi,
    I am involved in Oracle migration from 9 to 10g.
    I have a problem with a view that works in Oracle 9 but in Oracle 10g raise the following error:
    ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY etc.
    In the view source there is a call to another view and in the last one another call to a view with a group by keyword because I need the max() column value in a table, so I need the group by keyword!!!
    Any suggestion/work around to get the max() value without group by???
    thanks

    Hi,
    Yes, MAX (and almost all the other aggregate functions) have analytic counterparts.
    For example,
    MAX (column_1) OVER (PARTITION BY column_2)calculates the same MAX that you would get with
    MAX (column_1)
    GROUP BY  column_2But without grouping.
    (I suppose you'll still want to get only one row per group in your view, but there are ways to do that without using GROUP BY.)
    If you need help, post:
    some sample data (from the base tables),
    the output you want from that data (that is, the contents of the view), and
    your existing view definition.

  • Problem Installation Oracle 10g   Centos 5

    Hello everyone!
    I tell them my problem:
    last week I'm trying to install 10g oragle realese 2 on linux. At first attempt to install on Ubuntu 11.10 but came to the installation and always had binding problems, I always look for a missing library every forum and never knew what it was. In previous versions of Ubuntu I never had problem. Another thing I do simulate linux on virtualbox.
    To all this, I decided to throw out Ubuntu and I read that the distribution Centos 5 was a clone of Red Hat distribution, so, install linux all over again.
    Install linux, I saw all the documentation of oracle 10g, I saw the notes on the installation, I did all the prerequisites, download the libraries that read the notes. and install it when I get this
    oracle@localhost database]$ ./runInstaller -ignoreSysPrereqs
    Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-03-22_12-00-42AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
    java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-03-22_12-00-42AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
    at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
    at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
    at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
    at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
    at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
    Exception in thread "main" java.lang.NoClassDefFoundError
    at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
    at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
    at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
    at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151)
    at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
    at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
    If anyone could help me, I appreciate it.
    Sorry for my English.
    regards

    user9930565 wrote:
    Hello everyone!
    removed long whine
    >
    oracle@localhost database]$ ./runInstaller -ignoreSysPrereqs
    Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-03-22_12-00-42AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
    java.lang.UnsatisfiedLinkError: /tmp/OraInstall2012-03-22_12-00-42AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directoryit appears to be a problem involving X-Windows
    does the xclock utility work for you?
    OUI will fail when xclock fails to run OK

  • Installing Oracle 10g on AIX

    OS: AIX 5.2
    DB: 10g release Two
    Can any one share with me his experience to install Oracle Database on AIX?
    ** I will be thankful if you recommend any installation docs or url available for that.
    DN

    http://download-west.oracle.com/docs/html/B10811_01/toc.htm

Maybe you are looking for

  • Displaying Sender's name.

    Dear All, I'm Using AT commands to send SMS using a GSM Modem. Now I want to set the "Sender's Name" to be displayed to the receiver instead of displaying the telephone number. Can this be done by passing some parameters in the AT commands? Because i

  • How to display JPG Icons on push buttons

    Hi there, I have come to know that some changes are required in registry.dat file to get jpg images displayed on a push button. Please let me know about the changes required in detail. Thanks

  • X-Fi Xtreme Audio Line-In no

    Hello there!I bought recently an X-Fi Xtreme Audio card and the purpose is to record my electric guitar.With my old Sound Blaster card I used to plug the guitar into an amp and from the amp go to the line-in. It worked OK, but the latency was quite b

  • Nokia Musik Desktop Win 8?

    I have two major issues with Nokia Music: 1. How can I set the path where Nokia is looking for music? It is all on a NAS so MyMusic is empty. 2. How can I log into my Nokia account which I use on my WinPhone. I think syncing is the point of using Nok

  • Conversion of QUICKTIME to flv

    Hi, I'm building an application where a quicktime file will be uploaded to the server.On the server i need to convert it into flv which i'll be using for streaming.Can someone please guide me about how to convert a quicktime file to flv in java? Than