Error in show space script.

Hi Gurus,
When ever I the below query as SYS user it is retrieving the rows without any issues.
select SEGMENT_NAME, FREE_BLOCKS,TOTAL_BLOCKS,UNUSED_BLOCKS from table( show_space_for( '%',user,'%' ) )
but If change the user name(below is changed script) I am getting ora-0600(arguments: [kcbgcur_9]) and it does not retrieving any records but still I am running SYS user. Please need a help
select SEGMENT_NAME, FREE_BLOCKS,TOTAL_BLOCKS,UNUSED_BLOCKS from table( show_space_for( '%','*TEST'*,'%' ) )
Here is the scripts
===========
create or replace type show_space_type
as object
( owner varchar2(30),
segment_name varchar2(30),
partition_name varchar2(30),
segment_type varchar2(30),
free_blocks number,
total_blocks number,
unused_blocks number,
last_used_ext_fileid number,
last_used_ext_blockid number,
last_used_block number
create or replace type show_space_table_type
as table of show_space_type
create or replace
function show_space_for
( p_segname in varchar2,
p_owner in varchar2 default user,
p_type in varchar2 default 'TABLE',
p_partition in varchar2 default NULL )
return show_space_table_type
authid CURRENT_USER
PIPELINED
as
pragma autonomous_transaction;
type rc is ref cursor;
l_cursor rc;
l_free_blks number;
l_total_blocks number;
l_total_bytes number;
l_unused_blocks number;
l_unused_bytes number;
l_LastUsedExtFileId number;
l_LastUsedExtBlockId number;
l_last_used_block number;
l_sql long;
l_conj varchar2(7) default ' where ';
l_owner varchar2(30);
l_segment_name varchar2(30);
l_segment_type varchar2(30);
l_partition_name varchar2(30);
procedure add_predicate( p_name in varchar2, p_value in varchar2 )
as
begin
if ( instr( p_value, '%' ) > 0 )
then
l_sql := l_sql || l_conj || p_name || ' like ''' || upper(p_value) || '''';
l_conj := ' and ';
elsif ( p_value is not null )
then
l_sql := l_sql || l_conj || p_name || ' = ''' || upper(p_value) || '''';
l_conj := ' and ';
end if;
end;
begin
l_sql := 'select owner, segment_name, segment_type, partition_name
from dba_segments ';
add_predicate( 'segment_name', p_segname );
add_predicate( 'owner', p_owner );
add_predicate( 'segment_type', p_type );
add_predicate( 'partition', p_partition );
execute immediate 'alter session set cursor_sharing=force';
open l_cursor for l_sql;
execute immediate 'alter session set cursor_sharing=exact';
loop
fetch l_cursor into l_owner, l_segment_name, l_segment_type, l_partition_name;
dbms_output.put_line( l_segment_name || ',' || l_segment_type );
exit when l_cursor%notfound;
begin
dbms_space.free_blocks
( segment_owner => l_owner,
segment_name => l_segment_name,
segment_type => l_segment_type,
partition_name => l_partition_name,
freelist_group_id => 0,
free_blks => l_free_blks );
dbms_space.unused_space
( segment_owner => l_owner,
segment_name => l_segment_name,
segment_type => l_segment_type,
partition_name => l_partition_name,
total_blocks => l_total_blocks,
total_bytes => l_total_bytes,
unused_blocks => l_unused_blocks,
unused_bytes => l_unused_bytes,
LAST_USED_EXTENT_FILE_ID => l_LastUsedExtFileId,
LAST_USED_EXTENT_BLOCK_ID => l_LastUsedExtBlockId,
LAST_USED_BLOCK => l_LAST_USED_BLOCK );
pipe row ( show_space_type( l_owner, l_segment_name, l_partition_name,
l_segment_type, l_free_blks, l_total_blocks, l_unused_blocks,
l_lastUsedExtFileId, l_LastUsedExtBlockId, l_last_used_block ) );
exception
when others then null;
end;
end loop;
close l_cursor;
return;
end;

user10782193 wrote:
Hi Gurus,
When ever I the below query as SYS user it is retrieving the rows without any issues.
select SEGMENT_NAME, FREE_BLOCKS,TOTAL_BLOCKS,UNUSED_BLOCKS from table( show_space_for( '%',user,'%' ) )
but If change the user name(below is changed script) I am getting ora-0600<snip>
ora-0600 always means to do the following:
1) log on to MOS
2) search on 'ora-0600'
3) locate the 'ora-0600 lookup tool' in the results
4) use the tool
5) if still no resolution, open an SR

Similar Messages

  • How to change font in "compiler errors". Shows some script font I can't read

    The font on my "compiler errors" panel is a script font I can't read. How do I change it? I posted a screenshot of the problem http://www.obxwebdesigner.com/images/flashprob.png

    Called Adobe them they sent me to this....
    http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    Removed all the files. Didn't work. Still there.

  • When I try to load an image from the scanner, or from a file, into a bank deposit script, I get a message - "Error Java heap space". Need help to diagnose and fix this problem.

    I am running a script from my banking facility which asks me to load an image of the front and back of the check. I never had a problem before, but this time when I try to load the images either directly from the scanner, or from previously saved jpg files I get an error window message that says - Error Java heap space,
    Ed Marcato

    I am running a script from my banking facility which asks me to load an image of the front and back of the check. I never had a problem before, but this time when I try to load the images either directly from the scanner, or from previously saved jpg files I get an error window message that says - Error Java heap space,
    Ed Marcato

  • The restore session has stopped working. It tries to load, but then gives an error message that the script is not working and will not actually show the previous tabs I had open.

    I count on using the Firefox restore session feature. But it's stopped working. For the past couple of days, it hasn't worked a single time. (I haven't changed anything on my PC.) It just suddenly stopped working.
    Now it gives me an error message that the script has stopped working. It gives me a couple of options. I'm not sure of the exact wording, but one option is to stop the script and the other is to keep trying. But the keep trying never works.
    I have to stop the script, hence, the list with my previous tabs never comes up.

    Which file is mentioned as the cause of that script error?<br />
    Is that a file with a chrome protocol?

  • Error in /tmp/applianceagent/scripts/Database.sh: Start database  failed with exit code 2

    Hello
    I have set up the Demo appliance landscape for the openSAP course "Introduction to SAP Fiori UX", on AWS.
    The frontend machine is OK, but the configuration and startup of the server machine has failed for some reason. When logging in with ssh to the server, this message is presented:
    The Appliance Agent detected an error and terminated.
    When asked, please provide the file /tmp/applianceagent_20141002-145658.tar.bz2.
    Note that a restrictive iptables based firewall is still active.
    I have attached the file (had to add .txt to the name to circumvent file type restrictions).
    I noticed that the appliancedeploy.log ended with these lines:
    Start database  Execute /usr/sap/hostctrl/exe/sapcontrol -nr 02 -function StartWait 3600 20
    02.10.2014 13:56:58
    Start
    OK
    02.10.2014 14:56:58
    StartWait
    FAIL: Timeout
    error in /tmp/applianceagent/scripts/Database.sh: Start database  failed with exit code 2
    Notice the 1 hour jump in time, and then the timeout error message.
    Do any of you have any idea what could be causing this, and how to fix it?
    Please let me know if you need any further information.
    Best regards,
    Bo

    Hi Hannes.
    Trying to create and activate a new instance (version 5 of the Fiori appliance), I first got this message in the CAL instance overview list:
    Instance Operation Failed
    Operation Start failed on step Start start VAs with message: Start failed for VM SAP Server due to Amazon Web Services issue : AMAZON : The snapshot 'snap-c779ff64' does not exist.
    Then I terminated the instance and tried over again. And this time the deployment worked - I have a running server, which responds to the SAP GUI, and shows the Fiori web page.
    Thanks a lot for your quick help.
    Best regards,
    Bo

  • Compilation process error : Not enough space

    Hi Experts,
    I have transported two mapping routines from development system to the Testing system, but when I am trying to activate the mapping routines only one got activated and the other shows the below error
    Compilation process error : Not enough space
    STACKTRACE:
    com.sap.aii.utilxi.swing.framework.FrameworkException: Compilation process error : Not enough space
        at com.sap.aii.ib.gui.editor.XiDocument.checkConsistency(XiDocument.java:780)
        at com.sap.aii.ib.gui.editor.XiDocument.checkObject(XiDocument.java:799)
        at com.sap.aii.ib.gui.editor.CheckObjectCommand.execute(CheckObjectCommand.java:38)
        at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:196)
        at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:134)
        at com.sap.aii.utilxi.swing.framework.CommandAction.actionPerformed(CommandAction.java:69)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at com.sap.plaf.frog.FrogMenuItemUI$MouseInputHandler.mouseReleased(FrogMenuItemUI.java:833)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
    Please suggest to resolve the issue.
    Thank you,
    MK

    Goto XI server machine and check the drive spaces. U may also use DB2 transaction. Ur BASIS may help u with this
    Regards,
    Prateek

  • Error while executing the script adgetlnxver.sh

    Error while executing the script adgetlnxver.sh on apps&db tier during upgrade from 11.5.9 to 11.5.10.2
    -bash: [: -lt: unary operator expected
    [aptinst@dba5 TINST_dba5]$ sh adapcctl.sh restart
    adapcctl.sh version 115.55
    /u01/app/tinst/tinstappl/ad/11.5.0/bin/adgetlnxver.sh: line 123: [: -lt: unary operator expected
    Apache Web Server Listener :httpd ( pid 8645 ) is running.
    Restarting the Apache Web Server Dedicated HTTP Listener..
    Apache Web Server Listener (PLSQL) :httpd ( pid 8673 ) is running.
    Restarting the Apache Web Server Dedicated PLSQL Listener..
    adapcctl.sh: exiting with status 0
    In adgetlnxver.sh: line 123 says
    if [ ${setflag}x = "x" -a $os = "RH" ]; then
    redhatver=`grep -oP "Enterprise Linux [a-z A-Z 0-9]* release [0-9]+" /etc/redhat-release | sed 's/Enterprise Linux [a-z A-Z 0-9]* release //g'`
    if [ $redhatver -lt 5 ]; then
    LD_ASSUME_KERNEL="2.4.19"
    export LD_ASSUME_KERNEL
    fi
    fi
    Thanks,
    Vamsi

    Hi Vamsi.
    The exactly erro refers to a problems when you try upgrade from these version to 11.5.10.
    Can you read this note and apply solution? The note refers a patch, but the problem is the same.
    After Patch 4334965, adstrtal.sh & adstpall.sh is failing with errors [ID 360046.1]
    BR Rafael Ceolim

  • Error message: "Warning: unresponsive script". Afterward, the system freezes and will then crash. Crash reports have been submitted many, many times without response. I have tried the fore-mentioned solutions with either no results or very bad results

    Error message: "Warning: unresponsive script". Afterward, the system freezes and will then crash. Crash reports have been submitted many, many times without response. I have tried the fore-mentioned solutions with either no results or very bad results which I filed a report but did not receive an answer. The application to block scripts actually worsened the problem and I could not correct the situation for a while (no response from Firefox, at all). I have also been through this procedure without any one contacting me, AT ALL.
    == URL of affected sites ==
    http://http://www.facebook.com (always) and www.YouTube.com (sometimes)

    There does appear to be any support whatsoever from mighty "non caring" FIREFOX & people are getting fed up. We may as well try another system, if they can't be bothered to provide any support for their system, we can't be bothered to use their system.
    Brianeng

  • HT1222 hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package "mzps6175750011235388779.pkg"

    hi i have a apple imac 27 2009 and i have purchased mountain lion but near the end it says An error occurred while running scripts from the package “mzps6175750011235388779.pkg”
    can you please advise me what should i do to fix this

    Some ideas.
    https://discussions.apple.com/message/20034600#20034600

  • Error while running OMBPlus Script

    Hi,
    I am getting below error while running OMBPlus script.
    +../../../jdk/bin/java[87]: getconf: not found+
    OMB*Plus: Release 9.2.0.4.0
    Copyright (c) 2003 Oracle Corporation. All rights reserved.
    Exception in thread "main"
    I am not even able to run ./OMBPlus.sh.
    Can anyone help me on this?
    Thanks in advance,
    Regards,
    Sachin Bansal

    Hi Nawneet,
    Thanks for the reply..
    I tried the same thing on our server. But there also I am getting the same error.
    Am I missing anything?
    What I am doing is:
    1. Created one .tcl file (deploy_map.tcl).
    2. Going to path where OMBPlus.sh resides i.e.$OWB_HOME/bin/unix
    3.Then I called ./OMBPlus.sh and passed the path of deploy_map.tcl as an argument.
    For e.g. if path of deploy_map.tcl is /abc/xyz/deploy_map.tcl
    Then I would call OMBPlus like below:
    ./OMBPlus.sh /abc/xyz/deploy_map.tcl
    Even if I would not pass any argument then still it should be connected to OMBPlus. But that's not happening.
    Regards,
    Sachin Bansal

  • Ecc6.0 , po return with excise using cst some error is showing in the po

    hai all
        i am facing one problem in the return po with excise. i entered vendor and line items and selected the return tick mark
    when i was clicking the return tick mark this error is showing "
    Negative delivery costs not allowed". This is releated with exicise and cst . please help me out how to processed for this return po .
    jcdb,jcv1 and cst
    ravi

    During normal PO, the condition type is taking as +ve and the accounting doc posting is correct during GR and LIV.
    However, during return PO, we would like to have the same flow except that it is posting reversely from the normal PO. that is why we need the condition type to be -ve. The condition type is using conditiong category 'B' delivery costs. Check Plus/minus setting in M/06.
    Regards,
    Sandesh Sawant

  • Installing on Windows 7, IE, get error message "run time error has occured in script"

    when attempting to install latest version of Flash Player on Windows 7 computer with IE, during installation I get message "runtime error has occured in script".
    & installation ceases.  what can I do to obtain Flash Player on my computer?  Aaron

    100,000 Thank you"s!    I tried what you suggested, and can now
    watch PLAYON through my Roku on the TV set.   Previously, Roku insisted that I have Adobe Flash Player.   Aaron
    Senators Should Wear Uniforms like NASCAR Drivers So We Could Identify Their Corporate Sponsors.

  • I started the newest update for my phone but when it started installing it to the phone, a error message showed up and now my phone is stuck in recovery mode and itunes wont recognize it. what do i do?

    started the newest update for my phone but when it started installing it to the phone, a error message showed up and now my phone is stuck in recovery mode and itunes wont recognize it. what do i do?

    Any numbers or other details on the mesages given?
    Did you try to connect in recovery mode again? iOS: Unable to update or restore
    In case your network connection timed out, check your security software settings: iTunes for Windows: Troubleshooting security software issues

  • Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator

    Issue : In sharepoint 2013, I am experiening below error while using filter in the list view due to the number of items in this list exceeds the list view threshold, which is 10000 items. Tasks that cause excessive server load (such as those
    involving all list items) are currently prohibited.
    Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator
    Could you please suggest a way to avoid this issue apart from incrementing the list view threshold limit .
    Prashanth

    Reorganizing content, or creating more specific views. sharepoint is warning you that the content is structured in such a way that it can cause performance issues, which should be addressed in some way.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • I am unable to install photoshop elements13 due to an error. it shows no error code but does say - This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements.

    i am unable to install photoshop elements13 due to an error. it shows no error code but does say - This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements.

    download the 64bit installer,
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

Maybe you are looking for

  • Oracle.jbo.RowCreateException: JBO-25017: Error while creating a new ROW

    I am trying same multi step PO example. I have created a search page and there are 3 other pages for PO Header, PO Line and Review/Submit Page. I am coming on 2nd page(creating Line Item) and when I click on create new item record I am getting this e

  • Problem with New Macbook 2.2ghz and 2x2gb Sodimm Ram 800mhz

    Hi..I bought the newest Macbook white 2.2ghz Santa Rosa and I wanted to upgrade default ram up to 4 gb 800mhz. I bought 2 Sodimm Adata..I tried to put them toghether inside my macbook and it doesn't boot.I click power button but it only turns on slee

  • Does Dell24WPF-HC work fine with McPRO?

    Please help. I cannot afford the 23'ACD and looking at the Dell 2407WPF-HC as an alternative to use with the standard 2.66GhZ/Nvidia GeForce7300 256Mb. PCBuyit.co.uk has an interesting price, but my main concers are: 1. will it work with the MacPro?

  • Audio Export - Adobe Media Encoder

    Kudos to the Adobe team for making the export of frames soooo much better in the 4.1 update. Can you please do the same for audio export? I really don't enjoy spending 10 minutes to export a 30 second section of audio. Cheers.

  • Exporting RAW into JPEG, color differences

    I've done a lot of searching in these forums and I can't find a solution to my problem. I just spent 30+ hours editing a set of 123 wedding photos in RAW file format. When I export to JPEG, the colors change on just about every photo. I understand th