ORA-1502

Hi all,
I got the following error plz resolve it
ORA-01502 INDEX 'pk_tbl_cdt_lat' or partition of such index is in unusable state
plz help me
Regards ...

Hi,
Every mid-night my application is rebuild all indexes , that time my tables is working fine, after 10 hours the error ORA-1502 index problem encounted this every day happend last two month's . plz help me how to resolve the problem.
Regards ....

Similar Messages

  • ORA-1502 while skip_unusable_indexes=true

    OWB 9.2
    We have one mapping that fills the target table in 2 stages:
    in the first stage the table is filled with INSERT /*+ APPEND */ from several source tables;
    the target table operator is then used as one of the source tables for the next INSERT /*+ APPEND */ into this target table itself.
    OWB generates 2 set based INSERT statement for this mapping. The second INSERT (that also reads the target table) aborts with ORA-1502 (one of the indexes of the target table unusable). This is true, but in a premapping operator a ALTER SESSION SET SKIP_UNUSABLE_INDEXES=TRUE is issued.
    Why does this error occur anyway? And why not in the first INSERT then?
    Jaap.

    This is an expected behaviour when you have a unique key. Updating a column with an unusable unique index could cause database integrity issues.
    Take a look at Bug Nº 589199, Note:281329.1 and Note:111494.1 in Metalink.
    I don't really think this is a Bug, it's database expected behaviour.
    "A workaround is to use a hint in the SQL statement which causes the
    optimizer not to select a plan which uses an unavailable index, or
    to drop and recreate the index."
    I believe that's what you should look for.
    Regards,
    Marcos

  • Sql -loader and indexes

    Hi
    I'm working with sql-loader in Oracle8. I'm loading a table with one index, ¿can i have any problem with that index?, problems of unusable index or something similar
    Thanks in advance

    If an index is in a direct mode state, it usually means that a direct path sqlload (sqlldr) was run against the underlying table,
    and the indexes were defined at the time of the load.
    If the indexes were left in a direct load state, it means the direct path load failed while re-creating/merging the indexes.
    Any attempt to use such an index will result in ORA-1502:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96525/e1500.htm#1000531

  • INDEX GETTING UNUSABLE

    Hello everybody,
    I'm using Oracle 9i and I'm getting below error when I execute a anonymous block which runs through the cursor and updates the table.
    ORA-01502: index 'ASAP.PK_STATUS_NO' or partition of such index is in unusable state
    select query on the same table is executing fine but seems that update is getting troubled. And the status number column is declared to be primary key
    Can anyone tell me what and where the problem might be ???
    regards,
    Rossy

    From Oracle Metalink Note: 336195.1
    Solution
    There can be multiple causes of for the ORA-1502 ... all are expected behaviour and the index needs to be recreated in to resolve the error
    Causes
    1) The table was loaded using a direct load method (import ... sqlloader ... insert with the APPEND hint ... a direct write from a C program)
    2) An ALTER INDEX ... REBUILD failed and left the index in an unusable state
    3) The problem index was a global index on a partitioned table and an EXCHANGE PARTITION was done
    4) The table was moved to a different location using ALTER TABLE ... MOVE
    5) Per the Application developers guide:
    If alter table command is used to change the underlying data of a column from LONG to CLOB or LONG RAW to BLOB. All indexes must be rebuilt
    Regards, Gerwin
    Edited by: Gerwin Hendriksen on May 29, 2009 11:45 AM

  • ORA-06512: at "DEV3_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY"

    RUNNING XE and Weblogic Server with SOA.
    When starting Weblogic server with SOA components, getting the following error:
    <Jun 26, 2012 10:00:32 AM MDT> <Warning> <oracle.integration.platform.blocks.eve
    nt.saq> <SOA-31013> <Error handling message (rolling back).
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_AQ", line 335
    ORA-06512: at "DEV3_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY", line 14
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.
    java:213)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableSta
    tement.java:1111)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1488)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:3769)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:3954)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStat
    ement.java:9353)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePrepa
    redStatementWrapper.java:1539)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.jav
    a:99)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.read
    OAOODelivery(SAQBusinessEventBus.java:1585)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.hand
    leSingleOAOODelivery(SAQBusinessEventBus.java:858)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.hand
    leQueueEvents(SAQBusinessEventBus.java:731)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.acce
    ss$000(SAQBusinessEventBus.java:90)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.ru
    n(SAQBusinessEventBus.java:372)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    When trying to debug and compile invalid objects I get the following:
    SQL> ED
    Wrote file afiedt.buf
    1* ALTER PACKAGE DBMS_AQADM_SYS COMPILE
    SQL> ALTER PACKAGE DBMS_AQADM_SYS COMPILE
    2 /
    Warning: Package altered with compilation errors.
    SQL> SHOW ERRORS
    No errors.
    SQL> show errors DBMS_AQADM_SYS
    Usage: SHOW ERRORS [{ FUNCTION | PROCEDURE | PACKAGE |
    PACKAGE BODY | TRIGGER | VIEW
    | TYPE | TYPE BODY | DIMENSION
    | JAVA SOURCE | JAVA CLASS } [schema.]name]
    SQL> SHOW ERRORS PACKAGE BODY DBMS_AQADM_SYS
    Errors for PACKAGE BODY DBMS_AQADM_SYS:
    LINE/COL ERROR
    495/5 PL/SQL: SQL Statement ignored
    496/17 PL/SQL: ORA-00942: table or view does not exist
    1316/6 PL/SQL: SQL Statement ignored
    1317/39 PL/SQL: ORA-00942: table or view does not exist
    1389/7 PL/SQL: SQL Statement ignored
    1391/42 PL/SQL: ORA-00942: table or view does not exist
    1468/20 PL/SQL: Item ignored
    1468/20 PLS-00201: identifier 'SYSTEM.AQ$_QUEUES' must be declared
    1471/5 PL/SQL: SQL Statement ignored
    1471/27 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    LINE/COL ERROR
    1471/33 PL/SQL: ORA-00904: : invalid identifier
    1480/5 PL/SQL: SQL Statement ignored
    1480/24 PL/SQL: ORA-00942: table or view does not exist
    1490/6 PL/SQL: SQL Statement ignored
    1492/15 PL/SQL: ORA-00904: "OBJNO": invalid identifier
    1492/15 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    1502/9 PL/SQL: Statement ignored
    1503/13 PLS-00320: the declaration of the type of this expression is

    RUNNING XE and Weblogic Server with SOA.
    When starting Weblogic server with SOA components, getting the following error:
    <Jun 26, 2012 10:00:32 AM MDT> <Warning> <oracle.integration.platform.blocks.eve
    nt.saq> <SOA-31013> <Error handling message (rolling back).
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ORA-06512: at "SYS.DBMS_AQ", line 335
    ORA-06512: at "DEV3_SOAINFRA.EDN_DEQUEUE_OAOO_DELIVERY", line 14
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.
    java:213)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableSta
    tement.java:1111)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1488)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:3769)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStat
    ement.java:3954)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStat
    ement.java:9353)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePrepa
    redStatementWrapper.java:1539)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.jav
    a:99)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.read
    OAOODelivery(SAQBusinessEventBus.java:1585)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.hand
    leSingleOAOODelivery(SAQBusinessEventBus.java:858)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.hand
    leQueueEvents(SAQBusinessEventBus.java:731)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus.acce
    ss$000(SAQBusinessEventBus.java:90)
    at oracle.integration.platform.blocks.event.saq.SAQBusinessEventBus$1.ru
    n(SAQBusinessEventBus.java:372)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:184)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    When trying to debug and compile invalid objects I get the following:
    SQL> ED
    Wrote file afiedt.buf
    1* ALTER PACKAGE DBMS_AQADM_SYS COMPILE
    SQL> ALTER PACKAGE DBMS_AQADM_SYS COMPILE
    2 /
    Warning: Package altered with compilation errors.
    SQL> SHOW ERRORS
    No errors.
    SQL> show errors DBMS_AQADM_SYS
    Usage: SHOW ERRORS [{ FUNCTION | PROCEDURE | PACKAGE |
    PACKAGE BODY | TRIGGER | VIEW
    | TYPE | TYPE BODY | DIMENSION
    | JAVA SOURCE | JAVA CLASS } [schema.]name]
    SQL> SHOW ERRORS PACKAGE BODY DBMS_AQADM_SYS
    Errors for PACKAGE BODY DBMS_AQADM_SYS:
    LINE/COL ERROR
    495/5 PL/SQL: SQL Statement ignored
    496/17 PL/SQL: ORA-00942: table or view does not exist
    1316/6 PL/SQL: SQL Statement ignored
    1317/39 PL/SQL: ORA-00942: table or view does not exist
    1389/7 PL/SQL: SQL Statement ignored
    1391/42 PL/SQL: ORA-00942: table or view does not exist
    1468/20 PL/SQL: Item ignored
    1468/20 PLS-00201: identifier 'SYSTEM.AQ$_QUEUES' must be declared
    1471/5 PL/SQL: SQL Statement ignored
    1471/27 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    LINE/COL ERROR
    1471/33 PL/SQL: ORA-00904: : invalid identifier
    1480/5 PL/SQL: SQL Statement ignored
    1480/24 PL/SQL: ORA-00942: table or view does not exist
    1490/6 PL/SQL: SQL Statement ignored
    1492/15 PL/SQL: ORA-00904: "OBJNO": invalid identifier
    1492/15 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    1502/9 PL/SQL: Statement ignored
    1503/13 PLS-00320: the declaration of the type of this expression is

  • Error 12528, instance BLOCKED, and ORA-01033 error

    I'm a student, just getting started with Oracle, and my teacher is not very helpful with the install/running problems that I'm having with Oracle.
    I installed Oracle 11g Express a week ago, and upon installing it, the software worked just fine. I was able to create connections and write basic select statements to get data from a database provided by the manufacturer of my textbook.
    Now, when I try to connect to the database, I get an error that says "ORA_12528, TNS:listener: all appropriate instances are blocking new connections."
    I did a little research on how to fix this, and got into the listener to see its status. Here's what it says:
    LSNRCTL> status
    Connection to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date 28-MAR_2012 09:45:21
    Uptime 0 days 0 hr. 21 min. 19 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\PC325862970629\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC325862970629)(PORT=1521)
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "xe" has 1 instance(s).
    Instance"xe", status BLOCKED, has 1 handler(s) for this service...
    This command completed successfully
    LSNRCTL>
    I also looked at the Listener Log File (although most of what I saw makes no sense to me, and it was pretty long)... here's what appears to be the last chunk of the log file:
    <msg time='2012-03-28T09:45:23.468-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>Listener completed notification to CRS on start
    </txt>
    </msg>
    <msg time='2012-03-28T09:45:23.484-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    </txt>
    </msg>
    <msg time='2012-03-28T09:46:01.203-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>Dynamic address is already listened on (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC325862970629)(PORT=1521)))
    </txt>
    </msg>
    <msg time='2012-03-28T09:46:01.218-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>28-MAR-2012 09:46:01 * service_register * xe * 0
    </txt>
    </msg>
    <msg time='2012-03-28T09:46:02.796-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>28-MAR-2012 09:46:02 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-03-28T09:49:38.250-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>28-MAR-2012 09:49:38 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=Admin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1047)) * establish * xe * 12528
    </txt>
    </msg>
    <msg time='2012-03-28T09:49:38.750-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>TNS-12528: TNS:listener: all appropriate instances are blocking new connections
    </txt>
    </msg>
    <msg time='2012-03-28T09:56:04.218-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>28-MAR-2012 09:56:04 * service_update * xe * 0
    </txt>
    </msg>
    <msg time='2012-03-28T10:05:35.343-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>28-MAR-2012 10:05:35 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=Admin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1147)) * establish * xe * 12528
    </txt>
    </msg>
    <msg time='2012-03-28T10:05:35.812-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>TNS-12528: TNS:listener: all appropriate instances are blocking new connections
    </txt>
    </msg>
    <msg time='2012-03-28T10:06:40.453-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>28-MAR-2012 10:06:40 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Admin))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647040)) * status * 0
    </txt>
    </msg>
    <msg time='2012-03-28T10:26:03.890-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>28-MAR-2012 10:26:03 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Admin))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647040)) * status * 0
    </txt>
    </msg>
    <msg time='2012-03-28T10:26:14.968-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>28-MAR-2012 10:26:14 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=Admin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1164)) * establish * xe * 12528
    </txt>
    </msg>
    <msg time='2012-03-28T10:26:15.062-07:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='PC325862970629'
    host_addr='10.10.10.10'>
    <txt>TNS-12528: TNS:listener: all appropriate instances are blocking new connections
    </txt>
    </msg>
    After doing more googling, I found someone suggested that logging on to SQL*Plus as sysdba and then shutting down and restarting the database might do something to fix this, but when I try to log in it doesn't work... here's what I see in SQL*Plus:
    SQL> connect / as sysdba
    ERROR:
    ORA-28056: Writing audit records to Windows Event Log failed
    OSD-196787312: Message 196787312 not found; product=RDBMS; facility=SOSD
    O/S-Error: (OS 1502) The event log file is full.
    ORA-01075: you are currently logged on
    SQL> connect
    Enter User0name: sysdba
    Enter password:
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Process ID: 0
    Session ID: 0 Serial number: 0
    SQL>
    I have no idea what's going on here, and unfortunately, since I'm a student and have just started with Oracle, I can't seem to make heads or tails of most of what I'm finding on the forums here (and most of the threads that seem pertinent are 6 or more years old).
    If anyone out there can help me, I'd greatly appreciate it! Thanks in advance!
    --Kate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Srini -
    I did take a look at the link you posted and I tried to do what it said, but I don't really know what to make of what I found. When I run services.msc I find the following are running:
    OracleJobSchedulerXE, OracleMTSRecoveryService, OracleServiceXE, OraclexEClrAgent, and OracleXETNSLisnener
    So it appears that the Oracle Service is running... probably not the problem.
    With regards to the logs, I don't know how to do what you suggested (make the log bigger, allow for overwrites, etc.).
    I tried to follow the suggestions from the link you posted and get into the event viewer, but when I enter "eventviewer" in the run window my machine can't find it. I tried other methods I found online to get into the event viewer, but it appears as though my computer doesn't offer me access to it (or simply doesn't have that capability). Are there other ways to clear old logs? Can I just open it as a text file and delete the contents? I don't want to make a mess out of things, and I really don't know what I'm doing so any guidance would be appreciated.
    Thanks!
    --Kate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • DB ERROR:ORA-01033: ORACLE initialization or shutdown in progress

    Hi
    I want to start oracle 11g database but i am getting this error
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Process ID: 0
    Session ID: 0 Serial number: 0
    note:-my db was working fine but after updating the Windows and restarting the computer i am getting this error
    i followed the previous thread which decribed what to but i am getting below error
    SQL*Plus: Release 11.2.0.2.0 Production on Tue Jan 15 15:10:12 2013
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> connect sys/admin123 as sysdba
    ERROR:
    ORA-28056: Writing audit records to Windows Event Log failed
    OSD-226114008: Message 226114008 not found; product=RDBMS; facility=SOSD
    O/S-Error: (OS 1502) The event log file is full.
    ORA-28056: Writing audit records to Windows Event Log failed
    OSD-226114008: Message 226114008 not found; product=RDBMS; facility=SOSD
    O/S-Error: (OS 1502) The event log file is full.
    SQL> shutdown immediate
    ORA-01012: not logged on
    SQL> startup
    ORA-01012: not logged on
    SQL> shutdown immediate
    ORA-01012: not logged on
    SQL>
    can you please tell me what to do
    thanks in advance
    Edited by: Preetham Medlery on 15-Jan-2013 02:16

    Hi,
    From the error message it is clear that db shutdown is in process. So you have to wait some more time so that shutdown process will be completed, then you can start. If you have no time to wait then you can reboot the machine so that once server restarted you can start your database.
    Regards,
    Kishore

  • PL/SQL report errors: ORA-01422

    Hi all,
    (before i you read i would like to say i have searched the net for this error code but nothing shows up like this problem..)
    I am getting an error problem when i select certain Schemas from a list on an apex app. page, it only works for some schemas not all..
    When i select one schema, it is supposed to display one row.. when i select [ALL] it is supposed to show them all.
    It does work if i select '[ALL]' from the select list (p3_schema_name), just not for every single individual one.
    the error code:
    ORA-01422: exact fetch returns more than requested number of rows
    declare
      vSchema  varchar2(20);
      vStmt  varchar2(1000);
      vVersion number(5);
      vDBName  varchar2(20);
      vHostName varchar2(80);
      vStmt2  varchar2(1000);
      vVersion2 number(5);
      vDBName2  varchar2(20);
      vServer2 varchar2(80);
      vSchema2 varchar2(80);
      CURSOR c_schemas IS
        select owner from dba_tables@P3_DB_NAME.db_link where table_name = 'DDL_LOG' and num_rows > 0 order by owner;
    begin
      IF :P3_SCHEMA_NAME != '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
        vServer2 := :P3_SERVER_NAME;
        vSchema2 := :P3_SCHEMA_NAME;
          vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM';
          Execute Immediate vStmt2 into vDBName2, vVersion2;
            htp.p('<br>');
            htp.p('<table border="1">');
            htp.p('<tr>');
            htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
            htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
            htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
            htp.p('<th bgcolor="#FFCC99">PATCH</th>');
            htp.p('</tr>');
            htp.p('<tr>');
            htp.p('<td>');
            htp.p(vServer2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vDBName2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vSchema2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vVersion2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p('<BR>');
            htp.p('</td>');
            htp.p('</tr>');
            htp.p('</tr>');
            htp.p('</table>');
       ELSE IF :P3_SCHEMA_NAME = '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
       vHostName := :P3_SERVER_NAME;
       vDBName := :P3_DB_NAME;
         open c_schemas;
          htp.p('<br>');
          htp.p('<table border="1">');
          htp.p('<tr>');
          htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
          htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
          htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
          htp.p('<th bgcolor="#FFCC99">PATCH</th>');
          htp.p('</tr>');
        LOOP
          FETCH c_schemas INTO vSchema;
          EXIT WHEN c_schemas%NOTFOUND;
          vStmt  := 'select max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link where DDH_SCHEMA_NR = (select max(DDH_SCHEMA_NR) from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link) and rownum < 2' ;
          Execute Immediate vStmt into vVersion  ;
          htp.p('<tr>');
          htp.p('<td>');
          htp.p(vHostName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vDBName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vSchema);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vVersion);
          htp.p('</td>');
          htp.p('<td>');
          htp.p('<BR>');
          htp.p('</td>');
          htp.p('</tr>');
        END LOOP;
          htp.p('</tr>');
          htp.p('</table>');  
      CLOSE c_schemas;
    END IF;
    END IF;
    END;I have checked the DDH_SCHEMA_NR for repeating entries of the highest number.. some of the ones that dont work do have repeating entries some don't.
    Sorry if this is confusing, i have tried to explain it as best as i can.
    Thanks in advance for any help.
    Ashleigh

    Hello Ashleigh,
    Based on your code, I'd start by running this piece of SQL via command-line (thru SQL Workshop, SQL*Plus, Toad, etc.), replacing &P3_SCHEMA_NAME. and &P3_DB_NAME. with values that are currently causing the routine to fail and see if it returns more than one row. I don't know your data, but DISTINCT and GROUP BY are typically used to return multiple (though grouped/summarized) rows. It appears to be the only statement that would cause the error your seeing (more than one row being returned into single variables).
    select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM;I'm actually surprised that the code runs at all. I didn't think 'execute immediate' would know what to do with substitutions indicated as "&something." (I've typically seen that when substituting in dynamic HTML/Javascript code but maybe I'm learning something new). But since you already have vServer2 and vSchema2, I'd be more apt to code it as:
    vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from ' ||
    vSchema2 || '.ddl_log@' || vServer2 || '.db_link GROUP BY DDH_DB_NM';Hope this helps,
    John

  • Ora-00604 error and ora 01000 error while report generation.

    hi all,
    I am trying to generate the multiple reports of same template through a program.
    While this job is running, i get the following error at the BIP console and the reports don't get generated.
    [101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
    at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    Kindly help.
    Thanks.

    Lots of resources with a simple search to see what this is about, for example:
    http://www.orafaq.com/wiki/ORA-01000
    ORA-01000:     maximum open cursors exceeded
    Cause:     A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
    Action:     Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
    open_cursors parameter
    http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
    Oracle support note:
    OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1)

  • EA2: ORA-01427 clicking on a view in the navigator

    SQLDev: 1.5.0.52.03
    Java: 1.6.0_04
    Oracle: 9.2.0.7.0
    I'm getting the following error when I click on a view in the navigator pane:
    An error was encountered performing the requested operation:
    ORA-01427: single-row subquery returns more than one row 01427. 00000 - "single-row subquery returns more than one row"I'm not seeing any errors in the shell window.
    After clicking on <OK> in the error dialog, the normal tabs (Columns, Data, Grants, Dependencies, Details, SQL) are displayed, but there is no content in the Columns tab.
    All the other tabs seem to function normally.
    Here is the DDL from the SQL tab
    CREATE OR REPLACE VIEW "SUBSCRIPTIONS"
        "ORDER_ID", "SUNBURST_ORDER_ID", "SIEBEL_ORDER_ID", "ACCOUNT_ID",
        "COMP_ID", "SUBACCOUNT_ID", "START_DATE", "END_DATE", "PULL_DATE",
        "SUBSCRIPTION_TYPE", "PRICE_CLASS", "DESCRIPTION", "SEAT_COUNT",
        "ORDER_DURATION", "CALLBACK_INTERVAL", "UPDATE_DATE", "UPDATE_USERNAME",
        "AFFILIATE"
    AS
        SELECT order_id,
            sunburst_order_id,
            siebel_order_id,
            account_id,
            comp_id,
            subaccount_id,
            start_date,
            end_date,
            pull_date,
            product_id,
            price_class,
            product_name,
            add_users,
            order_duration,
            callback_interval,
            last_mdfy_date,
            last_mdfy_emp,
            affiliate
        FROM csbcrossworlds.subscriptions;We have 15 views in this schema, 3 of them fail this way but the other 12 display the columns just fine. So far I am unable to detect any commonality.
    Any ideas?

    Ok, I think I found the problem. The view in question (SUBSCRIPTIONS) is owned by 'PHILC' and it references a table named 'SUBSCRIPTIONS' owned by 'CSBCROSSWORLDS'. There are two other development schemas that also own tables named 'SUBSCRIPTIONS'.
    I believe the 'Columns' tab is executing the query below. The subquery in this SQL tries to identify the primary key columns for the 'SUBSCRIPTIONS' view in my schema (PHILC):
    SELECT
        c.column_name,
        DECODE(
            data_type,
                'CHAR',      data_type||'('||c.data_length||')',
                'VARCHAR',   data_type||'('||c.data_length||')',
                'VARCHAR2',  data_type||'('||c.data_length||')',
                'NCHAR'   ,  data_type||'('||c.data_length||')',
                'NUMBER'  ,  DECODE(c.data_precision,null,'NUMBER', data_type||'('||c.data_precision||','||c.data_SCALE||')'),
                'NVARCHAR',  data_type||'('||c.data_length||')',
                'NVARCHAR2', data_type||'('||c.data_length||')',
                data_type) data_type,
        DECODE(nullable, 'Y', 'Yes', 'No') nullable,
        c.DATA_DEFAULT,
        column_id,
        com.comments,
        (SELECT 1 FROM all_constraints, all_cons_columns
          WHERE all_constraints.constraint_type = 'P' AND
                all_constraints.constraint_name = all_cons_columns.constraint_name AND
                all_constraints.owner = all_cons_columns.owner AND
                all_cons_columns.table_name = c.table_name AND
                c.column_name = all_cons_columns.column_name) Primary_Key,
        c_update.insertable,
        c_update.updatable,
        c_update.deletable
    FROM
        sys.all_tab_Columns c, sys.all_col_comments com, sys.user_updatable_columns c_update
    WHERE
        c.owner = :OBJECT_OWNER AND
        c.table_name = :OBJECT_NAME AND
        c.table_name = com.table_name AND
        c.owner = com.owner AND
        c.column_name = com.column_name AND
        c_update.column_name = com.column_name AND
        c_update.table_name = com.table_name
    ;Extracting the subquery into this:
    SELECT
        all_constraints.owner,
        all_constraints.table_name,
        all_constraints.constraint_name
    FROM all_constraints, all_cons_columns
    WHERE
        all_constraints.constraint_type = 'P' AND
        all_constraints.constraint_name = all_cons_columns.constraint_name AND
        all_constraints.owner = all_cons_columns.owner and
        all_cons_columns.table_name = 'SUBSCRIPTIONS' and
        'ORDER_ID' = all_cons_columns.column_name;I got this output:
       owner          table_name      constraint_name
    CUTOVER          SUBSCRIPTIONS    SUBSCRIPTIONS_PK
    CROSSWORLDS      SUBSCRIPTIONS    SUBSCRIPTIONS_PK
    CSBCROSSWORLDS   SUBSCRIPTIONS    SUBSCRIPTIONS_PKLooking at the DDL for the view, the row we really want is for owner 'CSBCROSSWORLDS'. Unfortunately, that means having to somehow parse the SQL text to extract the owner name...
    Phil

  • Using database-link in view to get around ORA-01031 error

    I have been granted select rights on a users table. I am therefore able to select from his table. If however I try create a view against his table I run into the ORA-01031 problem. I have worked around this problem by creating a database-link to myself and then adding that to the view creation and it works. What are the downsides of using the database-link in this way?

    The only down side I have been able to identify is that a extra session is created and that the CPU has a little extra work due to the LOOP BACK that takes place. I need to ensure the network is not unnessesarly used and therefore will need to ensure that 127.0.0.1 (local host) is used in the database connection discription. e.g.
    create database link my_db_link connect to scott identified by tiger using '(description=(address=(protocol=tcp)(host=127.0.0.1) (Port = 1521) ) (connect_data= (sid=ora10g)))';

  • Getting ora:00904 invalid indentifier error while running i query

    Hi,
    I have a remote database and local database both are oracle 10gR2.Now i have written the below mentioned query in my local database and is working fine,but in case remote database it is throughing error ora:00904 invalid indentifier.
    I had export the dump from remote db and import it on my local db and i tried the same and it is working fine on local after that also.
    As i believe that this error usually come for column name not exist or column name or it's length or for any special character in column name of the table.But as i said it is working fine on local db but not in remote db though i am using the same dump for local and remote.
    Though when i am querying the table i can able to fetch data for the any record but when i am using the below mentioned query for the same i am getting the error.As i am doing this to fecth the data for child parent related relationship.
    Can any one suggest is there anything related to configaration or something else.
    Please do let me know if you do want some more information on the query what i am doing inside of it.
    Rgds,
    Anit
    Edited by: Anit A. on Sep 1, 2008 2:32 AM
    Edited by: Anit A. on Sep 1, 2008 2:33 AM

    WITH t
    AS
    SELECT decode(t.spnlevel
    ,3,t.u_quotesdtlid
    ,2,decode((select count(*)
    from u_quotesdtl t2
    where t2.u_quotesdtlid = t.u_quotesdtlid
    and t2.parentspn = (t2.jobgroupid||':'||t2.jobtype)
    ),0,(select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '3'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ),t.u_quotesdtlid
    ,1,decode((select count(*)
    from u_quotesdtl t2
    where t2.QUOTEID = t.QUOTEID
    and t2.parentspn = (t2.jobgroupid||':'||t2.jobtype)
    ),0,t.u_quotesdtlid,decode((select count(*)
    from u_quotesdtl t3
    where t3.QUOTEID = t.QUOTEID
    and t3.parentspn = (t3.jobgroupid||':'||t3.jobtype)
    and t3.u_quotesdtlid in (select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ),0,(select t4.u_quotesdtlid
    from u_quotesdtl t4
    ,(select t1.parentspn
    ,t1.jobtype
    ,t1.jobgroupid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ) t5
    where t4.spnitemcode = t5.parentspn
    and t4.spnlevel = '3'
    and t4.jobtype = t5.jobtype
    and t4.jobgroupid = t5.jobgroupid
    and t4.QUOTEID = t.QUOTEID
    (select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ,null,t.u_quotesdtlid) as parentquoteid
    ,t.u_quotesdtlid as quotesdtlid
    ,t.spnlevel as spnlevel
    FROM u_quotesdtl t
    WHERE t.QUOTEID ='som key id'
    ORDER BY parentquoteid,t.spnlevel desc
    select * from t;

  • 'ORA-01722: Invalid Number' error while Running a Query

    Hi,
    I'm trying to run a query built on a DSO. The DSO has a field 'Start Date'. This Start Date InfoObject has a reference Char as 0DATE.
    This Start Field has blank values due to which I'm getting the ORA-01722 error. I came across many threads with same topic of discussion. As mentioned in one of the Threads I have written a program to update 'Start Date' with 00000000. The code wriiten is "UPDATE /BIC/AZ_MONINV00 SET /BIC/ZSTR_DTE = '00000000' where /BIC/ZSTR_DTE = ' '.
    Now when I see the data in the active data table of DSO the blank value is replaced with '00000000'.
    But If I right click on the DSO click on display data the 'Start Date' field is blank. And now the Query also gets executed without any error. But in the output of the query the 'Start Date' Field has "#" values.
    Can anyone suggest on how can I make these "#" values appear as 00000000 in the report?

    In this case, you have to write a macro to avoid # in Analyzer.
    Right Click-->Display Data will show data from Active table of DSO only.
    If you don't want to show any blank date values in the report, you can exclude in Filter in Query.

  • ORA-12712 error while changing nls character set to AL32UTF8

    Hi,
    It is strongly recommend to use database character set AL32UTF8 when ever a database is going to used with our XML capabilities. The database character set in the installed DB is WE8MSWIN1252. For making use of XML DB features, I need to change it to AL32UTF8. But, when I try doing this, I'm getting ORA-12712: new character set must be a superset of old character set. Is there a way to solve this issue?
    Thanks in advance,
    Divya.

    Hi,
    a change from we8mswin1252 to al32utf8 is not directly possible. This is because al32utf is not a binary superset of we8mswin1252.
    There are 2 options:
    - use full export and import
    - Use of the Alter in a sort of restricted way
    The method you can choose depends on the characters in the database, is it only ASCII then the second one can work, in other cases the first one is needed.
    It is all described in the Support Note 260192.1, "Changing the NLS_CHARACTERSET to AL32UTF8 / UTF8 (Unicode)". Get it from the support/metalink site.
    You can also read the chapters about this issue in the Globalization Guide: [url http://download.oracle.com/docs/cd/E11882_01/server.112/e10729/ch11charsetmig.htm#g1011430]Change characterset.
    Herald ten Dam
    http://htendam.wordpress.com

  • While updating a table i am getting ORA-00600 error.

    Hi all,
    While updating a table i am getting the following:
    **SQL Error: ORA-00600: internal error code, arguments: [qkebCreateConstantOpn1], [], [], [], [], [], [], [], [], [], [], []**
    **00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"**
    I am not getting how to proceed on this. Please guide me.
    Thanks,
    Ritesh

    While performing some unspecified action (no DML) on an unknown table (no DDL) in an unknown version and edition of the Oracle database you had an untrapped Oracle exceptions.
    There are too many unknowns to help you beyond recommending you open an SR at MyOracleSupport.

Maybe you are looking for

  • Final Cut Event and Final Cut Project

    I am in the process of trying to clean up one space. While doing this I noticed the I have a Final Cut Project and Final Cut event  of the same name as you can see below in the screen shot below. Is the event part of the project. The project was crea

  • Customer clearing logic

    Hi,    Why we need to clear customer in F-32 after when we have booked a collection in F-28. We have been using this process since a long. What are implications if we remove this process and apply payment as soon as its booked. Guide please

  • How to resolve this query ?

    Guys, How do i get the below output ? I have the following data 12/6/2008     EGG      12/6/2008     CHICKEN 12/6/2008     LAMB 13/6/2008     LAMB 13/6/2008     LAMB 13/6/2008     LAMB 14/6/2008     EGG 14/6/2008     EGG 14/6/2008     CHICKEN 14/6/20

  • Re: CS5 in an Upgraded Computer

    Thanks  to Neil who replied helpfully to my question. Actually I couldn't find my orig question on the forum but I did find the reply in my email inbox. Thanks again, Ed

  • Bad local cache - how to update

    Password sync just stopped working. Another working on that problem forgot that DSRepair isn't compatible with Zenworks 6.5 and ran DSRepair. As normal, it destroyed the ZenApps. We restored the eDirectory from a backup tape to get the ZenApps back.