Oracle 11g - Problem in referring ROWNUM in the SQL

Hello All,
We are facing a strange problem with Oracle 11g (11.2.0.1.0).
When we issue a query which refers the rownum, it returns a invalid record ( which is not exists in the table).
The same sql is working fine once we analyze the table
Note: The same sql is working fine with oracle 10g (Before analyze also).
The script to reproduce the issue:
DROP TABLE BusinessEntities;
CREATE TABLE BusinessEntities
business_entity_id VARCHAR2(25) PRIMARY KEY,
business_entity_name VARCHAR2(50) NOT NULL ,
owner_id VARCHAR2(25) ,
statutory_detail_id NUMBER ,
address_id NUMBER NOT NULL
DROP TABLE BusEntityRoles;
CREATE TABLE BusEntityRoles
business_entity_id VARCHAR2(25) NOT NULL,
role_id VARCHAR2(10) NOT NULL,
PRIMARY KEY (business_entity_id, role_id)
INSERT
INTO businessentities ( business_entity_id , business_entity_name, owner_id , statutory_detail_id , address_id)
VALUES
( 'OWNER', 'OWNER Corporation Ltd', NULL , 1, 1 );
INSERT
INTO businessentities ( business_entity_id , business_entity_name, owner_id , statutory_detail_id , address_id)
VALUES
( 'ALL_IN_ALL', 'ALL IN ALL Corporation Ltd', 'OWNER' , 2, 2 );
INSERT INTO busentityroles(business_entity_id, role_id) VALUES ('TEST' , 'OWNER');
INSERT INTO busentityroles (business_entity_id,role_id) VALUES ('TEST','VENDOR');
INSERT INTO busentityroles(business_entity_id, role_id) VALUES ('ALL_IN_ALL' , 'VENDOR');
SELECT *
FROM
(SELECT raw_sql_.business_entity_id, raw_sql_.business_entity_name, raw_sql_.owner_id, raw_sql_.address_id,
rownum raw_rnum_
FROM
(SELECT *
FROM BusinessEntities
WHERE (business_entity_id IN
(SELECT business_entity_id
FROM BusinessEntities
WHERE business_entity_id = 'OWNER'
OR owner_id = 'ALL_IN_ALL'
AND business_entity_id NOT IN
(SELECT business_entity_id FROM BusEntityRoles
ORDER BY business_entity_id ASC
) raw_sql_
WHERE rownum <= 5
WHERE raw_rnum_ > 0;
OUTPUT Before Analyzing
BUSINESS_ENTITY_ID: OWNER
BUSINESS_ENTITY_NAME: NULL
OWNER_ID: OWNER
ADDRESS_ID: NULL
RAW_RNUM_: 1
Note: There is no record in the table with the value business_entity_id as 'OWNER' and OWNER_ID as 'OWNER' and the address_id as NULL
OUTPUT : After analyzed the table Using the below mentioned command
ANALYZE TABLE "BUSENTITYSUPPLYCHAINROLES" ESTIMATE STATISTICS
ANALYZE TABLE "BUSINESSENTITIES" ESTIMATE STATISTICS
BUSINESS_ENTITY_ID: OWNER
BUSINESS_ENTITY_NAME: OWNER Corporation Ltd
OWNER_ID: NULL
ADDRESS_ID: 1
RAW_RNUM_: 1
Any clue why Oracle 11g is behaving like this.

Hi,
it's a good practice to give aliases for tables, as well as name query blocks. Here it is (and formatted for convinience):
select --/*+ gather_plan_statistics optimizer_features_enable('10.2.0.4') */
  from (select /*+ qb_name(v2) */
               raw_sql_.business_entity_id
              ,raw_sql_.business_entity_name
              ,raw_sql_.owner_id
              ,raw_sql_.address_id
              ,rownum raw_rnum_
          from (select /*+ qb_name(v1) */ *
                  from businessentities b1
                 where (b1.business_entity_id in
                       (select /*+ qb_name(in) */ b2.business_entity_id
                           from businessentities b2
                          where business_entity_id = 'OWNER'
                             or owner_id = 'ALL_IN_ALL'
                            and business_entity_id not in
                               (select /*+ qb_name(not_in) */ r.business_entity_id from busentityroles r)))
                 order by business_entity_id asc) raw_sql_
         where rownum <= 5)
where raw_rnum_ > 0;You are facing some bug - definitely - and, possibly, it is caused by [join elimination|http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html]. As a workaround you should rewrite the query to eliminate unnecessary join manually; or you may include a hint to not eliminate join (it's not documented):
SQL>
select -- /*+ gather_plan_statistics optimizer_features_enable('10.2.0.4') */
  from (select /*+ qb_name(v2)  */
               raw_sql_.business_entity_id
              ,raw_sql_.business_entity_name
              ,raw_sql_.owner_id
              ,raw_sql_.address_id
              ,rownum raw_rnum_
          from (select /*+ qb_name(v1) no_eliminate_join(b1) */ *
                  from businessentities b1
                 where (b1.business_entity_id in
                       (select /*+ qb_name(in) */ b2.business_entity_id
                           from businessentities b2
                          where business_entity_id = 'OWNER'
                             or owner_id = 'ALL_IN_ALL'
                            and business_entity_id not in
                               (select /*+ qb_name(not_in) */ r.business_entity_id from busentityroles r)))
                 order by business_entity_id asc) raw_sql_
         where rownum <= 5)
20   where raw_rnum_ > 0;
BUSINESS_ENTITY_ID        BUSINESS_ENTITY_NAME                               OWNER_ID                  ADDRESS_ID  RAW_RNUM_
OWNER                     OWNER Corporation Ltd                                                                 1          1Strange thing is executing a transformed query gives correct result too:
SELECT "from$_subquery$_001"."BUSINESS_ENTITY_ID" "BUSINESS_ENTITY_ID",
       "from$_subquery$_001"."BUSINESS_ENTITY_NAME" "BUSINESS_ENTITY_NAME",
       "from$_subquery$_001"."OWNER_ID" "OWNER_ID",
       "from$_subquery$_001"."ADDRESS_ID" "ADDRESS_ID",
       "from$_subquery$_001"."RAW_RNUM_" "RAW_RNUM_"
  FROM  (SELECT /*+ QB_NAME ("V2") */
                "RAW_SQL_"."BUSINESS_ENTITY_ID" "BUSINESS_ENTITY_ID",
                "RAW_SQL_"."BUSINESS_ENTITY_NAME" "BUSINESS_ENTITY_NAME",
                "RAW_SQL_"."OWNER_ID" "OWNER_ID","RAW_SQL_"."ADDRESS_ID" "ADDRESS_ID",
                ROWNUM "RAW_RNUM_"
           FROM  (SELECT /*+ QB_NAME ("V1") */
                        "SYS_ALIAS_1"."BUSINESS_ENTITY_ID" "BUSINESS_ENTITY_ID",
                        "SYS_ALIAS_1"."BUSINESS_ENTITY_NAME" "BUSINESS_ENTITY_NAME",
                        "SYS_ALIAS_1"."OWNER_ID" "OWNER_ID",
                        "SYS_ALIAS_1"."STATUTORY_DETAIL_ID" "STATUTORY_DETAIL_ID",
                        "SYS_ALIAS_1"."ADDRESS_ID" "ADDRESS_ID"
                   FROM "TIM"."BUSINESSENTITIES" "SYS_ALIAS_1"
                  WHERE ("SYS_ALIAS_1"."BUSINESS_ENTITY_ID"='OWNER'
                      OR "SYS_ALIAS_1"."OWNER_ID"='ALL_IN_ALL' AND  NOT
                         EXISTS (SELECT /*+ QB_NAME ("NOT_IN") */ 0
                                   FROM "TIM"."BUSENTITYROLES" "R"
                                  WHERE "R"."BUSINESS_ENTITY_ID"="SYS_ALIAS_1"."BUSINESS_ENTITY_ID")
                  ORDER BY "SYS_ALIAS_1"."BUSINESS_ENTITY_ID") "RAW_SQL_"
         WHERE ROWNUM<=5) "from$_subquery$_001"
26   WHERE "from$_subquery$_001"."RAW_RNUM_">0
27  /
BUSINESS_ENTITY_ID        BUSINESS_ENTITY_NAME                               OWNER_ID                  ADDRESS_ID  RAW_RNUM_
OWNER                     OWNER Corporation Ltd                                                                 1          1

Similar Messages

  • Connect Oracle 11g (64-bit windows server) to Microsoft SQL Server 2000

    Hi all,
    I am trying to connect:
    Oracle 11g (64-bit windows server) to Microsoft SQL Server 2000 (32-bit) on a different machine.
    1) I have create an ODBC connection (called:GALAXY) which connects.
    2) created a init.ora called it initgalaxy.ora in $oracle_home\hs\admin
    HS_FDS_CONNECT_INFO = GALAXY
    HS_FDS_TRACE_LEVEL = on
    3) modified the listener.ora file as below
    # listener.ora Network Configuration File: E:\Ora11g\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc0))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC =
    (GLOBAL_DBNAME = HEX.BIU01.kingsch.nhs.uk)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    (SID_NAME = HEX)
    (SID_DESC=
    (SID_NAME = galaxy)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    (PROGRAM = dg4odbc)
    (SID_DESC =
    (PROGRAM = EXTPROC)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    4) modified the tnsnames.ora file is as follows
    GALAXY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01.kingsch.nhs.uk)(PORT = 1521))
    (CONNECT_DATA =
    (SID = galaxy)
    (HS = OK)
    HEX =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01.kingsch.nhs.uk)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = HEX)
    5) restarted the listener
    6) created a public database connect
    create PUBLIC DATABASE LINK "GALAXY" CONNECT TO "USER" IDENTIFIED by "PWD" USING 'galaxy';
    This is the error message I can sell in $oracle_home\hs\admin\trace
    Oracle Corporation --- MONDAY APR 27 2009 11:54:18.370
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- MONDAY APR 27 2009 11:54:18.370
    Version 11.1.0.6.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using galaxy_live as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    ##>Connect Parameters (len=42)<##
    ## DSN=GALAXY;
    #! UID=galaxy_live;
    #! PWD=*
    hgocont, line 1890: calling SqlDriverConnect got sqlstate IM002
    when I try to test the database link, I get this error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Drive Manager] Data source name not found and no default driver specified
    ORA-02063: preceding 2 lines from GALAXY
    28500.00000- "connection from ORACLE to ad non-Oracle system returned this message:"
    *Cause: The cause is explained in the forwarded message.
    *Action: See the non-Oracle system's documentation of the forwarded message.
    vendor code 28500
    Edited by: user7336435 on 27-Apr-2009 05:56

    11.2 is beta at the moment. There is no official release date so far.
    As DG4ODBC is independant from the Oracle database (or the target database) you can use a 3 machine model:
    On the first machine you have your Oracle database, on a second machine running 32bit Windows you can install DG4ODBC and on the 3rd machine you can run your foreign database.
    If the SQL Server 2k is installed on a 32bit Windows machine, then you can also install DG4ODBC on this machine.
    In general the connection from an Oracle database to the DG4ODBC machine is done using SDQL*Net. The listener responsible for DG4ODBC will then load the DG4ODBC executable which will connect to the SQL Server using SQL Server ODBC driver.

  • Problem with getting started with the SQL Developer in oracle 11g

    I downloaded the oracle 11g from the oracle site and installed it on my machine.Now i want to write the sql queries and practise them......so i tried this:start\oracle11gHome\ApplicationDevelopment\Sqldeveloper . But I get a messagebox with a browse button asking me to "Enter the full pathname for java.exe"
    what is this all about?Do i need to install jave in my host machine?
    how to solve this problem?

    hi
    If you are asked to enter the full pathname for java.exe, click Browse and find java.exe. For example, the path might have a name similar to C:\Program Files\Java\jdk1.5.0_06\bin\java.exe.
    http://download.oracle.com/docs/cd/E10405_01/doc/install.120/e10407/install.htm
    hope this helps
    zekeriya

  • Oracle 11g upgrade prerequisite fails for all the values

    Hi,
    We have planned Oracle upgrade from 10.2.0.4 to 11.2.0.2. We have
    followed the upgrade guide Database Upgrade Guide "Upgrade to Oracle Database 11g Release 2 (11.2): UNIX". Our OS versionis HP-UX ia64 B.11.31. According to the upgrade guide we have set all the environment vairables. And started the Oracle 11.2.0.2 software installation prerequisite with the command " ./RUNINSTALLER -check " The result of the prerequisite check was giving the all the parameters are failed. But the parameters like Physical memory, orasid user also showing failed eventhough we are having 16 GB of physical memory & we logged on
    with orasid it self and all the parameters are showing failed.
    We have check the Oracle metalink note#169706.1,  According to the note we have valid version of HP-UX 11.31 and some patches are already installed and some of them are not installed. But the prerequisite check showing all the patches are in failed state irrespective of some installed patches.
    Regards,
    Sreekanth

    Hi there
    For DB upgrades to 11g there are couple technical notes .
    SAP Note No. 1431793
    SAP Note No. 1431797
    SAP Note No. 1431800
    Hope them can be useful
    BR
    Venkat

  • Database toolkit & Oracle 11g, problem with timestamps

    I tested my application, based on the Database toolkit, with Access and Oracle XE (10g) databases and all was ok. After moving my database to a Oracle 11g server, i get this error for any query involving a TIMESTAMP WITH TIME ZONE or TIMESTAMP WITH LOCAL TIME ZONE column:
    ADO Error: 0x80040E21
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: ODBC driver does not support the requested properties.
    The error is raised by the "Execute" invoke node in "DB Tools execute query.vi".
    Using Labview 2009 and up to date Oracle ODBC drivers on Windows XP

    Hi SnamProgetti,
    I don't have any useful information about this error. You can try to read this and this document.
    Have a nice day,
    Simone S.
    Academic Field Engineer - Med Region

  • Oracle 11G/ MV log is newer than the last full refresh

    MV log is newer than the last full refresh / MV-Log ist neuer als letzter vollständiger Refresh
    Oracle 11G
    We access from two data banks about MATERIALIZED VIEWs a big master table.
    The second data bank is new created. A Complete-Refresh lasts > one hour.
    Then never takes place fast-refresh because the MV log on the master db
    does not reproach with the data long enough. What can we do? Can one
    increase the hold duration of the data in the MV LOG?
    Thanks!
    Edited by: 952865 on 15.08.2012 02:27
    Edited by: 952865 on 15.08.2012 02:28

    What do you get with the following query on the side of your master table?
    with
    sg as
    (select segment_name,owner, bytes
       from sys.dba_segments
      where segment_name like 'MLOG$%'),
    tb as
    (select owner, object_name, object_type, created, last_ddl_time
       from sys.dba_objects where object_type = 'TABLE')
    select
      bm.owner bm_owner,
      ml.log_owner ml_owner,
      bm.master bm_table,
      ml.master ml_table,
      ml.log_table log_table,
      sg.bytes log_size,
      tb.created log_created,
      tb.last_ddl_time log_modified,
      bm.mview_id bm_id,
      rm.mview_id rm_id,
      rm.owner s_owner,
      rm.name s_table,
      rm.mview_site s_site,
      rm.can_use_log,
      rm.version,
      ml.rowids ml_rwid,
      ml.primary_key ml_pk,
      rm.refresh_method rm_meth,
      ml.sequence ml_seq,
      ml.include_new_values ml_new,
      bm.mview_last_refresh_time
    from            sys.dba_registered_mviews rm
    full outer join sys.dba_base_table_mviews bm
      on bm.mview_id = rm.mview_id
    full outer join sys.dba_mview_logs ml
      on bm.master = ml.master and bm.owner = ml.log_owner
    full outer join sg
      on ml.log_table = sg.segment_name and ml.log_owner = sg.owner
    left outer join tb
      on tb.owner = sg.owner and tb.object_name = sg.segment_name
    where
         bm.master is null
      or bm.master = :mastertable
      or ml.master is null
      or ml.master = :mastertable
    order by 1,2;For :mastertable you have to insert the name of the table, where you created the MV LOG on.

  • Oracle Apex - when I open a page the sql query runs

    What do I need to change to stop the sql query running when a page is opened in Apex
    the page accepts a value to search a table for relevant data. I have set a default value
    every time I open the page it runs the sql query using the default value

    Does it need a default value?  Why I am asking is, you could add a conditional display to your report region that would not show the report until the item has a value entered by the user..
    Thank you,
    Tony Miller
    LuvMuffin Software
    Salt Lake City, UT

  • Generate sample CFC Service for Oracle 11g problem

    Hello,
       i am facing problem with Generating cfc from RDS datasource for oracle database 11g , i can borows the tables and fields
    in the RDS Dataview but i cant Generate the CFC using the option of Generate from RDS datasoures , if i chose it it takes long time
    and the flash builder is frazed and not responding if i try to select the table wich i want to create that CFC for . i have the correct
    Oracle jdbc driver for that database version and also if i generate from template and try to create the return datatype it dosent
    give me the correct datatype of the oracle table .. please help
    thanks

    The main problem that i am not able to select the table from the table lists to start generate the CFC
    No there is no database objects in oracle starts with numbers , but most of thim having the ($) charactier in there names , i am not getting the correct datatypes , the num
    bers datatype in oracle is presenting with Object datatype in flex .
    i mean if you have a field with Number(6.2) in oracle the flash builder use Object datatype
    and i am using the latest nightbuild of flash builder do i have to download something else ?

  • Oracle 11g problem with creating shared memory segments

    Hi, i'm having some problems with the oracle listener, when i'm trying to start it or reload it I get the follow error massages:
    TNS-01114: LSNRCTL could not perform local OS authentication with the listener
    TNS-01115: OS error 28 creating shared memory segment of 129 bytes with key 2969090421
    My system is a: SunOS db1-oracle 5.10 Generic_144489-06 i86pc i386 i86pc (Total 64GB RAM)
    Current SGA is set to:
    Total System Global Area 5344731136 bytes
    Fixed Size 2233536 bytes
    Variable Size 2919238464 bytes
    Database Buffers 2399141888 bytes
    Redo Buffers 24117248 bytes
    prctl -n project.max-shm-memory -i process $$
    process: 21735: -bash
    NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
    project.max-shm-memory
    privileged 64.0GB - deny
    I've seen that a solution might be "Make sure that system resources like shared memory and heap memory are available for LSNRCTL tool to execute properly."
    I'm not exactly sure how to check that there is enough resources?
    I've also seen a solution stating:
    "Try adjusting the system-imposed limits such as the maximum number of allowed shared memory segments, or their maximum and minimum sizes. In other cases, resources need to be freed up first for the operation to succeed."
    I've tried to modify the "max-sem-ids" parameter and set it to recommended 256 without any success and i've kind of run out of options what the error can be?
    /Regards

    I see, I do have the max-shm-ids quite high already so it shouldn't be a problem?
    user.oracle:100::oracle::process.max-file-descriptor=(priv,4096,deny);
    process.max-stack-size=(priv,33554432,deny);
    project.max-shm-memory=(priv,68719476736,deny)

  • Oracle 11g ProC/C++ PCC-S-02346, PL/SQL found semantic errors

    Hi
    We use ProC/C++ since Oracle V7 and have precompile without problem with proc 7, 8, 9 10.
    I have downloaded instant client 11g (base + sdk + precomp) and have errors PCC-S-02346 !
    332 EXEC SQL EXECUTE
    Error at line 333, column 4 in file cdsgbtol.cpp
    333 BEGIN
    333 ...1
    333 PCC-S-02346, PL/SQL found semantic errors
    Error at line 334, column 5 in file cdsgbtol.cpp
    334 DSS_CINDOC_PKG.DSS_UTIL_SYSTAB(:P1,:Optype,:P2,:oRowCont,:res) ;
    334 ....1
    334 PLS-S-00000, Statement ignored
    335 END ;
    336 END-EXEC ;
    Errors occurs with source that needs proc option sqlcheck=SEMANTICS.
    Thanks for help
    Jean-François

    Hello,
    I'm having the same problem !
    Got unchanged .pc source code which worked fine with Oracle 9 and Oracle 10 pro*C precompilers,
    I just installed Oracle 11gR1 Server on Win XP 32bits, and now I'm having this error :
    C:\> proc.exe .\sources\t_bas_information_base sqlcheck=semantics native_types=YES userid=tpv/tpv@tpv
    Pro*C/C++: Release 11.1.0.7.0 - Production on Ven. FÚvr. 4 11:34:44 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Valeurs des options systÞme par dÚfaut extraites de : D:\oracle\ora11gR1\precomp\admin\pcscfg.cfg
    Erreur Ó la ligne 93, colonne 54 dans le fichier .\sources\t_bas_information_base.pc
    EXEC SQL DECLARE cur_T_BAS_INFORMATION_BASE CURSOR FOR
    .....................................................1
    PLS-S-00000, SQL Statement ignored
    erreur sÚmantique Ó la ligne 93, colonne 54, fichier .\sources\t_bas_information_base.pc:
    EXEC SQL DECLARE cur_T_BAS_INFORMATION_BASE CURSOR FOR
    .....................................................1
    PCC-S-02346, PL/SQL a trouvÚ des erreurs sÚmantiques
    Anyone, an idea ?
    Thank you.

  • Problem in loading "SYSDATE" through the sql loader

    Hi experts,
    I have problems in inserting the sysdate while loading the data from the flatfile. The details of the control file is as follows:
    OPTIONS (ERRORS=100, SILENT=(FEEDBACK))
    LOAD DATA
    INFILE 'c:\sample.dat'
    APPEND
    INTO TABLE RTD_TMO_MODEL_SCORES_BI
    FIELDS TERMINATED BY ','
    --OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    (RECORD_ID "SQ_RTD_TMO_MODEL_SCORES_BI.NEXTVAL",
    MODEL_ID,
    BAN,
    MISDN,
    INSERT_DT date "SYSDATE",
    SCORING_JOB_ID,
    SCORE_ENTITY_ID,
    MODEL_SCORE_DECIMAL,
    MODEL_SCORE_INTEGER,
    MODEL_SCORE_CHAR,
    ANCHOR_DT date "YYYYMMDD",
    RUN_DT date "YYYYMMDD")
    The data values for columns RECORD_ID and INSERT_DT are not present in the data file. The first one is planned to insert with the sequence created in database. While the second one is inserted based on the SYSDATE function of the database.
    Please guide me how to specify so that I can insert the sysdate for the INSERT_DT column.
    Thanks in Advance
    Venkat

    Instead of this
    INSERT_DT date "SYSDATE",
    Try this
    INSERT_DT SYSDATE,

  • Oracle 11G Install on Win 7 With PL/SQL Developer Help Needed

    Today is my first day with Oracle. I have tried to Install Ora11g from our network drive.I think the installation went fine. I also installated PL/SQL Developer when i try to log in i got the following error see below.
    PL/SQL Developer - (Not logged on)
    Initialization error
    SQL*Net not properly installed
    OracleHomeKey: SOFTWARE\ORACLE
    OracleHomeDir:
    OK
    After i did some research online i found this solution "go to Tools > Preferences > options set manually "Oracle Home" to the folder of ORACLE_HOME and "OCI Library" to the oci.dll file located in ORACLE_HOME/bin/oci.dll"
    C:\app\user\product\11.2.0\client_1\bin.dll <=== I believe this is my Oracle_Home
    C:\app\user\product\11.2.0\client_1\bin\oci.dll <==== Is my OCI Library.
    When i apply thse 2 paths i get the following error.
    Initialization error
    COuld not load " C:\app\user\product\11.2.0\client_1\bin.dll
    OCIDLL forced to C:\app\user\product\11.2.0\client_1\bin.dll
    LoadLibrary(C:\app\user\product\11.2.0\client_1\bin\.dll)returned 0
    Can someone help me with this ???????????????/

    Pl indicate which version of Win 7 - you will need Professional or higher - Home versions are not supported/certified, so things may or may not work as expected.
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/reqs.htm#CHDHGGFE
    HTH
    Srini

  • How can i get the SQL of a tablespace from the database

    Hello All,
    I am using Oracle 11g R2. I want to get the SQL of some tablespaces on my database. in the same way i get the DDL of the table using the GET_DDL function.
    How can i get that ?
    Regards,

    try this please
    select dbms_metadata.get_ddl('TABLESPACE',tb.tablespace_name) from dba_tablespaces tb;or
    select 'create tablespace ' || df.tablespace_name || chr(10)
    || ' datafile ''' || df.file_name || ''' size ' || df.bytes
    || decode(autoextensible,'N',null, chr(10) || ' autoextend on maxsize '
    || maxbytes)
    || chr(10)
    || 'default storage ( initial ' || initial_extent
    || decode (next_extent, null, null, ' next ' || next_extent )
    || ' minextents ' || min_extents
    || ' maxextents ' ||  decode(max_extents,'2147483645','unlimited',max_extents)
    || ') ;'
    from dba_data_files df, dba_tablespaces t
    where df.tablespace_name=t.tablespace_name Edited by: Mahir M. Quluzade on Mar 14, 2011 4:51 PM

  • Uninstallation problem in oracle 11g

    i have uninstall ed oracle 11g from my computer but still the folder app exists when i delete the folder it is giving me message that cannot delete oci.dll file
    Access Denied Make sure disk is not full, or write - protected and that file is not currently in use
    iam not understanding what is actually happening
    please somebody help

    uninstallation problem in oracle 11g
    Please refrain from posting in multiple forums like this. It's tantamount to abuse of the forums.
    Please mark this thread as answered and continue on in your other thread, where this question belongs.

  • Oracle 11g install problem on rhel 4.4

    i was trying to install oracle 11g to rhel 4.4
    during the install process , there are two warning when runing environment check
    one is kernal parameter
    i set four kernal parameter like this:
    net.core.rmem_default = 262144
    net.core.rmem_max = 262144
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144
    but oracle warning me they should be set as 419430
    the other is swap space :
    i set 2G,but oracle needs 4G.
    i neglect them and continue
    but when the install proceed 11percent , it stoped there and the i pose the install log is :
    INFO: Method 'dispose()' Not implemented in class 'CustomConfigurationOptions'
    INFO: config-context initialized
    INFO: *** Install Page***
    INFO: FastCopy : File Version is Compatible
    INFO: Install mode is fastcopy mode for component 'oracle.server' with Install type 'Custom'.
    INFO: Link phase has been specified as needed
    INFO: Setup phase has been specified as needed
    INFO: HomeSetup JRE files in Scratch :0
    INFO: Setting variable 'ROOTSH_LOCATION' to '/home/oracle/ora11/DB10g/root.sh'. Received the value from a code block.
    INFO: Setting variable 'ROOTSH_LOCATION' to '/home/oracle/ora11/DB10g/root.sh'. Received the value from a code block.
    INFO: Performing fastcopy operations based on the information in the file 'racfiles.jar'.
    INFO: Performing fastcopy operations based on the information in the file 'oracle.server_Custom_exp_1.xml'.
    INFO: Performing fastcopy operations based on the information in the file 'oracle.server_Custom_dirs.lst'.
    INFO: Performing fastcopy operations based on the information in the file 'oracle.server_Custom_filemap.jar'.
    INFO: Performing fastcopy operations based on the information in the file 'oracle.server_Custom_1.xml'.
    INFO: Performing fastcopy operations based on the information in the file 'setperms1.sh'.
    INFO: Number of threads for fast copy :1
    INFO: FastCopy : The component info is ignored :oracle.network.cman:11.1.0.6.0
    INFO: FastCopy : The component info is ignored :oracle.precomp.lang:11.1.0.6.0
    INFO: FastCopy : The component info is ignored :oracle.odbc:11.1.0.6.0
    INFO: FastCopy : The component info is ignored :oracle.rdbms.dv:11.1.0.6.0
    INFO: FastCopy : The component info is ignored :oracle.rdbms.lbac:11.1.0.6.0
    INFO: FastCopy : The component info is ignored :oracle.rdbms.dv.oc4j:11.1.0.6.0
    INFO: FastCopy : The component info is ignored :oracle.odbc.ic:11.1.0.6.0
    INFO: FastCopy : The component info is ignored :oracle.sysman.ccr:10.2.6.0.0
    i do not know how to make it work ,please help me
    thank you!

    This is the output from my current 11g installation on an OEL4:
    Checking operating system package requirements ...
    Checking for make-3.80; found make-1:3.80-6.EL4-i386. Passed
    Checking for binutils-2.15.92.0.2; found binutils-2.15.92.0.2-21-i386. Passed
    Checking for gcc-3.4.5; found gcc-3.4.6-3.1-i386. Passed
    Checking for libaio-0.3.105; found libaio-0.3.105-2-i386. Passed
    Checking for libaio-devel-0.3.105; found libaio-devel-0.3.105-2-i386. Passed
    Checking for libstdc++-3.4.5; found libstdc++-3.4.6-3.1-i386. Passed
    Checking for elfutils-libelf-devel-0.97; found elfutils-libelf-devel-0.97.1-3-i386. Passed
    Checking for sysstat-5.0.5; found sysstat-5.0.5-11.rhel4-i386. Passed
    Checking for libgcc-3.4.5; found libgcc-3.4.6-3.1-i386. Passed
    Checking for libstdc++-devel-3.4.5; found libstdc++-devel-3.4.6-3.1-i386. Passed
    Checking for unixODBC-2.2.11; found unixODBC-2.2.11-1.RHEL4.1-i386. Passed
    Checking for unixODBC-devel-2.2.11; found unixODBC-devel-2.2.11-1.RHEL4.1-i386.
    ~ Madrid

Maybe you are looking for

  • BT saying I'm not eligible for fibre

    Evening all, I'm having a nightmare trying to set up internet, phone and TV at a house I'm about to move into. I'm specifcally after the Entertainment Plus TV package + infintity 1. However when I try and order this online it comes back and tells me

  • Search a value in one field contained in different tables

    In my database, a field name is used in more than one table. For example, the field 'ITEMCODE' is available in TABLE1, TABLE2, TABLE3, etc... Can anyone please suggest a query to search a particular value in this field in all tables ? Thanks for your

  • Acrobat X recognizes text in PDF while Acrobat XI does not

    At my work I receive weekly bookmarked PDFs that are a mix of pages, some with renderable text and some just scans, which I run the "recognize text" feature of Acrobat Pro on to OCR and properly rotate the scanned pages so they can be marked up. I re

  • How to add a selection criterion to a SQ01 query based on logical database SDF?

    Hi, How should I add a selection criterion to a SQ01 query based on the logical database SDF? Is it possible through additional code? How to make use of the custom selection fields? I need a selection criterion based on BKPF-CPUDT (creation date). Th

  • How do I change my uverse password

    Hello ladyholmesJust checking up on your post. The steps that paulgarcia posted is good information to help change the Wi-Fi password. However, I was able to locate your U-verse account and I see that the type of gateway//modem you have is the Motoro