AW$ table unable to drop

Hi ALL,
I have an analytical workspace in oracle 10g (10.2.0.3). I deployed a new dimension recently in my workspace, which contains chart of accounts hierarchy.
After deploying the dimension, i am unable to ATTACH the Analytical Workspace. I have tried it doing from AWM 10g (10.2.0.3), as well as from Discoverer. Similarly, when i try to drop the AW$ANALYTICAL_WORKSPACE table, Oracle error is thrown
"ORA-00942:table or view does not exist". I have also tried to drop the partitions and analyze the table, but same error occurs. The table is shown in dba_tables and dba_objects view, but is unable to be dropped.
I also tried dropping the Analytical Workspace, but Java Null Pointer exception occurs.
Has anybody faced such scenario? what should i do to drop the table.
Thanks.

Hi,
This is not the forum for Analytic Workspace Manager. I would suggest to try the oracle olap forum for your questions.
OLAP
Regards,
Ben

Similar Messages

  • Unable to descripe the table and unable to drop the table

    Hi,
    I have a temp table that we use like staging table to import the data in to the main table through some scheduled procedures.And that will dropped every day and will be created through the script.
    Some how while I am trying to drop the table manually got hanged, There after I could not find that table in dba_objects, dba_tables or any where.
    But Now I am unable to create that table manually(Keep on running the create command with out giving any error), Even I am not getting any error (keep on running )if I give drop/desc of table.
    Can you please any one help on this ? Is it some where got stored the table in DB or do we any option to repair the table ?
    SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE,STATUS from dba_objects where OBJECT_NAME like 'TEMP%';
    no rows selected
    SQL> desc temp
    Thank in advance.

    Hi,
    if this table drops then it moved DBA_RECYCLEBIN table. and also original name of its changed automatically by oracle.
    For example :
    SQL> create table tst (col varchar2(10), row_chng_dt date);
    Table created.
    SQL> insert into tst values ('Version1', sysdate);
    1 row created.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    If the RECYCLEBIN initialization parameter is set to ON (the default in 10g), then dropping this table will place it in the recyclebin:
    SQL> drop table tst;
    Table dropped.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE  UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE YES YES 2013-10-08:16:10:12
    All that happened to the table when we dropped it was that it got renamed. The table data is still there and can be queried just like a normal table:
    SQL> alter session set nls_date_format='HH24:MI:SS' ;
    Session altered.
    SQL> select * from "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    COL        ROW_CHNG
    Version1   16:10:03
    Since the table data is still there, it's very easy to "undrop" the table. This operation is known as a "flashback drop". The command is FLASHBACK TABLE... TO BEFORE DROP, and it simply renames the BIN$... table to its original name:
    SQL> flashback table tst to before drop;
    Flashback complete.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    SQL> select * from recyclebin ;
    no rows selected
    It's important to know that after you've dropped a table, it has only been renamed; the table segments are still sitting there in your tablespace, unchanged, taking up space. This space still counts against your user tablespace quotas, as well as filling up the tablespace. It will not be reclaimed until you get the table out of the recyclebin. You can remove an object from the recyclebin by restoring it, or by purging it from the recyclebin.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE                      UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE                     YES YES 2006-09-01:16:10:12
    SQL> purge table "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    Table purged.
    SQL> select * from recyclebin ;
    no rows selected
    Thank you
    And check this link:
    http://www.orafaq.com/node/968
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables011.htm
    Thank you

  • Unable to drop table

    Hello,
    I'm currently tring to drop a table using a process trigered by a button click
    Icreated my button and also a "PL/SQL process" and I put
    DROP TABLE &P0_TABLE_NAME. CASCADE CONSTRAINTS;
    inside field "source" with ticking the checkbox "Do not validate PL/SQL code (parse PL/SQL code at runtime only)."
    But when a click on the button I have the following error
    ORA-06550: line 1, column 7: PLS-00103: Encountered the symbol "DROP" when expecting one of the following: begin case declare exit for goto if loop mod null pragma raise return select update while with <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe
         Error      Error while dropping table
    OK      
    Do anyone have a clue about this ?
    Debug trace is
    A C C E P T: Request="Purge"
    0.00: Metadata: Fetch application definition and shortcuts
    0.00: alter session set nls_language="AMERICAN"
    0.00: alter session set nls_territory="AMERICA"
    0.00: ...NLS: Set Decimal separator="."
    0.00: ...NLS: Set NLS Group separator=","
    0.00: ...NLS: Set date format="DD-MON-RR"
    0.00: ...Setting session time_zone to +02:00
    0.00: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.00: Fetch session state from database
    0.01: ...Check session 2289784661666743 owner
    0.01: ...Check for session expiration:
    0.01: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.01: Session: Fetch session header information
    0.01: ...Metadata: Fetch page attributes for application 121, page 2
    0.01: ...Validate item page affinity.
    0.03: ...Validate hidden_protected items.
    0.03: ...Check authorization security schemes
    0.03: Session State: Save form items and p_arg_values
    0.03: ...Session State: Save "P0_TABLE_NAME" - saving same value: "STATPHI_595730051"
    0.04: ...Session State: Save "P2_TABLE_NAME" - saving same value: "STATPHI_595730051"
    0.04: ...Session State: Save "P2_TYPE" - saving same value: "2"
    0.04: ...Session State: Save "P2_CALENDAR" - saving same value: "PA"
    0.04: ...Session State: Save "P2_FILE_NAME" - saving same value: ""
    0.04: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.04: Branch point: BEFORE_COMPUTATION
    0.04: Computation point: AFTER_SUBMIT
    0.04: Tabs: Perform Branching for Tab Requests
    0.04: Branch point: BEFORE_VALIDATION
    0.04: Perform validations:
    0.04: Branch point: BEFORE_PROCESSING
    0.04: Processing point: AFTER_SUBMIT
    0.04: Item button "P2_PURGE_TABLE" pressed process.
    0.04: ...Process "DROP TABLE": PLSQL (AFTER_SUBMIT) DROP TABLE &P0_TABLE_NAME. CASCADE CONSTRAINTS;
    0.06: Encountered unhandled exception in process type PLSQL
    0.06: Show ERROR page...
    0.06: Performing rollback...
    ----

    Hi user631592 ;-)
    You can't used directly a DDL statment.
    But you can use an EXECUTE IMMEDIATE in your process.
    SO
    BEGIN
    EXECUTE IMMEDIATE ' DROP TABLE STATPHI_595730051';
    END;
    Regards

  • Unable to drop foreign key on a version-enabled table

    Hi,
    We're using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit and I'm trying to delete a foreign key from a version-enabled table.
    The constraint shows in ALL_WM_RIC_INFO view. I run exec dbms_wm.beginddl('tablename'), when I inspect the generated <tablename>_LTS I don't see any referential integrity constraints generated on that table ? The constraint i'm trying to delete is from a version-enabled table to a non-version enabled table if that makes a difference.
    From what I understand the referential integrity constraint would be generated and I would be able to run something like:
    ALTER TABLE <tablename>_LTS DROP CONSTRAINT <constraintname>.
    I tried running the above statement using the RIC_NAME from ALL_WM_RIC_INFO view but it fails predictably with:
    ORA-02443: Cannot drop constraint - nonexistent constraint
    Cause: alter table drop constraint <constraint_name>
    Action: make sure you supply correct constraint name.

    as I ran into this today as well I feel like answering this question, as I suppose that the thread opener did the same mistake as I did, and maybe
    some others do it as well :)
    of course you need to open a DDL session on the parent table as well in order to drop foreign key constraints, just as you do when you add them.
    so the correct order to make it work would be:
    EXECUTE DBMS_WM.BeginDDL('PARENT_TABLE');
    EXECUTE DBMS_WM.BeginDDL('CHILD_TABLE');
    ALTER TABLE CHILD_TABLE_LTS
    DROP CONSTRAINT FOREIGN_KEY_NAME
    EXECUTE DBMS_WM.CommitDDL('CHILD_TABLE');
    EXECUTE DBMS_WM.CommitDDL('PARENT_TABLE');I felt kind of stupid that it took me 1 hour to figure this out ;)
    regards,
    Andreas

  • Unable to drop database user

    Hi All,
    I am unable to drop database user and getting the folllowing error:
    " must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables "
    I find 3 table with AQ prefix in the schema but unable to drop these table even by using "sys" user.
    Any idea how can I do that ?
    Regards,

    Hi,
    select object_name,object_type from dba_objects where owner='USERNAME' and object_name like '%AQ%';TO drop the queue table, login as the owner and
    exec DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'PASTE_THE_OBJECT_NAME_FROM_ABOVE',force =>TRUE);Anand

  • Unable to drop spatial index

    Hi
    In my Oracle 11.2 Test database, i had accidentally deleted the base tables of a Spatial Domain index that starts with MDRT$.
    I am unable to drop or rebuild the index. I even tried dropping the schema , however the query just hangs forever for both
    SQL> drop index Geo1_ID_1 force;
    SQL> drop user geonom cascade;I checked the AWR and ASH report , those sql are not listed there .
    Please Suggest !

    hi,
    I'm grasping at straws here, but you might want to try recreating the user_sdo_geom_metadata entry. When you do, make sure there aren't any spaces in the table_name or column_name. It looks OK though from what you printed out.
    Also, you might want to consider leaving off the sdo_numtiles and sdo_maxlevel. Oracle is no longer recommending the use of hybrid indexes in almost all cases.
    regards,
    dan

  • Unable to drop view

    Hi
    I'm unable to drop a view owned by me. The system hangs when I issue 'DROP VIEW &lt;view name&gt;.
    In DBA_OBJECTS the STATUS shows 'VALID'.
    Can you help to how to drop this problem.
    Thanks & Regards
    Bhaskara

    here are few options :
    o write a query on v$lock, v$session and v$process
    or
    o select field_lists from v$sql where sql_text like '%VIEW_NAME%' and parsing_schema_id = user_id from dba_users
    this will give you some idea about the process
    or
    o take a systemstate dump
    if you know how to read systemstate dump trace file, this is prefered method.
    try the 1st option and use addr and saddr to join the tables.
    Best,
    G

  • Unable to drop materialized view with corrupted data blocks

    Hi,
    The alert log of our database is giving this message
    Wed Jan 31 05:23:13 2007
    ORACLE Instance mesh (pid = 9) - Error 1578 encountered while recovering transaction (6, 15) on object 13355.
    Wed Jan 31 05:23:13 2007
    Errors in file /u01/app/oracle/admin/mesh/bdump/mesh_smon_4369.trc:
    ORA-01578: ORACLE data block corrupted (file # 5, block # 388260)
    ORA-01110: data file 5: '/u03/oradata/mesh/mview.dbf'
    No one is using this mview still oracle is trying to recover this transaction (6, 15).
    when i tried to drop this mview it gives me this error
    ERROR at line 1:
    ORA-01578: ORACLE data block corrupted (file # 5, block # 388260)
    ORA-01110: data file 5: '/u03/oradata/mesh/mview.dbf'
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2430
    ORA-06512: at line 1
    I have tried to fix the corrupted data blocks by using dbms_repair package, but of no use.
    I have marked this block to be skipped by using dbms_repair.skip_block but still unable to drop it.
    Please suggest what should I do?
    Thanks in advance
    Anuj

    You are lucky if only your undesirable MV is affected by theese corrupted blocks. This is an advice to do a complete-super-full-hot-cold-middle backup of ypur database and search for any disk for a "possible replace".
    God save us!

  • How can i retrive a table which is dropped by mistake

    hi
    how can i retrive a table which is dropped by mistake?
    Ragards Josh

    Please mention your database version?
    Suppose that a table as follows is dropped;
    SQL> drop table hr.departments cascade constraints;
    Table dropped.We can recover as follows;
    SQL> flashback table hr.departments to before drop;
    Flashback complete.Now we check that the dropped table has been retrieved;
    SQL> select object_name, object_type from dba_objects
    2     where owner='HR';
    OBJECT_NAME
    OBJECT_TYPE
    DEPARTMENTS
    TABLEFLASHBACK TABLE
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9012.htm#sthref8923
    Overview of Oracle Flashback Table
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#i1015145
    When to Use Oracle Flashback
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#sthref2426
    Extracted from the link above
    Flashback Table is a push button solution to restore the contents of a table to a given point in time.
    Using Flashback Drop and Managing the Recycle Bin
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#sthref2381
    Adith

  • TABLE, PACKAGE, USER가 DROP되지 않을 때의 조치 방법(ORA-1000)

    제품 : ORACLE SERVER
    작성날짜 : 2004-11-09
    TABLE, PACKAGE, USER가 DROP되지 않을 때의 조치 방법(ORA-1000)
    ============================================================
    다음 자료는 dropping an object (table, package, users) 시에
    ora-1000 또는 internal error 가 발생하며 drop 되지 않을 때의 조치
    방법입니다.
    internal 자료로서 엔지니어가 직접 알려주는 것이 좋다고 remark 되어 있는
    자료입니다.
    요약>
    drop package 시에 ora-1000 은 다음 자료 처럼 drop 하려는 object 와
    dependency 는 남아있지만 invalid object(no interdependant objects
    즉, children which are also parents) 가 존재할 때 발생합니다.
    따라서, drop 하려는 object 의 dependency 를 조회하여 invalid object
    와의 dependency 를 dependency$ 에서 지워줍니다.
    주의!>
    다음 작업을 수행 도중 dependency$ 의 row 를 삭제하기 전에는 반드시 cold
    backup 을 해 주십시오.
    <table, package, user 를 drop 할 때 Ora-1000(ORA-604) 이 발생하는 문제 조치
    방법 >
    Object 를 drop 할 때 ORA-1000 과 같은 에러가 발생하여, open_cursors
    를 1000 이상으로 늘여도 계속 에러가 발생할 때는 다음과 같이 원인을
    찾아 제거 합니다.
    1. drop 하려는 object 의 parent dependency 를 찾는다.
    svrmgr> connect internal;
    select lpad(' ',2*(level-1))||p_obj#,d_obj#
    from sys.dependency$
    where p_obj#=(select a.obj# from sys.obj$ a, sys.user$ b
    where a.owner#=b.user#
    and a.name='PROCEDURE1' and b.name='SCOTT')
    connect by prior d_obj#=p_obj#;
    2. drop 하려는 object 의 child dependency 를 찾는다.
    select lpad(' ',2*(level-1))||p_obj#,d_obj#
    from dependency$
    where d_obj#=(select a.obj# from obj$ a, user$ b
    where a.owner#=b.user#
    and a.name='PROCEDURE1' and b.name='SCOTT')
    connect by prior p_obj#=d_obj#;
    3. 위에서 조회된 모든 object 가 dba_objects 에 존재하지 않거나 status 가
    invalid 인 것을 찾는다.
    select * from dba_objects where object_id=xxx;
    4. 1 의 조회 결과와 2 의 조회 결과에 의해 동시에 발견된 object id 가
    있는지 확인한다.
    5. 위의 3 의 조회 결과 object 가 존재하지 않거나 invalid 인 것 ,
    4 의 결과 동시에 발견된 object id 가 있다면 cold backup 을 먼저 받아둔다
    6. valid 한 backup 이 있다면, sys user 로 접속하여 이들 row 를 다음과 같이
    delete 한다.
    다음을 먼저 select 한 다음, valid 한 backup 이 있는지 확인한 다음
    delete 해야 한다.
    즉, 두개의 object 가 서로를 의존하고 있는 것이므로, 두개의 row 를 삭제한다.
    다른 row 가 delete 되지 않도록 먼저 query 해 본다.
    예) procedure (contact) -> package (dbwww) 그리고 package (dbwww) ->
    procedure (contact) 인 경우
    1)select * from dependency$
    where d_obj#=(select object_id from dba_objects
    where owner='....'
    and object_type='PROCEDURE'
    and object_name='CONTACT')
    and p_obj#=(select object_id from dba_objects
    where owner='....'
    and object_type='PACKAGE;
    and object_name='DBWWW')
    and d_owner#=(select user_id from dba_users
    where username='...');
    2)select * from dependency$
    where d_obj#=(select object_id from dba_objects
    where owner='....'
    and object_type='PACKAGE'
    and object_name='DBWWW')
    and p_obj#=(select object_id from dba_objects
    where owner='....'
    and object_type='PROCEDURE';
    and object_name='CONTACT')
    and d_owner#=(select user_id from dba_users
    where username='...');
    3) alter system flush shared_pool;
    4) delete from dependency$
    where 위의 1),2) 같음;

  • Unable to drop user

    i am receiving the following error while dropping user..
    SQL> drop user ONAIR cascade;
    drop user ONAIR cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
    i queried dba_queue_tables but its showing that thr r no queue tables present..
    select queue_table from dba_queue_tables where owner ='ONAIR';
    no rows selected
    db version is 10.2.0.4.0 aix server

    Manually deleted all the tables but the following two tables arent getting dropped..
    SQL> select owner,table_name from dba_tables where owner='ONAIR';
    OWNER TABLE_NAME
    ONAIR FILTER_REP_QUEUE_DATA
    ONAIR JOB_QUEUE_DATA
    SQL> drop table ONAIR.JOB_QUEUE_DATA
    ERROR at line 1:
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables..
    Then used DBMS_AQADM to drop the table but no luck..
    SQL> EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE(queue_table => 'JOB_QUEUE_DATA', force => TRUE);
    BEGIN DBMS_AQADM.DROP_QUEUE_TABLE(queue_table => 'JOB_QUEUE_DATA', force => TRUE); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_AQADM' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

  • Unable to drop nodes onto a line.

    Hello Everyone,
    I'm hoping someone can help me with this. I've got a situation where I'm unable to drop nodes onto a line. I'm having to manually connect them at each point. The Tutorial tells me that when I drag a node over a line the node in and out should highlight and at that point I can release it and it will automatically connect onto the tree. Although this did work with the trial version it is not working with my purchased version. Most likely I've dissabled the option without knowing it. Can't find the solution in any of the manuals. Thanks for any help.

    > Man, I STILL do that... then wonder where everything
    went!!
    Well, now I know you do it, I don't feel so stupid when I do it!
    . . . But isn't it great when you hit the space bar again . . . and everything comes back!
    Andy
    G5 Quad 8GB. 250, 500 GB HDs. G-Raid 1TB. FCP 5.1.1. Shake 4.1. Sony HVR Z1E   Mac OS X (10.4.7)  
    "I've taught you all I know, and still you know nothing".

  • Unable to drop a function

    Hi,
    I have created a function. I have full access on that function. But unable to drop it. When I issue drop function function_name. My SQLPLUS hangs and after brief wait I am getting the following error ORA-04021: timeout occurred while waiting to lock object.
    How to drop the function now. I am unable to use it also.
    Regards,
    Subbu S.

    Hi,
    my function is
    FUNCTION PENDING_HRS
    (st_dt IN DATE, ed_dt IN DATE, out_type in varchar2, loc_type in varchar2,
    hrs_type in varchar2)
    RETURN NUMBER IS
    CURSOR holiday_cnt (st_dt_tr_in IN DATE, ed_dt_tr_in IN DATE,loc_type_in IN VARCHAR2 ) IS
    SELECT count(*) FROM bi_prod.boe_hmh_holiday where
    (LOCATION = loc_type_in or 'BOTH' = loc_type_in) and
    holiday_dt between st_dt_tr_in and ed_dt_tr_in and
    to_number(to_char(holiday_dt,'d')) not in (1,7);
    st_dt_mod DATE;
    ed_dt_mod DATE;
    st_dt_tr DATE;
    ed_dt_tr DATE;
    st_dt_wk DATE;
    ed_dt_wk DATE;
    no_of_wkeds NUMBER;
    st_dy_filler NUMBER;
    ed_dy_filler NUMBER;
    no_of_wkdys NUMBER;
    st_hr_filler NUMBER;
    ed_hr_filler NUMBER;
    nr_hrs NUMBER;
    num_hdys NUMBER;
    BEGIN
    no_of_wkeds :=0;
    st_dy_filler :=0;
    ed_dy_filler :=0;
    no_of_wkdys :=0;
    st_hr_filler :=0;
    ed_hr_filler :=0;
    nr_hrs :=0;
    num_hdys :=0;
    st_dt_mod := BUS_DAY(st_dt,'+',loc_type,hrs_type);
    ed_dt_mod := BUS_DAY(ed_dt,'-',loc_type,hrs_type);
    dbms_output.put_line(to_char(st_dt_mod,'dd-Mon-yyyy hh24:mi:ss'));
    dbms_output.put_line(to_char(ed_dt_mod,'dd-Mon-yyyy hh24:mi:ss'));
    if ed_dt_mod > st_dt_mod then
    st_dt_tr := trunc(st_dt_mod);
    ed_dt_tr := trunc(ed_dt_mod);
    st_dt_wk := st_dt_tr - (to_number(to_char(st_dt_tr,'d')) - 1);
    ed_dt_wk := ed_dt_tr + (7 - to_number(to_char(ed_dt_tr,'d')));
    dbms_output.put_line(to_char(st_dt_wk,'dd-Mon-yyyy hh24:mi:ss'));
    dbms_output.put_line(to_char(ed_dt_wk,'dd-Mon-yyyy hh24:mi:ss'));
    no_of_wkeds := ((ed_dt_wk - st_dt_wk + 1) / 7) * 2;
    dbms_output.put_line('Weekends - ' || no_of_wkeds);
    IF to_number(to_char(st_dt_tr,'d')) > 2 THEN
    st_dy_filler := to_number(to_char(st_dt_tr,'d')) - 2;
    ELSE
    st_dy_filler := 0;
    END IF;
    dbms_output.put_line ('St Filler - ' || st_dy_filler);
    IF to_number(to_char(ed_dt_tr,'d')) < 6 THEN
    ed_dy_filler := 6 - to_number(to_char(ed_dt_tr,'d'));
    ELSE
    ed_dy_filler := 0;
    END IF;
    dbms_output.put_line ('ed Filler - ' || ed_dy_filler);
    open holiday_cnt(st_dt_tr , ed_dt_tr, loc_type);
    fetch holiday_cnt into num_hdys;
    close holiday_cnt;
    dbms_output.put_line(num_hdys);
    no_of_wkdys := ed_dt_wk - st_dt_wk - no_of_wkeds - st_dy_filler - ed_dy_filler + 1 - num_hdys;
    dbms_output.put_line ('Work Days - '|| no_of_wkdys);
    IF to_number(to_char(st_dt_mod,'d')) > 1 AND to_number(to_char(st_dt_mod,'d')) < 7 then
    if hrs_type = '8' then
    IF to_number(to_char(st_dt_mod,'hh24')) >= 9 AND (to_number(to_char(st_dt_mod,'hh24')) < 17 or (to_number(to_char(st_dt_mod,'hh24')) = 17 and to_number(to_char(st_dt_mod,'mi')) = 0 )) then
    st_hr_filler := round((st_dt_mod - to_date(to_char(st_dt_tr,'dd-Mon-yyyy') || ' 09:00:00' ,'dd-Mon-yyyy hh:mi:ss')) * 24, 2) ;
    ELSE
    if to_number(to_char(st_dt_mod,'hh24')) < 9 then
    st_hr_filler := 0;
    elsif to_number(to_char(st_dt_mod,'hh24')) >= 17 then
    st_hr_filler := 8;
    end if;
    END IF;
    else
    st_hr_filler := round((st_dt_mod -st_dt_tr) * 24 ,2);
    end if;
    ELSE
    st_hr_filler := 0;
    END IF;
    dbms_output.put_line ('St_hr_filler - '|| st_hr_filler);
    IF to_number(to_char(ed_dt_mod,'d')) > 1 AND to_number(to_char(ed_dt_mod,'d')) < 7 then
    if hrs_type = '8' then
    IF to_number(to_char(ed_dt_mod,'hh24')) >= 9 AND (to_number(to_char(ed_dt_mod,'hh24')) < 17 or (to_number(to_char(ed_dt_mod,'hh24')) = 17 and to_number(to_char(ed_dt_mod,'mi')) = 0 )) then
    ed_hr_filler := round((to_date(to_char(ed_dt_tr,'dd-Mon-yyyy') || ' 17:00:00' ,'dd-Mon-yyyy hh24:mi:ss') - ed_dt_mod) * 24 , 2) ;
    ELSE
    if to_number(to_char(ed_dt_mod,'hh24')) < 9 then
    ed_hr_filler := 8;
    elsif to_number(to_char(ed_dt_mod,'hh24')) >= 17 then
    ed_hr_filler := 0;
    end if;
    END IF;
    else
    ed_hr_filler := 24 - round((ed_dt_mod - ed_dt_tr) * (24) , 2);
    end if;
    ELSE
    ed_hr_filler := 0;
    END IF;
    dbms_output.put_line ('ed_hr_filler - '|| ed_hr_filler);
    IF hrs_type ='24' then
    nr_hrs := (no_of_wkdys * 24) - st_hr_filler - ed_hr_filler;
    else
    nr_hrs := (no_of_wkdys * 8) - st_hr_filler - ed_hr_filler;
    end if;
    if nr_hrs < 0 then
    nr_hrs := 0;
    end if;
    if out_type ='H' then
    RETURN nr_hrs ;
    else
    IF hrs_type ='24' then
    RETURN nr_hrs / 24;
    else
    RETURN nr_hrs / 8;
    end if;
    end if;
    else
    RETURN 0;
    end if;
    END pending_hrs;
    From port string I came to know its on solaris (SVR4-be-64bit-8.1.0).
    My oracle instance version is 10.2.0.4.0. I have to catch hold of my DBA.
    Regards,
    Subbu S.

  • Unable to Drop ASM Disk Group

    Hi,
    working on Oracle 11gR2, (Solaris).
    unable to drop diskgroup, need to deinstall asm setup manually insted of running with deinstall tool.
    sqlplus / as sysasm
    SQL> startup pfile='/u01/grid/oracle/product/11.2.0/asm_1/dbs/init+ASM.ora';
    ASM instance started
    Total System Global Area  283930624 bytes
    Fixed Size                  2210328 bytes
    Variable Size             256554472 bytes
    ASM Cache                  25165824 bytes
    ORA-15110: no diskgroups mounted
    SQL> alter diskgroup fra mount;
    Diskgroup altered.
    SQL> alter diskgroup data mount;
    Diskgroup altered.
    SQL> drop diskgroup FRA INCLUDING CONTENTS;
    drop diskgroup FRA INCLUDING CONTENTS
    ERROR at line 1:
    ORA-15039: diskgroup not dropped
    ORA-29786: SIHA attribute GET failed with error [Attribute 'SPFILE' sts[200]
    lsts[0]]
    SQL> DROP DISKGROUP DATA INCLUDING CONTENTS;
    DROP DISKGROUP DATA INCLUDING CONTENTS
    ERROR at line 1:
    ORA-15039: diskgroup not dropped
    ORA-29786: SIHA attribute GET failed with error [Attribute 'SPFILE' sts[200]
    lsts[0]]

    Sachin B wrote:
    Hi,
    working on Oracle 11gR2, (Solaris).
    unable to drop diskgroup, need to deinstall asm setup manually insted of running with deinstall tool.
    sqlplus / as sysasm
    SQL> startup pfile='/u01/grid/oracle/product/11.2.0/asm_1/dbs/init+ASM.ora';
    ASM instance started
    Total System Global Area  283930624 bytes
    Fixed Size                  2210328 bytes
    Variable Size             256554472 bytes
    ASM Cache                  25165824 bytes
    ORA-15110: no diskgroups mounted
    SQL> alter diskgroup fra mount;
    Diskgroup altered.
    SQL> alter diskgroup data mount;
    Diskgroup altered.
    SQL> drop diskgroup FRA INCLUDING CONTENTS;
    drop diskgroup FRA INCLUDING CONTENTS
    ERROR at line 1:
    ORA-15039: diskgroup not dropped
    ORA-29786: SIHA attribute GET failed with error [Attribute 'SPFILE' sts[200]
    lsts[0]]
    SQL> DROP DISKGROUP DATA INCLUDING CONTENTS;
    DROP DISKGROUP DATA INCLUDING CONTENTS
    ERROR at line 1:
    ORA-15039: diskgroup not dropped
    ORA-29786: SIHA attribute GET failed with error [Attribute 'SPFILE' sts[200]
    lsts[0]]
    Did you create ASM instance manually? If yes, then follow MOS DOC ID: 976075.1

  • Unable to drop queue table

    Hi,
    I have the streams admin user as "stradmin" and i have a queue table called "STREAMS_CAPTURE_QT"
    I am not able to drop the streams user because i am not able to drop the queue table.
    I tried the following.....
    begin
    DBMS_AQADM.DROP_QUEUE_TABLE(
    queue_table => 'STREAMS_CAPTURE_QT',
    force => TRUE);
    end;
    but i get below error....
    begin
    ERROR at line 1:
    ORA-04031: unable to allocate 112 bytes of shared memory ("streams
    pool","unknown object","streams pool","qulptr_kwqbscc")
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4102
    ORA-06512: at "SYS.DBMS_AQADM", line 197
    ORA-06512: at line 2
    I checked my init.ora parameter file and i do have...
    *.aq_tm_processes=0
    *.shared_pool_size=500M
    *.streams_pool_size=16777216
    *.event='10298 trace name context forever, level 32'
    Can someone help me to drop the queue table as well as the streams admin user.
    Thanks in advance.

    Have you tried increasing the SGA size?

Maybe you are looking for