Oracle preformance

Hi,
I have problem with perfomance of my program
that import some data from binary file to
oracle.
When a set small db_block_buffers cca 40 (db_block_size = 16384) imprted time plus aroud operation is 5 min (file have about 14MB = cca 100000 rows) it is OK.
So, when I change db_block_buffers to the 100, 600 and other greater then 70 process, time rapidly increases to the 15 min. It is terrible for me.
So, I need for other proces bigger db_block_buffer.
RAM 2GB
shared memory 1GB
linux 7.1
SGA = 512 MB
datafile on raw disks on RAID5
What can I do ?
thanks
Martin

Maybe Oracle and Linux make buffering
You try set chattr na oracle files and lock
SGA (LOCK_SGA in init.ora don't work locking,
I make litle program in C for locking shared memory)
null

Similar Messages

  • Preformance problem - Oracle does not choose the Materialized view

    Hi,
    Version 10204
    I have the following Materialized view :
    CREATE MATERIALIZED VIEW CRM.MV2_TUDWH_CRM_1201
    TABLESPACE DW_LARGE
    NOCACHE
    NOLOGGING
    COMPRESS
    PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
    BUILD IMMEDIATE
    REFRESH COMPLETE ON DEMAND
    WITH PRIMARY KEY
    ENABLE QUERY REWRITE        <<<<<<<======
    AS
    SELECT DISTINCT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
      FROM (   CRM.CI_CUST_INFO
            LEFT OUTER JOIN
               CRM.CM_CASE_DIM
            ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST));When running the following statment , the MV is used as you can see from 10053 trace file:
    Current SQL statement for this session:                                                                                            
    EXPLAIN PLAN FOR                                                                                                                   
    SELECT DISTINCT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM                                                                                  
      FROM (   CRM.CI_CUST_INFO                                                                                                        
            LEFT OUTER JOIN                                                                                                            
               CRM.CM_CASE_DIM                                                                                                         
            ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST))                                                                  
    ============                                                                                                                       
    Plan Table                                                                                                                         
    ============                                                                                                                       
    ----------------------------------------------------------------+-----------------------------------+-------------------------+    
    | Id  | Operation                           | Name              | Rows  | Bytes | Cost  | Time      |  TQ  |IN-OUT|PQ Distrib |    
    ----------------------------------------------------------------+-----------------------------------+-------------------------+    
    | 0   | SELECT STATEMENT                    |                   |       |       |    64 |           |      |      |           |    
    | 1   |  PX COORDINATOR                     |                   |       |       |       |           |      |      |           |    
    | 2   |   PX SEND QC (RANDOM)               | :TQ10001          | 4694K |   28M |    64 |  00:00:01 |:Q1001| P->S |QC (RANDOM)|    
    | 3   |    HASH UNIQUE                      |                   | 4694K |   28M |    64 |  00:00:01 |:Q1001| PCWP |           |    
    | 4   |     PX RECEIVE                      |                   | 4694K |   28M |    48 |  00:00:01 |:Q1001| PCWP |           |    
    | 5   |      PX SEND HASH                   | :TQ10000          | 4694K |   28M |    48 |  00:00:01 |:Q1000| P->P |HASH       |    
    | 6   |       PX BLOCK ITERATOR             |                   | 4694K |   28M |    48 |  00:00:01 |:Q1000| PCWC |           |    
    | 7   |        MAT_VIEW REWRITE ACCESS FULL | MV2_TUDWH_CRM_1201| 4694K |   28M |    48 |  00:00:01 |:Q1000| PCWP |           |    
    ----------------------------------------------------------------+-----------------------------------+-------------------------+    
    Predicate Information:                                                                                                             
    7 - access(:Z>=:Z AND :Z<=:Z)                                                                                                      
    Content of other_xml column                                                                                                        
    ===========================                                                                                                        
      db_version     : 10.2.0.4                                                                                                        
      parse_schema   : SYS                                                                                                             
      plan_hash      : 4066877073                                                                                                      
      Outline Data:                                                                                                                    
      /*+                                                                                                                              
        BEGIN_OUTLINE_DATA                                                                                                             
          IGNORE_OPTIM_EMBEDDED_HINTS                                                                                                  
          OPTIMIZER_FEATURES_ENABLE('10.2.0.4')                                                                                        
          OPT_PARAM('optimizer_dynamic_sampling' 3)                                                                                    
          OPT_PARAM('star_transformation_enabled' 'true')                                                                              
          ALL_ROWS                                                                                                                     
          OUTLINE_LEAF(@"SEL$C0C89B4D")                                                                                                
          REWRITE(@"SEL$9E43CB6E" "MV2_TUDWH_CRM_1201")                                                                                
          OUTLINE(@"SEL$9E43CB6E")                                                                                                     
          MERGE(@"SEL$58A6D7F6")                                                                                                       
          OUTLINE(@"SEL$3")                                                                                                            
          OUTLINE(@"SEL$58A6D7F6")                                                                                                     
          MERGE(@"SEL$1")                                                                                                              
          OUTLINE(@"SEL$2")                                                                                                            
          OUTLINE(@"SEL$1")                                                                                                            
          FULL(@"SEL$C0C89B4D" "MV2_TUDWH_CRM_1201"@"SEL$030DBFD9")                                                                    
        END_OUTLINE_DATA                                                                                                               
                            But when running more complex statment - the MV does not even considered by the optimizer as an option , and does not exists in the 10053 trace file:
    Current SQL statement for this session:
    EXPLAIN PLAN FOR
      SELECT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
        FROM (   CRM.CI_CUST_INFO
              LEFT OUTER JOIN
                 CRM.CM_CASE_DIM
              ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST))
       WHERE (CRM.CM_CASE_DIM.FIRST_PROVIDER_GRP_ID IN
                 ('2565', '2611', '1190', '2610', '2612')
              AND (CRM.CM_CASE_DIM.ROW_ADDED_DTTM >= (SYSDATE - 60)))
    ORDER BY CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
    ============
    Plan Table
    ============
    --------------------------------------------------+-----------------------------------+-------------------------+---------------+
    | Id  | Operation                   | Name        | Rows  | Bytes | Cost  | Time      |  TQ  |IN-OUT|PQ Distrib | Pstart| Pstop |
    --------------------------------------------------+-----------------------------------+-------------------------+---------------+
    | 0   | SELECT STATEMENT            |             |       |       |   13K |           |      |      |           |       |       |
    | 1   |  PX COORDINATOR             |             |       |       |       |           |      |      |           |       |       |
    | 2   |   PX SEND QC (ORDER)        | :TQ10002    |     1 |    56 |   13K |  00:01:26 |:Q1002| P->S |QC (ORDER) |       |       |
    | 3   |    SORT ORDER BY            |             |     1 |    56 |   13K |  00:01:26 |:Q1002| PCWP |           |       |       |
    | 4   |     PX RECEIVE              |             |     1 |    56 |   13K |  00:01:26 |:Q1002| PCWP |           |       |       |
    | 5   |      PX SEND RANGE          | :TQ10001    |     1 |    56 |   13K |  00:01:26 |:Q1001| P->P |RANGE      |       |       |
    | 6   |       HASH JOIN             |             |     1 |    56 |   13K |  00:01:26 |:Q1001| PCWP |           |       |       |
    | 7   |        PX RECEIVE           |             |     1 |    31 |   11K |  00:01:12 |:Q1001| PCWP |           |       |       |
    | 8   |         PX SEND BROADCAST   | :TQ10000    |     1 |    31 |   11K |  00:01:12 |:Q1000| P->P |BROADCAST  |       |       |
    | 9   |          PX BLOCK ITERATOR  |             |     1 |    31 |   11K |  00:01:12 |:Q1000| PCWC |           | 1     | 8     |
    | 10  |           TABLE ACCESS FULL | CM_CASE_DIM |     1 |    31 |   11K |  00:01:12 |:Q1000| PCWP |           | 1     | 8     |
    | 11  |        PX BLOCK ITERATOR    |             | 4694K |  115M |  2121 |  00:00:14 |:Q1001| PCWC |           | 1     | 6     |
    | 12  |         TABLE ACCESS FULL   | CI_CUST_INFO| 4694K |  115M |  2121 |  00:00:14 |:Q1001| PCWP |           | 1     | 6     |
    --------------------------------------------------+-----------------------------------+-------------------------+---------------+
    Predicate Information:
    6 - access("CI_CUST_INFO"."BO_ID"="CM_CASE_DIM"."BO_ID_CUST")
    10 - access(:Z>=:Z AND :Z<=:Z)
    10 - filter((INTERNAL_FUNCTION("CM_CASE_DIM"."FIRST_PROVIDER_GRP_ID") AND "CM_CASE_DIM"."ROW_ADDED_DTTM">=SYSDATE@!-60))
    12 - access(:Z>=:Z AND :Z<=:Z)Can one suggested a reason why the optimized did not choose the m.v ?
    After all as you can see the only change is adding more predicate to the statment , e.g:
    WHERE (CRM.CM_CASE_DIM.FIRST_PROVIDER_GRP_ID IN
    ('2565', '2611', '1190', '2610', '2612')
    AND (CRM.CM_CASE_DIM.ROW_ADDED_DTTM >= (SYSDATE - 60)))
    ORDER BY CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
    Thanks

    Hello Bob,
    Thanks for your replay.
    I just recreacted the MV and this time i REMOVED the DISTINCT and ADD two columns :
    CREATE MATERIALIZED VIEW CRM.MV2_TUDWH_CRM_1201
    TABLESPACE DW_LARGE
    NOCACHE
    NOLOGGING
    COMPRESS
    NOPARALLEL
    BUILD IMMEDIATE
    REFRESH COMPLETE ON DEMAND
    WITH PRIMARY KEY
    ENABLE QUERY REWRITE
    AS
    SELECT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM,
           CRM.CM_CASE_DIM.FIRST_PROVIDER_GRP_ID,
           CRM.CM_CASE_DIM.ROW_ADDED_DTTM
      FROM (   CRM.CI_CUST_INFO
            LEFT OUTER JOIN
               CRM.CM_CASE_DIM
            ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST));I rerun the first sql statment that in my first post.
    What happen now is as followed :
    - Optimizer choose to use MV , ONLY if i remove the DISTICT from the select statment.
    - If add the DISTINCT to the select statment , oracle choose a diffrent plan.
    Why ?
    sql_id=ffr3mkc6z8rsv.
    Current SQL statement for this session:
    EXPLAIN PLAN FOR
    SELECT DISTINCT CRM.CI_CUST_INFO.NAP_INT_CUST_NUM
      FROM (   CRM.CI_CUST_INFO
            LEFT OUTER JOIN
               CRM.CM_CASE_DIM
            ON (CRM.CI_CUST_INFO.BO_ID = CRM.CM_CASE_DIM.BO_ID_CUST))
    ============
    Plan Table
    ============
    ---------------------------------------------------------+-----------------------------------+-------------------------+---------------+
    | Id  | Operation                      | Name            | Rows  | Bytes | Cost  | Time      |  TQ  |IN-OUT|PQ Distrib | Pstart| Pstop |
    ---------------------------------------------------------+-----------------------------------+-------------------------+---------------+
    | 0   | SELECT STATEMENT               |                 |       |       |   12K |           |      |      |           |       |       |
    | 1   |  PX COORDINATOR                |                 |       |       |       |           |      |      |           |       |       |
    | 2   |   PX SEND QC (RANDOM)          | :TQ10003        | 4691K |  197M |   12K |  00:01:19 |:Q1003| P->S |QC (RANDOM)|       |       |
    | 3   |    HASH UNIQUE                 |                 | 4691K |  197M |   12K |  00:01:19 |:Q1003| PCWP |           |       |       |
    | 4   |     PX RECEIVE                 |                 |   24M | 1030M |   12K |  00:01:18 |:Q1003| PCWP |           |       |       |
    | 5   |      PX SEND HASH              | :TQ10002        |   24M | 1030M |   12K |  00:01:18 |:Q1002| P->P |HASH       |       |       |
    | 6   |       HASH JOIN OUTER          |                 |   24M | 1030M |   12K |  00:01:18 |:Q1002| PCWP |           |       |       |
    | 7   |        PX RECEIVE              |                 | 4694K |  115M |  2121 |  00:00:14 |:Q1002| PCWP |           |       |       |
    | 8   |         PX SEND HASH           | :TQ10001        | 4694K |  115M |  2121 |  00:00:14 |:Q1001| P->P |HASH       |       |       |
    | 9   |          PX BLOCK ITERATOR     |                 | 4694K |  115M |  2121 |  00:00:14 |:Q1001| PCWC |           | 1     | 6     |
    | 10  |           TABLE ACCESS FULL    | CI_CUST_INFO    | 4694K |  115M |  2121 |  00:00:14 |:Q1001| PCWP |           | 1     | 6     |
    | 11  |        BUFFER SORT             |                 |       |       |       |           |:Q1002| PCWC |           |       |       |
    | 12  |         PX RECEIVE             |                 |   24M |  431M |   10K |  00:01:05 |:Q1002| PCWP |           |       |       |
    | 13  |          PX SEND HASH          | :TQ10000        |   24M |  431M |   10K |  00:01:05 |      | S->P |HASH       |       |       |
    | 14  |           INDEX FAST FULL SCAN | CM_CASE_DIM_IX_3|   24M |  431M |   10K |  00:01:05 |      |      |           |       |       |
    ---------------------------------------------------------+-----------------------------------+-------------------------+---------------+
    Predicate Information:
    6 - access("CI_CUST_INFO"."BO_ID"="CM_CASE_DIM"."BO_ID_CUST")
    10 - access(:Z>=:Z AND :Z<=:Z)

  • Oracle 10g Release 2 Express Edition Connection Error

    Hello,
    i recently started to convert one of out existing applications over to the new free version or oracle express, only to find that i would run into a few errors.
    The project is an asp.net c# application, when the web site is ran and a search is preformed (any retrieval of data) i get the following error.
    Assembly manifest missing, or one if its dependants not found.
    I use a data access layer generator called LLBLGen, this has worked fine with all previous versions of Oracle ODP.NET.
    i contacted the LLBLGen support at first because i thought the error would be due to an incompatibility with the new version or oracle, anyway to cut a long story short, i found out that there is no policy.Oracle.DataAccess within the assembly folder which could be the problem.
    Another thing that i also got told while getting support from LLBLGen is that the adapter is still within a beta version that's why there are no policy's included within the installer. could someone please clarify the status of release or beta.
    if anyone could help i would be grateful
    Thank you
    James

    You will find the .NET policy files in the XE production version. You'll see it in the following directory. c:\oraclexe\app\oracle\product\10.2.0\server\ODP.NET\PublisherPolicy
    It will redirect your 9.2 and/or 10.2 ODP.NET apps to the XE version of ODP.NET since its most up to date.
    You can generate your own application policy files and machine policy files if you want your application or machine to re-direct itself to specific versions of .NET assemblies. You can read more on how to do this here:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconconfigurationfiles.asp

  • Fast installation for oracle db under redhat linux 4 update 3

    dear sirs...
    i know little about linux, however, i create a simple script that will preform pre-installation operations for linux 4 update 3. it will update the files, create oracle user, and so on. you will find its source. if possible i hope someone can upgrade this script such that there it will check the OS packages, and stop the changes if any of the packages is missing.
    thanks for any help and best regards.
    notes:
    1- to use this script, type the text in linux gedit. save it in a file and put the file in a safe place so that every time you want to install the db, you can find it ready.
    2- do not use notepad to create the file, it will not work.
    3- before you run the script, be sure that all packages needed by the db exists.
    4- the script assumes that you have just installed linux for running the database only.
    5- to run the script in linux , login as root user, and type . scriptfilename
    6- the script should be executed only once.
    /usr/sbin/groupadd oinstall
    /usr/sbin/groupadd dba
    /usr/sbin/useradd -m -g oinstall -G dba oracle
    passwd oracle
    mkdir -p /home/oracle
    chown -R oracle:oinstall /home/oracle
    chmod -R 775 /home/oracle
    cat >> /etc/sysctl.conf <<EOF
    # the following lines are added by a script
    kernel.shmall = 2097152
    kernel.shmmax = 536870912
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000
    net.core.rmem_default = 262144
    net.core.wmem_default = 262144
    net.core.rmem_max = 262144
    net.core.wmem_max = 262144
    EOF
    /sbin/sysctl -p
    cat >> /etc/security/limits.conf <<EOF
    # the following lines are added by a script
    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft nofile 1024
    oracle hard nofile 65536
    EOF
    cat >> /etc/pam.d/login <<EOF
    # the following lines are added by a script
    session required /lib/security/pam_limits.so
    EOF
    cat >> /etc/profile <<EOF
    # the following lines are added by a script
    if [ \$USER = "oracle" ]; then
    if [ \$SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    umask 022
    fi
    EOF
    cat >> /etc/csh.login <<EOF
    # the following lines are added by a script
    if ( \$USER == "oracle" ) then
    limit maxproc 16384
    limit descriptors 65536
    umask 022
    endif
    EOF

    Nice.
    A fair chunk of additional work would go into this to ensure that existing settings are not clobbered, but it should be OK on a new install of Linux.
    Why not require that they use the DVD (so you have all RPMs on one media), cd to the RPMS directory and simply 'rpm -i' all the prereq packages? Then you don't need to 'rpm -q' and inspect the status.

  • Calling 6i reports containg oracle graphics in ias 10.1.2.0.2

    Hi,
    i'm having troubles calling a report containing an oracle graphics chart.
    i'm using ias 10.1.2.0.2 and the corresponding forms tools. and the ias 1.0.2.2.2a isuite server.
    Compiling and running the forms is not a problem and neither is caling ordinary reports. i.e reports not containing any oracle graphics. So i'm confident that my server setup is correct.
    When i'm calling reports containing oracle graphics charts the reports simply hangs.
    Consulting the ias server reports queue i can see that status is 'running the report, now executing pre-form trigger' and that's it. status never changes and the report never finishes.
    In my ias 101202 home i've set the following environment variables:
    ORACLE_GRAPHICS6I_HOME -> E:\oracle\806 which is where my oracle graphics is installed
    GRAPHICS60_PATH -> e:\mastra\rep which is where i store my reports and oracle graphics charts
    I keep both the .rdf file and the compiled .rep in the e:\mastra\rep directory.
    Strange thing is that if i don't include the full path to the oracle graphics component in the report it's not able to find it at runtime. I can see in the reports status screen it complains about not being able to fond the chart.
    what parameter should i set so i don't have to hard code the path to the graphics chart?
    If i include the full path to the chart it probably finds it because it doesn't complain but now it hangs telling me that it's running the preform trigger. and then nothing happens.
    please help me cause im stuck here.
    thanks for any input.
    br
    kim gabrielsen

    Hi Frank,
    Our reports are all called from Forms...using RUN_REPORT_OBJECT in the 10g environment. We have hundreds of reports (6i based) that all work fine when run on the 10g app server. The only ones that fail to complete are those that have Graphics embedded. Yet they work just fine when run Client/Server under 6i. On the 10g app server they just run forever/get hung.
    If I launch Graphic 6i Builder on the 10g App Server box, I can connect to the database without any problems. And Graphics 6i do run just fine from my 10g forms (converted from 6i Forms) on the App Server. NOTE: My Graphics 6i uses the same tnsmanes.ora and sqlnet.ora that my App Server uses (via a TNS_ADMIN setting in the Windows registry)
    Is there something extra special I need to do in the report itself?
    Thanks,
    John

  • Calling 6i reports containg oracle graphics in ias 10.1.2.0.2 from forms

    Hi,
    i'm having troubles calling a report containing an oracle graphics chart.
    i'm using ias 10.1.2.0.2 and the corresponding forms tools. and the ias 1.0.2.2.2a isuite server.
    Compiling and running the forms is not a problem and neither is caling ordinary reports. i.e reports not containing any oracle graphics. So i'm confident that my server setup is correct.
    When i'm calling reports containing oracle graphics charts the reports simply hangs.
    Consulting the ias server reports queue i can see that status is 'running the report, now executing pre-form trigger' and that's it. status never changes and the report never finishes.
    In my ias 101202 home i've set the following environment variables:
    ORACLE_GRAPHICS6I_HOME -> E:\oracle\806 which is where my oracle graphics is installed
    GRAPHICS60_PATH -> e:\mastra\rep which is where i store my reports and oracle graphics charts
    I keep both the .rdf file and the compiled .rep in the e:\mastra\rep directory.
    Strange thing is that if i don't include the full path to the oracle graphics component in the report it's not able to find it at runtime. I can see in the reports status screeen it complains about not being able to fond the chart.
    what parameter should i set so i don't have to hard code the path to the graphics chart?
    If i include the full path to the chart it probably finds it because it doesn't complain but now it hangs telling me that it's running the preform trigger. and then nothing happens.
    please help me cause im stuck here.
    thanks for any input.
    br
    kim gabrielsen

    Hi Frank,
    Our reports are all called from Forms...using RUN_REPORT_OBJECT in the 10g environment. We have hundreds of reports (6i based) that all work fine when run on the 10g app server. The only ones that fail to complete are those that have Graphics embedded. Yet they work just fine when run Client/Server under 6i. On the 10g app server they just run forever/get hung.
    If I launch Graphic 6i Builder on the 10g App Server box, I can connect to the database without any problems. And Graphics 6i do run just fine from my 10g forms (converted from 6i Forms) on the App Server. NOTE: My Graphics 6i uses the same tnsmanes.ora and sqlnet.ora that my App Server uses (via a TNS_ADMIN setting in the Windows registry)
    Is there something extra special I need to do in the report itself?
    Thanks,
    John

  • Oracle Streams - Dataguard Configuration

    Dataguard<------Streams<----Production------> Dataguard
    I'm planning to implement a 4-way System where My Production Database with its own Physical Standby will be streaming(Streams database) to A reporting Database with its own Physical Standby.So,Effectively My production database,Especially it's redo logs will be put under severe load.I would like get some light on the feasibility of such a Setup.What parameters can i Take care of so as to make it a profitable High Availability-High Preformance System?
    Any suggestions and advice will be highly appreciated..

    Remember that Streams check the source DB name of the LCR. Thus the db_name of each standby must be the same as the of the open DB of the remote DB will reject the LCR of the standby when it is activated.
    Also streams, dataguard and crash don't fit so well in respect of streams consistency. At the crach time, some transaction will be lost that would have already been sent by streams, since streams react beneath the second. Thus when you activate the dataguard with its loss of some data, you are going to miss some source transaction, that would have already been replicated. You may end with errors on target site, either being dup val on transaction or OLD value in target do not match new value in LCR.
    You can't avoid 100% this but you can decrease its extend. Use as method the 'LGW asynct' as dataguard destination.
    LOG_ARCHIVE_DEST_2='SERVICE=boston LGWR ASYNC'
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_transport.htm#i1265762
    This requires to create the standby redo logs on the dataguard DB (and also on the source DB, since it may becomes itself the standby) so that LGWR updates the remote redo as soon as it can ('async' otherwise 'sync' means that the commit on source is done AFTER the commit into the dataguard and you don't want that).
    From my own observation the 'LGWR async nowait' lag usually under 1 sec behind production, which is very good.

  • Preformance Tuning assistance

    Greeting all,
    Using: Oracle 10.1.0.5.0
    I seem to be having a bit of a problem wiht the length of time my queries take to run.
    I'm reading the Preformance and Tuning manual, but am not having much luck ( making next to no since)
    I ran the Hit/Miss ratio queries I found that were off linked in another post and they seem to be fine, but over the past month or two, queries that used to take 2 - 3 minutes to run are now taking 15 - 20 minutes. I've tried playing around with some hints, but they dont seem to do anything to help speed up the process. Any thoughts or idea would be muchly appericated.
    -Joseph

    Did you do a sql trace on the queries and used tkprof to analyze what is taking so long?
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96533/sqltrace.htm#1018

  • Want to upgrade Oracle Version

    I have a export file (.dmp file) id :V09.02.00 version
    I have the Oracle 9.0.1.1.1 version .
    Now in import error is coming. So i want to upgrade my oracle version .
    I want to know what i will have to do
    A Fresh Installation or any other upgrade patch is available for this
    Please help me
    Thanks in advance

    Hi,
    I have a export file (.dmp file) id :V09.02.00 version
    I have the Oracle 9.0.1.1.1 version .That would be your source.
    Now in import error is coming.What are the errors?
    So i want to upgrade my oracle version .Which oracle database version?
    I want to know what i will have to do
    A Fresh Installation or any other upgrade patch is available for thisYou have to tell which database version you are trying to go to. Secondly were you trying to preform database migration first?
    Like
    - Source database (machine a) > export file
    - Target databasse (machine b) > import from the exported file
    Kindly clear the above.
    Ex Senior DBA

  • Store XML on Oracle and perform search

    Hi,
    I need to be able to store 10,000 XML documents in Oracle so
    I can performance attribute search against these documents
    Is Oracle 8i a must? Is relational tables the way to go?
    What would a good way to store XML document and retrieve them.
    We are currently storing them as BLOB, where we can't do
    preform searching functionality.
    Many Thanks.
    Kevin
    null

    Oracle XML Team wrote:
    : Kevin Lu (guest) wrote:
    : : Hi,
    : : I need to be able to store 10,000 XML documents in Oracle so
    : : I can performance attribute search against these documents
    : : Is Oracle 8i a must? Is relational tables the way to go?
    : : What would a good way to store XML document and retrieve
    them.
    : : We are currently storing them as BLOB, where we can't do
    : : preform searching functionality.
    : : Many Thanks.
    : : Kevin
    : 8i is the way to go but interMedia's support of XML attribute
    : searching is not in the current release but has been announced
    : for 8.1.6.
    I posted this as a follow-up a previous query but, I need to
    accomplish the same. That is store XML data in CLOB but search
    (and select rows) based on XML element or attribute values of the
    XML documents in the CLOB column. Where can I learn more about
    the InterMedia search. Thanks again.
    Prasad
    null

  • Error while invoking a WS-Security secured web service from Oracle BPEL..

    Hi ,
    We are facing some error while invoking a WS-Security secured web service from our BPEL Process on the windows platform(SOA 10.1.3.3.0).
    For the BPEL process we are following the same steps as given in an AMIS blog : - [http://technology.amis.nl/blog/1607/how-to-call-a-ws-security-secured-web-service-from-oracle-bpel]
    but sttill,after deploying it and passing values in it,we are getting the following error on the console :-
    &ldquo;Header [http://schemas.xmlsoap.org/ws/2004/08/addressing:Action] for ultimate recipient is required but not present in the message&rdquo;
    Any pointers in this regard will be highly appreciated.
    Thanks,
    Saurabh

    Hi James,
    Thanks for the quick reply.
    We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
    But on the BPEL console, we are getting the error as mentioned.
    Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
    Thanks,
    Saurabh

  • Error while running a customize report in oracle ebs

    Hi ..
    can anybody suggest how to solve the follwing error while running a customize report in oracle ebs?
    XXIFMS: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    Current system time is 03-JUN-2011 11:09:24
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_DATE_FROM='2010/04/01 00:00:00'
    P_DATE_TO='2011/06/03 00:00:00'
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    stat_low = 9
    stat_high = 0
    emsg:was terminated by signal 9
    ld.so.1: rwrun: fatal: librw.so: open failed: No such file or directory
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program was terminated by signal 9
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 1068011.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 1068011 on node D0005 at 03-JUN-2011 11:09:24.
    Post-processing of request 1068011 failed at 03-JUN-2011 11:09:24 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 03-JUN-2011 11:09:24

    Please post the details of the application release, database version and OS.
    Is the issue with this specific concurrent program?
    Can you find any errors in the CM/OPP log files?
    Please see if these docs help.
    On R12.1.1/Solaris Platform While Generating Oracle Reports Files Failed With Error " ld.so.1: rwconverter: fatal: librw.so: open failed: No such file or directory [ID 1067786.1]
    Apps UPG Fail With Error Ld.So.1: Rwserver: Fatal: Librw.So [ID 961222.1]
    Thanks,
    Hussein

  • HELP! Can not install Oracle 8.1.5 w/ RedHat 6.1!

    I can not get Oracle 8.1.5 to install onto Linux RedHat 6.1. The
    Oracle installation script generates several errors. I have
    tried several attempts, using different options, but they all
    generate errors.
    Please help. The Oracle Installation scripts appear to be very
    buggy... or perhaps they are incompatible with the standard
    RedHat 6.1 release. Either way, it is very frustrating.
    I have documented one of my (failed) installation attempts below.
    Does anyone have any words of wisdom?
    I am installing Oracle onto a Dell Latitude CPi PC w/ 128MB RAM,
    a 366MHz Pentium II, and RedHat 6.1 (using the standard Linux
    2.2.12-2 kernel). RedHat was installed using the standard "Gnome
    Workstation" configuration.
    The Oralce CD is labeled:
    "Oralce 8i Enterprise Edition
    Release 8.1.5
    for Linux
    (c) Oracle Corporation 1999"
    I got this CD about one week ago at Oracle OpenWorld '99 in Los
    Angeles... it should be their "latest & greatest" version so far.
    1. Pre-Installation and ./runInstall
    I created an "oracle" Unix account w/ groups "oinstall" (the
    primary group) and "dba" (a secondary group).
    I created directories /u01 through /u04, belonging to oracle.
    I setup .cshrc and sourced it, containing:
    umask 022
    setenv DISPLAY `hostname`:0
    xhost +
    setenv ORACLE_BASE /u01/app/oracle
    setenv ORACLE_HOME ${ORACLE_BASE}/product/8.1.5
    setenv ORACLE_SID cprtest
    setenv PATH ${ORACLE_HOME}/bin:${PATH}
    setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib
    setenv NLS_LANG US7ASCII
    I downloaded jre116_v5 and installed to /usr/local/jre.
    Finally, I executed (from the "oracle" Unix account):
    cd /mnt/cdrom
    ./runInstall
    Problem: I got the error (from ./runInstall):
    Initializing Java Virtual Machine from /usr/local/jre/bin/jre.
    Please wait...
    Error in CreateOUIProcess(): -1
    : Bad address
    Workaround: Executed the following commands instead:
    cd /mnt/cdrom/install/linux
    ./runIns.sh
    3. runIns.sh and root.sh
    I selected the following options (from ./runIns.sh):
    Source: /mnt/cdrom/stage/products.jar
    Destination: /u01/app/oracle/product/8.1.5
    Oracle 8i Enterprise Edition 8.1.5.0.0
    Typical (585MB)
    Installable Components: Oralce Intelligent Agent 8.1.5.0.0
    Global Database Name: cprtest.parkrussell.com
    SID: cprtest
    Directory for Database Files: /u02
    Then (when instructed by ./runIns.sh), I attempted to execute
    (from the
    "root" Unix account):
    cd /u01/app/oracle/product/8.1.5
    ./root.sh
    Problem: I got the error:
    "bash: ./root.sh: Permission denied"
    The execute bit was not set.
    Workaround: I executed:
    chmod a+x root.sh
    ./root.sh
    5. Configuration Tools
    The Oracle Installer (./runIns.sh) attempted to execute:
    A. Net8 Configuration Agent
    B. Oracle Database Configuration Agent
    Problem: The "Oracle Database Configuration Agent" failed with
    the following error message:
    "One or more tools have failed. It is recommended but not
    required that these tools succeed for this installation.
    You can now select these tools, read its details to examine
    why they have failed, fix those problems, and retry them.
    Or, you can click "Next" to continue."
    When I selected the "Oracle Database Configuration Agent" for
    more info, I got the following additional details (as the cause
    of the error):
    "A required command line argument is missing."
    The log file
    "/u01/app/oracle/oraInventory/logs/installActions.log" recorded:
    "Command which is being spawned is /usr/local/jre/bin/jre
    -Duser.dir=/u01/app/oracle/product/8.1.5/assistants/dbca/jlib
    -classpath
    /usr/local/jre/lib/rt.jar:/u01/app/oracle/product/8.1.5/jlib/ewt-3_1_10.jar:/u01/app/oracle/produc
    /8.1.5/jlib/share-1_0_6.jar:/u01/app/oracle/product/8.1.5/assistants/dbca/jlib/DBAssist.jar:/u01/a
    p/oracle/product/8.1.5/assistants/jlib/jnls.jar:/u01/app/oracle/product/8.1.5/assistants/jlib/ACC.
    AR:/u01/app/oracle/product/8.1.5/jlib/help-3_0_7.jar:/u01/app/oracle/product/8.1.5/jlib/oracle_ice
    4_03_3.jar:/u01/app/oracle/product/8.1.5/jlib/HotJavaBean.jar:/u01/app/oracle/product/8.1.5/jlib/n
    tcfg.jar:/usr/local/jre/lib/i18n.jar
    DBCreateWizard /createtype seed /numusers NO_VALUE /apptype
    NO_VALUE /cartridges NO_VALUE /options NO_VALUE /demos NO_VALUE
    /seedloc NO_VALUE /sid cprtest /orahome
    /u01/app/oracle/product/8.1.5 /orabase /u01/app/oracle /dbloc
    /u02 /clususer NO_VALUE /cluspswd NO_VALUE /nodeinfo NO_VALUE
    /gdbName cprtest.parkrussell.com
    Invalid Exit Code. The following result code will be used for
    configuration tool: 1
    Configuration tool Oracle Database Configuration Assistant
    failed"
    Workaround: There is obviously nothing I can do to fix this
    problem. It appears to be an internal bug in ./runIns.sh.
    Therefore, I selected "Next" and executed "dbassist" directly.
    6. dbassist
    I executed:
    dbassist
    Problem: I got the following error:
    "JNLS Execution:oracle.ntpg.jnls.JNLSException
    Unable to find any National Character Sets. Please
    check your Oracle installation."
    Workaround: Press "OK" and ignore the error.
    7. dbassist (cont.)
    I selected the following options:
    Create database
    Typical
    Copy existing database files from the CD
    Global Database Name: cprtest.parkrussell.com
    SID: cprtest
    Problem: I got the following error:
    "CD-ROM drive not detected on this system.
    Database not created."
    (Note: I've been running the installation scripts from the
    CDROM drive this entire time. "df" shows the CDROM drive
    mounted on /mnt/cdrom. "ls /mnt/cdrom" works too.)
    Workaround: Abort (which generated the additional error: "Unable
    to create database. DBCA-00003: No CD-ROM drive detected.") and
    run dbassist again, this time using different parameters.
    8. dbassist, again
    I executed "dbassist" again and selected the following options:
    Create database
    Typical
    Create new database files
    Hybrid
    Concurrently connected users: 5
    Options: Oralce interMedia, Oralce JServer, and iM demos
    Global Database Name: cprtest2.parkrussell.com
    SID: cprtest2
    Create database now
    Problem: I got the following error:
    "ORA-01012: not logged on"
    Workaround: Try, try again.
    9. dbassist, one last time
    Executed "dbassist" once more and selected the following options:
    Create database
    Typical
    Create new database files
    Hybrid
    Concurrently connected users: 5
    Options: Oralce interMedia, Oralce JServer, and interMedia
    demos
    Global Database Name: cprtest3.parkrussell.com
    SID: cprtest3
    Output creation script
    Then, I executed (from the "oracle" Unix account):
    cd /u01/app/oracle/product/8.1.5/install
    setenv ORACLE_SID cprtest3
    ./sqlcprtest3.sh
    Problem: I got the following output:
    "Oracle Server Manager Release 3.1.5.0.0 - Production
    (c) Copyright 1997, Oracle Corporation. All Rights Reserved.
    Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
    With the Partitioning and Java options
    PL/SQL Release 8.1.5.0.0 - Production
    SVRMGR> SVRMGR> Connected.
    SVRMGR> ORACLE instance started.
    ORA-01012: not logged on
    SVRMGR> 2> 3> 4> 5> 6> 7>
    8> 9> CREATE DATABASE "cprtest3"
    ORA-01012: not logged on
    SVRMGR> Disconnected."
    Workaround: Beats me.
    10. sqlplus
    I attempted to execute sqlplus, but got the following error
    message:
    "/u01/app/oracle/product/8.1.5/bin/sqlplus: Permission denied."
    The execute bit was not set.
    Workaround: I executed:
    chmod a+x /u01/app/oracle/product/8.1.5/bin/sqlplus
    sqlplus
    I gave up for now... there were just too many things wrong with
    this installation, starting with the very first command I was
    supposed to execute (./runInstaller).
    I can't fathom why Oracle's installation script has so many bugs.
    Am I just doing something terribly wrong?
    Please help.
    null

    I'm using enlightenment version 0.15.5-41, which is more recent
    than the 0.15.5-37 version (containing the Oracle installer
    patch) that you recommended. Unfortunately, it fails when using
    this version.
    I also tried installing Oracle using twm, with enlightenment
    disabled. This didn't help either.
    Furthermore, the errors that I'm encountering in the OUI are
    not just toward the end of the installation. They happen from
    the very beginning, right after I enter "./runInstall", and
    continue every step of the way.
    Calvin Mitchell (guest) wrote:
    : Check out my thread: "Assistants Failure Toward end of Oracle
    : Install" to see where i've gone with this.
    : if your running Enlightenment as your window manager you need
    to
    : upgrade to 0.15.5-37, that will solve the OUI error.
    : Let me know if you solve any of your problems.
    : Chris Russell (guest) wrote:
    : : I can not get Oracle 8.1.5 to install onto Linux RedHat 6.1.
    : The
    : : Oracle installation script generates several errors. I have
    : : tried several attempts, using different options, but they all
    : : generate errors.
    : : Please help. The Oracle Installation scripts appear to be
    very
    : : buggy... or perhaps they are incompatible with the standard
    : : RedHat 6.1 release. Either way, it is very frustrating.
    : : I have documented one of my (failed) installation attempts
    : below.
    : : Does anyone have any words of wisdom?
    : : I am installing Oracle onto a Dell Latitude CPi PC w/ 128MB
    : RAM,
    : : a 366MHz Pentium II, and RedHat 6.1 (using the standard Linux
    : : 2.2.12-2 kernel). RedHat was installed using the standard
    : "Gnome
    : : Workstation" configuration.
    : : The Oralce CD is labeled:
    : : "Oralce 8i Enterprise Edition
    : : Release 8.1.5
    : : for Linux
    : : (c) Oracle Corporation 1999"
    : : I got this CD about one week ago at Oracle OpenWorld '99 in
    Los
    : : Angeles... it should be their "latest & greatest" version so
    : far.
    : : 1. Pre-Installation and ./runInstall
    : : I created an "oracle" Unix account w/ groups "oinstall" (the
    : : primary group) and "dba" (a secondary group).
    : : I created directories /u01 through /u04, belonging to oracle.
    : : I setup .cshrc and sourced it, containing:
    : : umask 022
    : : setenv DISPLAY `hostname`:0
    : : xhost +
    : : setenv ORACLE_BASE /u01/app/oracle
    : : setenv ORACLE_HOME ${ORACLE_BASE}/product/8.1.5
    : : setenv ORACLE_SID cprtest
    : : setenv PATH ${ORACLE_HOME}/bin:${PATH}
    : : setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib
    : : setenv NLS_LANG US7ASCII
    : : I downloaded jre116_v5 and installed to /usr/local/jre.
    : : Finally, I executed (from the "oracle" Unix account):
    : : cd /mnt/cdrom
    : : ./runInstall
    : : Problem: I got the error (from ./runInstall):
    : : Initializing Java Virtual Machine from
    : /usr/local/jre/bin/jre.
    : : Please wait...
    : : Error in CreateOUIProcess(): -1
    : : : Bad address
    : : Workaround: Executed the following commands instead:
    : : cd /mnt/cdrom/install/linux
    : : ./runIns.sh
    : : 3. runIns.sh and root.sh
    : : I selected the following options (from ./runIns.sh):
    : : Source: /mnt/cdrom/stage/products.jar
    : : Destination: /u01/app/oracle/product/8.1.5
    : : Oracle 8i Enterprise Edition 8.1.5.0.0
    : : Typical (585MB)
    : : Installable Components: Oralce Intelligent Agent 8.1.5.0.0
    : : Global Database Name: cprtest.parkrussell.com
    : : SID: cprtest
    : : Directory for Database Files: /u02
    : : Then (when instructed by ./runIns.sh), I attempted to execute
    : : (from the
    : : "root" Unix account):
    : : cd /u01/app/oracle/product/8.1.5
    : : ./root.sh
    : : Problem: I got the error:
    : : "bash: ./root.sh: Permission denied"
    : : The execute bit was not set.
    : : Workaround: I executed:
    : : chmod a+x root.sh
    : : ./root.sh
    : : 5. Configuration Tools
    : : The Oracle Installer (./runIns.sh) attempted to execute:
    : : A. Net8 Configuration Agent
    : : B. Oracle Database Configuration Agent
    : : Problem: The "Oracle Database Configuration Agent" failed
    with
    : : the following error message:
    : : "One or more tools have failed. It is recommended but not
    : : required that these tools succeed for this installation.
    : : You can now select these tools, read its details to
    examine
    : : why they have failed, fix those problems, and retry them.
    : : Or, you can click "Next" to continue."
    : : When I selected the "Oracle Database Configuration Agent" for
    : : more info, I got the following additional details (as the
    cause
    : : of the error):
    : : "A required command line argument is missing."
    : : The log file
    : : "/u01/app/oracle/oraInventory/logs/installActions.log"
    : recorded:
    : : "Command which is being spawned is /usr/local/jre/bin/jre
    : : -Duser.dir=/u01/app/oracle/product/8.1.5/assistants/dbca/jlib
    : : -classpath
    /usr/local/jre/lib/rt.jar:/u01/app/oracle/product/8.1.5/jlib/ewt-
    : 3_1_10.jar:/u01/app/oracle/product/8.1.5/jlib/share-
    1_0_6.jar:/u01/app/oracle/product/8.1.5/assistants/dbca/jlib/DBAs
    sist.jar:/u01/app/oracle/product/8.1.5/assistants/jlib/jnls.jar:/
    u01/app/oracle/product/8.1.5/assistants/jlib/ACC.JAR:/u01/app/ora
    : cle/product/8.1.5/jlib/help-
    : 3_0_7.jar:/u01/app/oracle/product/8.1.5/jlib/oracle_ice-
    4_03_3.jar:/u01/app/oracle/product/8.1.5/jlib/HotJavaBean.jar:/u0
    1/app/oracle/product/8.1.5/jlib/netcfg.jar:/usr/local/jre/lib/i18
    : n.jar
    : : DBCreateWizard /createtype seed /numusers NO_VALUE /apptype
    : : NO_VALUE /cartridges NO_VALUE /options NO_VALUE /demos
    NO_VALUE
    : : /seedloc NO_VALUE /sid cprtest /orahome
    : : /u01/app/oracle/product/8.1.5 /orabase /u01/app/oracle /dbloc
    : : /u02 /clususer NO_VALUE /cluspswd NO_VALUE /nodeinfo NO_VALUE
    : : /gdbName cprtest.parkrussell.com
    : : Invalid Exit Code. The following result code will be used
    for
    : : configuration tool: 1
    : : Configuration tool Oracle Database Configuration Assistant
    : : failed"
    : : Workaround: There is obviously nothing I can do to fix this
    : : problem. It appears to be an internal bug in ./runIns.sh.
    : : Therefore, I selected "Next" and executed "dbassist"
    directly.
    : : 6. dbassist
    : : I executed:
    : : dbassist
    : : Problem: I got the following error:
    : : "JNLS Execution:oracle.ntpg.jnls.JNLSException
    : : Unable to find any National Character Sets. Please
    : : check your Oracle installation."
    : : Workaround: Press "OK" and ignore the error.
    : : 7. dbassist (cont.)
    : : I selected the following options:
    : : Create database
    : : Typical
    : : Copy existing database files from the CD
    : : Global Database Name: cprtest.parkrussell.com
    : : SID: cprtest
    : : Problem: I got the following error:
    : : "CD-ROM drive not detected on this system.
    : : Database not created."
    : : (Note: I've been running the installation scripts from the
    : : CDROM drive this entire time. "df" shows the CDROM drive
    : : mounted on /mnt/cdrom. "ls /mnt/cdrom" works too.)
    : : Workaround: Abort (which generated the additional error:
    : "Unable
    : : to create database. DBCA-00003: No CD-ROM drive detected.")
    : and
    : : run dbassist again, this time using different parameters.
    : : 8. dbassist, again
    : : I executed "dbassist" again and selected the following
    options:
    : : Create database
    : : Typical
    : : Create new database files
    : : Hybrid
    : : Concurrently connected users: 5
    : : Options: Oralce interMedia, Oralce JServer, and iM demos
    : : Global Database Name: cprtest2.parkrussell.com
    : : SID: cprtest2
    : : Create database now
    : : Problem: I got the following error:
    : : "ORA-01012: not logged on"
    : : Workaround: Try, try again.
    : : 9. dbassist, one last time
    : : Executed "dbassist" once more and selected the following
    : options:
    : : Create database
    : : Typical
    : : Create new database files
    : : Hybrid
    : : Concurrently connected users: 5
    : : Options: Oralce interMedia, Oralce JServer, and interMedia
    : : demos
    : : Global Database Name: cprtest3.parkrussell.com
    : : SID: cprtest3
    : : Output creation script
    : : Then, I executed (from the "oracle" Unix account):
    : : cd /u01/app/oracle/product/8.1.5/install
    : : setenv ORACLE_SID cprtest3
    : : ./sqlcprtest3.sh
    : : Problem: I got the following output:
    : : "Oracle Server Manager Release 3.1.5.0.0 - Production
    : : (c) Copyright 1997, Oracle Corporation. All Rights
    Reserved.
    : : Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
    : : With the Partitioning and Java options
    : : PL/SQL Release 8.1.5.0.0 - Production
    : : SVRMGR> SVRMGR> Connected.
    : : SVRMGR> ORACLE instance started.
    : : ORA-01012: not logged on
    : : SVRMGR> 2> 3> 4> 5> 6> 7>
    : : 8> 9> CREATE DATABASE "cprtest3"
    : : ORA-01012: not logged on
    : : SVRMGR> Disconnected."
    : : Workaround: Beats me.
    : : 10. sqlplus
    : : I attempted to execute sqlplus, but got the following error
    : : message:
    : : "/u01/app/oracle/product/8.1.5/bin/sqlplus: Permission
    : denied."
    : : The execute bit was not set.
    : : Workaround: I executed:
    : : chmod a+x /u01/app/oracle/product/8.1.5/bin/sqlplus
    : : sqlplus
    : : I gave up for now... there were just too many things wrong
    with
    : : this installation, starting with the very first command I was
    : : supposed to execute (./runInstaller).
    : : I can't fathom why Oracle's installation script has so many
    : bugs.
    : : Am I just doing something terribly wrong?
    : : Please help.
    null

  • Logical operators in Oracle select query

    Hello all,
    Can i use logical operators in oracle select queries?
    for 1 and 0 =0 ; 1 or 0 =0
    if i have two fileds in a table COL1 have a value of 1010 and COL2 have a value of 0001.
    Is there any way to use select col1 or col2 from table? where or is a logical operator?
    Regards,

    Hi,
    NB wrote:
    Hello all,
    Can i use logical operators in oracle select queries?Sure; Oracle has the logical operators AND, NOT and OR. All the comparison operators, including >, >=, = !=, EXISTS, IN, IS NULL, LIKE and REGEXP_LIKE are really logical operators, since they return logical values. You can use them in SELECT statements, and other places, too.
    for 1 and 0 =0 ; 1 or 0 =0
    if i have two fileds in a table COL1 have a value of 1010 and COL2 have a value of 0001.It's unclear what you want. Maybe you'd be interested in the BITAND function:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/functions014.htm#sthref1080
    BITAND is the only logical function that I know of. Many other functions, especially numberical fucntions such as MOD, have applications in logic.
    Is there any way to use select col1 or col2 from table? where or is a logical operator?Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements), and also post the results you want from that data.
    Explain how you get those results from that data.
    Always say which version of Oracle you're using.

  • Strange scenario,Oracle can not display the data in mysql correctly

    I use Heterogeneous Service+ODBC to achieve "oracle access mysql"(any other method?),and now i find Oracle can not display the data in mysql correctly:
    -------mysql------------
    mysql> create table tst(id int,name varchar(10));
    Query OK, 0 rows affected (0.00 sec)
    mysql> insert into tst values(1,'a');
    Query OK, 1 row affected (0.00 sec)
    mysql> select * from tst;
    ------------+
    | id | name |
    ------------+
    | 1 | a |
    ------------+
    1 row in set (0.00 sec)
    mysql> show create table tst\G
    *************************** 1. row ***************************
    Table: tst
    Create Table: CREATE TABLE `tst` (
    `id` int(11) DEFAULT NULL,
    `name` varchar(10) DEFAULT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    1 row in set (0.00 sec)
    -------------oracle ------------------
    SQL> select count(*) from "tst"@mysql;
    COUNT(*)
    49
    SQL> select * from "tst"@mysql;
    id
    1
    SQL> desc "tst"@mysql;
    Name Null? Type
    id NUMBER(10)

    You can make the following query on the result page:
    "select * from the_table where movietitle = ? and cinema = ?"
    then you set movietitle and cinema to those which the user selected. If the resultset contains more than 0 rows, that means the movie is available.
    Below is the sample code, it assumes you have a connection to the database:
    PreparedStatement stat = myConnection.prepareStatement("select * from the_table where movietitle = ? and cinema = ?");
    stat.setString(1, usersMovieTitleSelection);
    stat.setString(2, usersCinemaSelection);
    ResultSet res = stat.executeQuery();
    if (res.next()) {
    out.print("The movie is available");
    } else {
    out.print("The movie is not available");
    }Now just add that to your JSP page. Enjoy ! =)

Maybe you are looking for

  • How do I get imessages from two different numbers

    I am able to get my son's imessages from other iphones show up on my iphone.   How can I add my daughter's number that is on my account as well?

  • Generating Test Results (Reporting) from Microsoft Test Manager

    Hello, I would like to generate a report for the executed testcases in TM, but unfortunately, I can't find any directions of how to generate such report. Is there a way to generate such report without using thirdparty software/addons? What I am looki

  • KO01 : Ordrer type and company code

    Hi, Is there any possibility to limit the choice of company code in KO01 depending the order type entered. Example : I have 2 companies CC01 & CC02 and 2 order types OT01 & OT02 in customizing I assign OT01 to CC01 and OT02 to CC02 So I want to block

  • Why my safari won't open

    My safari does not open?

  • Tld help

    I am using facelet and eclipse jboss tool. I just finished up my tag with facelet composite. The type attribute can be double or long. I am successfully install the tdl with code assistance in the jboss tool but how can i improve the code assistance