What is the equavalent of  "oerr -ORA   #####"  in DB6?

Hi!
In Oracle , any Oracle error is linked to a code like ORA-12345 or SQL-12345.
We can therefore use command
oerr -ORA 12345
or
oerr -SQL 12345
to get the long text and quick fix for this error.
What is the equavalent of above command in DB6?
Thanks!

hi,
the db2 equivalent is the command
db2 "? SQL####"  (for example 'db2 "? SQL0911"').
regards, frank

Similar Messages

  • Hi There, Any one can tell me what is the location for initSID.ora in Apps

    Hi There,
    I've to perform some task with initSid.ora can any one help me with the location.
    Thanks
    Bachan

    I got the location and file also.
    But the problem starts now.
    When i'm sending launch Pick release in OM concurent manager throw a error status.
    And the log file is as bellow.
    "+---------------------------------------------------------------------------+
    Shipping Execution: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    WSHPSGL module: Pick Selection List Generation
    +---------------------------------------------------------------------------+
    Current system time is 04-APR-2007 16:13:03
    +---------------------------------------------------------------------------+
    **Starts**04-APR-2007 16:13:04
    ORACLE error 20100 in FDPSTP
    Cause: FDPSTP failed due to ORA-20100: File o0042035.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log.
    ORA-06512: at "APPS.FND_FILE", line 396
    ORA-06512
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Exceptions posted by this request:
    Concurrent Request for "Pick Selection List Generation" has completed with error.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 04-APR-2007 16:13:07
    +---------------------------------------------------------------------------+"
    And for this i've i got some solution from metalink,
    i.e as follows
    "Note:392635.1" Just See that.
    in this i want to perform activity like
    1- change the UTL_FILE_DIR to have in front the same value like $APPLPTMP,
    ex: /usr/tmp
    you need to change it in initSID.ora and reboot the database after
    2- grant all user read/write permissions over that directory:
    chmod 777 /usr/tmp
    As I've win-XP there is no need to set permission.
    and now i'm Confused.
    What to do?
    Please help.

  • What are the "Shared Cursor (KKS) errors" = ORA-44201 - 44300

    Hi,
    Does anybody know what are the "Shared Cursor (KKS) errors" supposed to raise Oracle errors ORA-44201 till 44300?
    I am currently facing an 'ORA-44201: cursor needs to be reparsed' using Oracle DB EE 10.2.0.3!
    The 11g documentation is mentioning: "Action: Investigate possible causes of resource contention."
    Many Thanks in advance,
    Sébastien
    Brussels, Belgium

    Hi Rob,
    For sure, the error message generated by our 10.2.0.3 db is ORA-44201: cursor needs to be reparsed.
    I have posted a thread in Database - General:
    The environment: OS: Solaris 10 / DB: 10.2.0.3 / OWB: 10.2.0.2 / Workflow: 2.6.4
    I am facing this ORA-44201 when calling a function developed to create a materialized view on a prebuilt table:
    FUNCTION mv_create (p_mv_name IN VARCHAR2)
    RETURN NUMBER
    IS
    v_query VARCHAR2 (4000);
    v_active NUMBER;
    BEGIN
    SELECT mv_query, mv_active
    INTO v_query, v_active
    FROM mtd_materialized_view
    WHERE mv_name = p_mv_name;
    IF (v_active = 1)
    THEN
    EXECUTE IMMEDIATE 'CREATE MATERIALIZED VIEW '
    || p_mv_name
    || ' '
    || 'ON PREBUILT TABLE '
    || 'WITH REDUCED PRECISION '
    || 'ENABLE QUERY REWRITE AS '
    || v_query;
    END IF;
    RETURN 1;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    raise_application_error (-20250,
    'Create materialized view '
    || p_mv_name
    || ' failed: not found in metadata'
    RETURN 3;
    WHEN OTHERS
    THEN
    raise_application_error (-20251,
    'Create materialized view '
    || p_mv_name
    || ' failed unexpectedly: '
    || SQLERRM
    RETURN 3;
    END mv_create;
    -- End of mv_create function
    The error message:
    ORA-20251: Create materialized view MV_IA_COMN_MTLY failed unexpectedly:
    ORA-44201: cursor needs to be reparsed
    ORA-06512: at "CIS_DWH_FCT.CIS_L_FCT_XCH", line 507
    ORA-06512: at line 1
    I am totally blocked and need your help!!!
    Many Thanks in advance,
    Sébastien
    Brussels, Belgium

  • What caused the err ORA-12547 ?

    when i logged in sqlplus,
    i type this:
    SQL>connect internal
    then
    ERROR:
    ORA-12547: TNS: lost contact
    what caused the error?
    sorry for my poor English.

    Hi there,
    I guess you have not started your listener.
    Regards
    Sim kw

  • What is the quickest way to query the init.ora?

    What is the quickest way to query the init.ora?

    Use SHOW PARAMETER at the sql plus prompt.
    SQL> show parameter undo
    NAME                                 TYPE        VALUE
    undo_management                      string      AUTO
    undo_retention                       integer     7200
    undo_suppress_errors                 boolean     FALSE
    undo_tablespace                      string      rollback01
    SQL>

  • What's the value of GLOBAL_DBNAME in the listener.ora ?

    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>
    SQL>
    SQL> show parameter db_name
    NAME                         TYPE      VALUE
    db_name                      string    Oracle11
    SQL> show parameter service_names
    NAME                         TYPE      VALUE
    service_names                        string      primary
    SQL>
    SQL>
    SQL> ho
    [oracle@primary admin]$
    [oracle@primary admin]$ cat listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = primary)                        ================> Note Here , i asked this parameter .
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
          (SID_NAME = primary)
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.178)(PORT = 1525))
    ADR_BASE_LISTENER = /u01/app/oracle
    [oracle@primary admin]$
    [oracle@primary admin]$
    [oracle@primary admin]$ exit
    exit
    SQL> in my option , i think the value of GLOBAL_DBNAME equal to the value of DB_NAME . But it's wrong , the remote client can't connect the database .
    when its value equal to the value of SERVICE_NAMES , the remote client can connect the database .
    what's the value of GLOBAL_DBNAME in the listener.ora ?

    GLOBAL_DBNAME     The global database name is a concatentation of a domain and a database name. The GLOBAL_DBNAME is the same as SERVICE_NAMES parameter in the parameter file or a concatentation of the DB_DOMAIN and the DB_NAME parameters in the parameter file. For example, <SID>.xyz.com. Do not set the GLOBAL_DBNAME parameter in the listener.ora file when using failover / TAF or when using multiple listeners or Oracle Parallel Server. Setting the GLOBAL_DBNAME parameter under these circumstances will disable failover and TAF.from: http://oracledba.ezpowell.com/oracle/net8Listener.html

  • What is the cause of the ORA-00942?

    I have two test benches. In the first a complex setup routine works fine inclusive the creation of views and tables. There is no error. But it fails in the second test bench and I get the failure message, that a table or view is missing. But which table or view? How can I find out the concrete missing database object?
    What can be a reason for the different behavior. In both cases there is only one database user (no schema conflicts) but the test bench which fails works with Oracle 10, the other with version 11.

    You have not given us any relevant information. What "routine", an export/import, some other job? What's the database version exactly?
    Aman....

  • What is the use of 'ALTER DATABASE CLOSE'?

    Hello Everybody,
    SQL*Plus: Release 10.1.0.2.0 - Production on Ma Aug 15 21:28:30 2005
    Copyright © 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> conn / as sysdba
    Connected.
    SQL> startup force
    ORACLE instance started.
    Total System Global Area 171966464 bytes
    Fixed Size 787988 bytes
    Variable Size 145750508 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> select status from v$instance;
    STATUS
    OPEN
    SQL> alter database close;
    Database altered.
    SQL> select status from v$instance;
    STATUS
    MOUNTED
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-16196: database has been previously opened and closed
    If i have to shutdown the instance and database then
    WHAT IS THE USE OF 'ALTER DATABASE CLOSE' ?
    I need explanation. Why should i shutdown?
    Dont give me this answer.
    ORA-16196: database has been previously opened and closed
    Cause: The instance has already opened and closed the database, which is allowed only once in its lifetime.
    Action: Shut down the instance.

    If you read the documentation you will see that there is no ALTER DATABASE CLOSE command.
    This is an undocumented Oracle command, which we are not supposed to use. Consequently we are not allowed to complain about the way that it works. Instead we're supposed to use SHUTDOWN IMMEDIATE.
    Cheers, APC

  • How can I determine what is the minimum SCN number I need to restore up to.

    Say if I have a full database backup, I know I have file inconsistency, but I want to know what is the minimum time or SCN number a need to roll forward to in order to be able to open the database?
    For example: I do a database restore.
    restore database ;
    RMAN> sql 'alter database open read only';
    sql statement: alter database open read only
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 03/16/2009 15:00:04
    RMAN-11003: failure during parse/execution of SQL statement: alter database open read only
    ORA-16004: backup database requires recovery
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
    I need need to apply archive log files. All references I find for ORA-00194 state the solution is to "apply more logs until the file is consistent " But "HOW MANY LOGS", or more apporaite up to what time or SCN? How does one determine what TIME or SCN is required to get all file consistent?
    I thought this query might provide the answer, but it doesn't
    select max(checkpoint_change#)
    from v$datafile_header
    MAX(CHECKPOINT_CHANGE#)
    7985876903
    --It applies a bit more redo, but not enough to make my datafiles consistent.
    recover database until SCN=7985876903 ;
    Starting recover at 03/16/09 15:04:54
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    using channel ORA_DISK_3
    using channel ORA_DISK_4
    using channel ORA_DISK_5
    using channel ORA_DISK_6
    using channel ORA_DISK_7
    using channel ORA_DISK_8
    starting media recovery
    channel ORA_DISK_1: starting archive log restore to default destination
    channel ORA_DISK_1: restoring archive log
    archive log thread=1 sequence=18436
    channel ORA_DISK_1: reading from backup piece /temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1 tag=TAG20090315T041716
    channel ORA_DISK_1: restore complete, elapsed time: 00:02:26
    archive log filename=/u01/app/oracle/flash_recovery_area/P1/archivelog/2009_03_16/o1_mf_1_18436_4vxd81yc_.arc thread=1 se quence=18436
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
    I've discover I need to apply archive logs until this query reports all datafiles as FUZZY=NO , but this only works by guessing at some time periord to roll forward to, then checking the FUZZY column, and try again. Is there a way to know, I have to roll forward to a specific SNC in order for all my datafiles to be consistent?
    select file#
         , status
         , checkpoint_change#
         , checkpoint_time
         , FUZZY
         , RECOVER
    ,LAST_DEALLOC_SCN
    from v$datafile_header
    order by checkpoint_time
    Thanks,
    Jason

    The minimum point in time is the time when the last backup piece for datafiles in that backup was completed.
    Your alert.log should show the redo log sequence number at that time.
    You can query V$ARCHIVED_LOG and get the FIRST_CHANGE# of the first archivedlog generated after that backup piece completed.
    A
    LIST BACKUP;in RMAN should also show you the SCNs at the time of the backups.
    You can also query SCN_TO_TIMESTAMP -- eg
    select timestamp_to_scn(to_timestamp('15-MAR-09 09:24:01','DD-MON-RR HH24:MI:SS')) from dual;will return an approximation of the SCN.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Mar 17, 2009 9:41 AM
    added the LIST BACKUP command from RMAN.

  • What is the correct syntax for using a variable in an ad hoc query?

    Hi all
    I am an occasional DB user and at the moment need to update about 1000+ records so that a certain column gets a unique value.
    So I thought that I would use a variable for this.
    I then built this kind of SQL statement for just a small subset of the records:
    variable recNumber number;
    exec :recNumber := 1;
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD + recNumber
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
    I get the invalid SQL statement error when attempting to execute above (besides the prompt that asks for a value which I would like to omit).
    Anyway I also tried this one:
    CREATE SEQUENCE seqCounter;
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD + seqCounter.NEXTVAL
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
    From this one I got the error ORA-01722: invalid number...I am guessing this comes because seqCounter is of type number and the COL_TO_BE_UPD is of type character...(?)
    So what I would like to ask is what is the correct way to define and use a counter type of variable to append a number at the end of a character string?
    Also another question that I would like to ask is that are variables that are used in ad hoc queries also called 'bind variables'?
    Thanks muchly

    If you want to append a unique number to a column then this would do it:
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD ||to_char(rownum)
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');

  • What is the wrong in this PL/SQL  block

    Hi a...
    Can you please tell what is the wrong in this pl/sql block.
    declare
    TYPE TYP_NT_NUM IS TABLE OF NUMBER ;
    v_tab TYP_NT_NUM := TYP_NT_NUM();
    TYPE uname is VARRAY(30) of varchar2(100) ;
    usr uname := uname ( 'u1','u2','u3','u4' );
    TYPE pwd is VARRAY(30) of varchar2(100) ;
    psw pwd := pwd('p1','p2','p3','p4');
    x number(10):=0;
    Cursor fcid IS Select distinct FC_ID From FCMASTER ;
    Begin
    Open fcid ;
    --for ii in usr.first .. usr.last loop
         Loop
              Fetch fcid Into x ;
              Exit When fcid%NOTFOUND ;
              v_tab(fcid%ROWCOUNT) := x ;
         End loop ;
         For iii IN v_tab.FIRST .. v_tab.LAST Loop
              dbms_output.put_line(v_tab(iii).FC_ID) ;
              End loop ;
    End loop; End of outer loop
    End;
    The error is
    Error
    [row:28,col:36] ORA-06550: line 28, column 36:
    PLS-00487: Invalid reference to variable 'NUMBER'
    ORA-06550: line 28, column 4:
    PL/SQL: Statement ignored
    Thanks in advance,
    Pal

    v_tab(iii).FC_ID
    declare
      type typ_nt_num is table of number;
      v_tab typ_nt_num;
    begin
      select distinct object_id bulk collect into v_tab from all_objects where rownum <= 10;
      for i in 1 .. v_tab.count loop
        dbms_output.put_line(v_tab(i)) ;
      end loop ;
    end;
    /

  • SOA 10g: What is the purpose of the sync_trail and sync_store tables?

    Hello,
    We have a 10.1.3.3.1 MLR 19 environment and we're having a production problem where were seeing the following error msgs. When this has happened, it causes the affected server to fail and need to be recycled.
    ====================================================================================
    11/02/07 11:51:12 0 - ORABPEL-04040
    Cannot update lob column.
    The process domain was unable to update the lob column "5" in the datastore. The exception reported is: ORA-22990: LOB locators cannot span transactions
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: BEGIN INSERT INTO sync_store( cikey, domain_ref, bin_csize, bin_usize, bin ) VALUES ( ?, ?, ?, ?, '0' ) RETURNING bin INTO ?; END;
    11/02/07 13:06:15 0 - ORABPEL-04040
    Cannot update lob column.
    The process domain was unable to update the lob column "5" in the datastore. The exception reported is: ORA-22990: LOB locators cannot span transactions
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: BEGIN INSERT INTO sync_trail( cikey, domain_ref, bin_csize, bin_usize, bin ) VALUES ( ?, ?, ?, ?, '0' ) RETURNING bin INTO ?; END;
    ====================================================================================
    We have dozens of synchronous projects but only two of them are writing records to these tables. What makes a sync bpel project write to these tables and what is there purpose? I've seen them listed in various purge scripts so I have to assume they support audit trails or something similar.
    Thanks in Advance.

    I have an update. The two projects use the "inMemoryOptimization" property and that's the cause of the writing to the db. Why would this property trigger a write to the db when the purpose of the property is to do all processing in memory?

  • 10g: what is the purpose of sync_trail and sync_store?

    Hello,
    We have a 10.1.3.3.1 MLR 19 environment and we're having a production problem where were seeing the following error msgs. When this has happened, it causes the affected server to fail and need to be recycled.
    ====================================================================================
    11/02/07 11:51:12 0 - ORABPEL-04040
    Cannot update lob column.
    The process domain was unable to update the lob column "5" in the datastore. The exception reported is: ORA-22990: LOB locators cannot span transactions
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: BEGIN INSERT INTO sync_store( cikey, domain_ref, bin_csize, bin_usize, bin ) VALUES ( ?, ?, ?, ?, '0' ) RETURNING bin INTO ?; END;
    11/02/07 13:06:15 0 - ORABPEL-04040
    Cannot update lob column.
    The process domain was unable to update the lob column "5" in the datastore. The exception reported is: ORA-22990: LOB locators cannot span transactions
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: BEGIN INSERT INTO sync_trail( cikey, domain_ref, bin_csize, bin_usize, bin ) VALUES ( ?, ?, ?, ?, '0' ) RETURNING bin INTO ?; END;
    ====================================================================================
    We have dozens of synchronous projects but only two of them are writing records to these tables. What makes a sync bpel project write to these tables and what is there purpose? I've seen them listed in various purge scripts so I have to assume they support audit trails or something similar.
    Thanks in Advance.

    I have an update. The two projects use the "inMemoryOptimization" property and that's the cause of the writing to the db. Why would this property trigger a write to the db when the purpose of the property is to do all processing in memory?

  • What are the ODBC connect details for the HR sample database?

    I have installed Oracle Express on Ubuntu 8.10 and read the Getting Started tutorials. Everything worked fine.
    THE DSN
    I need to connect via ODBC, to start with to the HR sample database on my PC.
    The Getting Started tutorial says the userid and password are both hr, but what is the data source name (dsn) to be used with the SQLConnect?
    THE INIs
    The ini files below are the result of googling, not of any insight on my part.
    /etc/odbcinst.ini
    [OracleExpressdrv]
    Driver = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libsqora.so.10.1
    Description = Oracle 10g express driver
    /etc/odbc.ini
    [hrdsn]
    Driver = OracleExpressdrv
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    DSN = TestDSN
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    # ServerName is TNS_alias_from_tnsnames.ora
    ServerName = OraDB
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    UserID = ken
    THE ENVIRONMENT
    Before running my odbc test program I issued
    LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib;export LD_LIBRARY_PATH
    and checked via env command that the ldlibpath actually had been set correctly.
    After SQLConnect received the following error:
    Usage error: SQLConnect: dsn=hrdsn, user=hr, password=hr <<< output by my test program
    1: st=IM002, nerr=0, msg=
    [unixODBC][Driver Manager]Data source name not found, and no default driver specified
    The first part of the error message hints at there being something wrong with dsn=hrdsn. I don't understand the second part 'and no default driver specified'.
    I am totally stuck. Advice would be most appreciated.

    Oracle® Database Express Edition Installation Guide for Linux talks about Compiling the Oracle ODBC Driver Demos. It tells you to download and install the unixODBC DriverManager from unixODBC. On Ubuntu this is already preinstalled and/or available via the Synaptic Manager. It also instructs you to run a makefile demo_xe.mk to build an odbcdemo program. The makefile did not work for me (hundreds of compilation errors), but I looked at the odbcdemo.c code and could see that dsn=TESTDBDSN for user=hr and password=hr. In other words, by luck the demo program seems to be connecting to the HR sample database.
    I changed the /etc/odbc.ini file to:
    [TestDBDSN]
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    Driver = OracleExpressdrv
    DSN = TestDBDSN
    and also in my test program which now produced the following error:
    Usage error: SQLConnect: dsn=TestDBDSN, user=hr, password=hr
    1: st=IM004, nerr=0, msg=
    [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
    which shows that the unixODBC driver manager has loaded the driver and that the driver immediately encountered problems.
    The sql calls issued before the SQLConnect("TestDBDSN", "hr" , "hr") were OK, i.e. these:
    rc0 = SQLAllocHandle ( SQL_HANDLE_ENV , SQL_NULL_HANDLE , &henv ) ;
    rc = SQLSetEnvAttr ( henv, SQL_ATTR_ODBC_VERSION , *)SQL_OV_ODBC3 , 0 ) ;
    rc = SQLAllocHandle ( SQL_HANDLE_DBC , henv , &hdbc ) ;
    SQLSetConnectAttr ( hdbc , SQL_LOGIN_TIMEOUT , (void*)5 , 0 ) ;
    However, the error appears after SQLConnect and yet the rc0 was reported as OK.
    The error message 'Driver's SQLAllocHandle on SQL_HANDLE_HENV failed' is totally unhelpful to me as a user since I don't know the conditions that lead to failure. I really think this calls for some documentation. Such documentation should be complete, self-contained and correct and give ALL OPERATIONAL steps, i.e. I want to know exactly what I have to do. Ambiguous English often referring to undefined terms is not what Oracle beginners like myself want.
    I don't know if this is a bug. It is so fundamental that Oracle ODBC driver writers could/should not have got it wrong. The connect does not even start.
    I have googled for hours, but every lead has failed.
    I don't want to give up on this. What can I do?

  • What's the difference between redundancy and recovery window for retention?

    Hello all,
    I'm still trying to get a grip on this concept for RMAN backup planning.
    I recently ran into a situation as follows.
    I have the backups set to a redundancy of 1.
    I have instance1, which had GRID jobs to run RMAN backups as follows
    Incremental database level=0 weekly at Wed at 2:30am
    I have daily backups, incremental level=1 each evening
    I have archive log backups through the day.
    What happened, was that apparently on a Tues some time, the development team deleted data from almost every table in their schema.
    The didn't discover this till midday or so on Wednesday.
    I went to try to restore...and RMAN couldn't do it. I had found a SCN for early the Tues they did it...but I got the following error:
    RMAN> RUN
    2> {
    3> SET UNTIL SCN 4590383198282;
    4> RESTORE DATABASE;
    5> RECOVER DATABASE;
    6> }
    executing command: SET until clause
    Starting restore at 28-APR-10
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID=639 device type=SBT_TAPE
    channel ORA_SBT_TAPE_1: NMO v4.5.0.0
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=638 device type=DISK
    creating datafile file number=1 name=+DATADG/instance1/datafile/system.284.697137287
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 04/28/2010 15:53:00
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: '+DATADG/instance1/datafile/system.284.697137287'
    From what research I did...it appears that since I did not have a level=0 incremental from before, it could not reset the database back in time. The previous one had been deleted since, I guess I had a redundancy of 1.
    So, I thought I had a week backup they way I have it set..but that assumes that errors are found pretty quickly before the next level=0 backup.
    I want at least 1 to 1.5 weeks worth of backups. I do have the problem that we do not have many tapes in rotation, so I cannot go for too long...may 2x weeks tops.
    I'm trying to rethink my strategy, but I'm confused as I read as to the difference between setting RMAN retention with redundancy vs recovery window.
    Can someone give me an explanation how you understand it? I'm reading on the web and in oracle books, and for some reason, it just isn't clear to me what is the best way to go....especially when I see that redundancy and recovery window might both be set??
    Thank you in advance,
    cayenne

    Dear Cayenne
    AFAIK RMAN doesn't claim that "you haven't enough backup". Please read the error you got carefully
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: '+DATADG/instance1/datafile/system.284.697137287'
    and check the following link:
    ORA-01180: Cannot create datafile 1 when doing RMAN restore onto 2nd server
    Moreover, could you please use LIST BACKUP command and see whether you have enough backups?
    Read "Redundancy Based Backup Retention Policy" from the following link:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/strategy003.htm#sthref139

Maybe you are looking for

  • How do I request a service for my phone? (SGS5)

    Since I've gotten my phone in the beginning of May, I've been trying to figure out how to schedule text messages from the default application "Messages." I've found out that a lot of people that have Verizon do not know about this feature and it's ki

  • How to make Spry Collapsible Panels open one at a time?

    Hello, I am using CS5 and want to use the spry collapsible panels. What I notice (and I think this wasn't the case in cs3) is that all panels can be open at the same time. I don't want that happen. I only want one panel to be open at a time. If someo

  • DateTime class in a webservice. please help

    Hi All. I can't figure out wich class type to use to publish a dateTime in a webservice. I have an ejb 3.0 entity bean generated with the jdeveloper wizard mapped to a Oracle 9i table. This table have some DateTime field, wich generates properties of

  • Nokia n 70 contact retailer

    my nokia n 70 mobile displayed phone start up failed conatact the retailer ...please help me

  • Organize as "managed" or "referenced"?

    I am an aperture newbie. I have 78 gb pictures "organized" in approx 50 folders stored in "Pictures" folder on my new 300 gb iMac harddrive. I have a 320 gb external drive that I manually backup using TM. I would like to be able to do 2 things: find