Help understand about values retrieved by Tom Kyte script for my LOB segment
I have the LOB segment. When I use Tom Kyte show_space script
()https://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:14339684180676) have this output:
Unformatted blocks... 107
FS1 Blocks (0-25)... 0
FS2 Blocks (25-50)... 0
FS3 Blocks (50-75)... 0
FS4 Blocks (75-100)... 0
Complete blocks... 859 438
Total blocks... 1 746 304
Total number of bytes... 14,305,722,368
Total MB... 13 643
Unused blocks... 0
Unused bytes... 0
Used in last Ext FileId... 5
Used in last Ext BlockId... 1 261 056
Used in last block... 128
I have only full blocks = 859 438, but Total of blocks = 1 746 304 why so?
Looks like you chunk's size 16 k - Oracle seems to watch only the headers of piece in this code; so you expect the segment number raw blocks to be twice the space 'blocks', as this report if you are using a size of 8 KB block and a fragment of 16 k size.
Concerning
Jonathan Lewis
Tags: Database
Similar Questions
-
Manual definition of the value axis scaling to a script for two or more axes file
Hi all
I've been using tiara for only a few days so I apologize if it's something really easy to do, but I just can't understand it. I am trying to manually set the value of 'End' for the axis is scaling of a parcel in a "report". I figured out how to set this value to one of the axis value by using the following commands:
Dim oMy2DYAxis
Set oMy2DYAxis = Report.ActiveSheet.Objects.Item ("2DAxis1"). YAxis
oMy2DYAxis.Scaling.End =
However, I can not understand how to do the same, but the value that I have on the right side of the plot for the second axis. I'm sure it must be possible to do this for each y axis, but how can it be done?
And for extra credit! How would I be able to do a map in the report other than the 'ActiveSheet '? Is there something similar to ' Report.Sheet ("Page 1"). ... "that could be used as opposed to" Report.ActiveSheet. " ...'?
Thank you!
-Simeon
Hi Siliev,
Here is an example:
Dim oCurrSheet, iLoop
Set oCurrSheet = Report.ActiveSheet.Objects ("2D-Axis1")iLoop = 1 to oCurrSheet.YAxisList.Count
MsgBox "Y axis" & iLoop & + "\n" & _
«Start: "& oCurrSheet.YAxisList (iLoop).» Scaling.Begin & + "\n" & _
"End:"& oCurrSheet.YAxisList (iLoop). " Scaling.End
next
Greetings
Walter
-
Strange events with examples from the book to Tom Kyte. 10 XE
'
Hi all
I was twiddling my thumbs and decided to revisit some of the fundamentals of Oracle.
Book of Tom Kyte - Effective Oracle of design. Examples on p. 141-142 (to do with
bind variables). Typed in the example and got a reaction very strange system.
It consists of a 'DEMO_141_PKG' package with 1 procedure 'parse_bind_execute_close '.
that is called by the QUICKFIX142 procedure. The system then proceeds to go mental.
If someone could explain to me what is happening, I would be grateful. I'm under 10 XE on
Ubuntu Linux.
On the execution of the code (below), I get this in the "Run" window of SQLDeveloper.
And the window just a continuous record of SQLDevloper watchConnecting to the database demo. ORA-01000: maximum open cursors exceeded ORA-06512: at "SYS.DBMS_SYS_SQL", line 884 ORA-06512: at "SYS.DBMS_SQL", line 9 ORA-06512: at "DEMO.DEMO_141_PKG", line 17 ORA-06512: at "DEMO.QUICKFIX142", line 8 ORA-06512: at line 2
flow of the text below - I have to kill the sessions as a SYS of
within Oracle - the process Terminate of SQLDeveloper
fails to kill this runaway process.
Record output
Now, the code is here for those who would like to help me get to the bottom of this phenomenon.SEVERE 2474100 1 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded SEVERE 2474099 1 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded SEVERE 2474098 0 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded SEVERE 2474097 0 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded SEVERE 2474096 1 oracle.dbtools.raptor.runner.DBStarterFactory logDbmsOutput: ORA-01000: maximum open cursors exceeded <Millions of lines snipped - it just keeps going>
and the above is called herecreate or replace PACKAGE DEMO_141_PKG AS procedure parse_bind_execute_close(p_input in varchar2); END DEMO_141_PKG; create or replace PACKAGE BODY DEMO_141_PKG AS g_first_time boolean := TRUE; g_cursor number; procedure parse_bind_execute_close(p_input in varchar2) AS l_cursor number; l_output varchar2(4000); l_status number; BEGIN l_cursor := dbms_sql.open_cursor; dbms_sql.parse(l_cursor, 'SELECT * FROM Dual WHERE Dummy = :x', dbms_sql.native); dbms_sql.bind_variable(l_cursor, ':x', p_input); dbms_sql.define_column(l_cursor, 1, l_output, 4000); l_status := dbms_sql.execute(l_cursor); if(dbms_sql.fetch_rows(l_cursor) <= 0) then l_output := null; else dbms_sql.column_value(l_cursor, 1, l_output); end if; END parse_bind_execute_close; END DEMO_141_PKG;
Published by: Paulie August 12, 2011 14:18create or replace PROCEDURE QUICKFIX142 AS BEGIN -- demo.runstats_pkg.rs_start; // Don't worry about runstats - it's a Tom Kyte package for -- timings and measuring contention. execute immediate 'alter session set session_cached_cursors = 0'; for i in 1..1000 loop DEMO_141_PKG.parse_bind_execute_close('Y'); end loop; -- runstats_pkg.rs_middle; execute immediate 'alter session set session_cached_cursors = 100'; // reduced this to 50, 20, 10 & 5 - no effect. for i in 1..1000 loop DEMO_141_PKG.parse_bind_execute_close('Y'); end loop; -- runstats_pkg.rs_stop; END QUICKFIX142;
If you modify the called package by adding:
-- CLOSE THE CURSOR dbms_sql.close_cursor(l_cursor);
in
procedure parse_bind_execute_close(p_input in varchar2) AS l_cursor number; l_output varchar2(4000); l_status number; BEGIN l_cursor := dbms_sql.open_cursor; dbms_sql.parse(l_cursor, 'SELECT * FROM Dual WHERE Dummy = :x', dbms_sql.native); dbms_sql.bind_variable(l_cursor, ':x', p_input); dbms_sql.define_column(l_cursor, 1, l_output, 4000); l_status := dbms_sql.execute(l_cursor); if(dbms_sql.fetch_rows(l_cursor) <= 0) then l_output := null; else dbms_sql.column_value(l_cursor, 1, l_output); end if; -- CLOSE THE CURSOR dbms_sql.close_cursor(l_cursor); END parse_bind_execute_close; END DEMO_141_PKG;
Then the script runs with the default OPEN_CURSORS parameter:
SQL> connect / as sysdba Connected. SQL> show parameter open_c NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ open_cursors integer 300 SQL> connect test/test Connected. SQL> exec quickfix142; PL/SQL procedure successfully completed.
-
Help understand the Double billing for the same product on the same account
Recently, I realized that I make double charge on my account from creative cloud for the same exact items charged to the exact same credit card. In addition, I must say that I had two accounts still somehow. It is because I have lost access to the associated e-mail account and do could not connect. When I talked to Adobe at this time there they notify that I have create a new account with a new email, I did. That being said, every month for almost a year I was charged $31,79 and the new account as well. (I admit I'm not very good about checking all my automatic subscriptions online monthly but supposed to Adobe as a company highly and popular, could do things). I called and the first representative I spoke with today understands the problem and transferred to me for a refund, however once transferred, the representative was not only do not understand but rude and gave me a refund for 6 months. As of today, they canceled the account I have not used and me be charged twice a month for but only paid 6 months more than 12 months of double billing. The representative tried to tell me he was doing me a favor because I wasn't in charge of normal early termination fees. It has become so confusing and so I did at that moment that I said I would get more help here in the forums...
1. I'm trying to understand why in the world they would even charge me a cancellation fee when I was clearly NOT cancellation of an account, just to make a change, which was made according to the way which they charged me and, of course, who they do not now recognize?
2. How can I reload the same exact account for exactly the same product with activation of the said product as a single computer, and no other user (not to mention that I just used the product)?
Any help or advice would be appreciated!
All first of all my apologies for the not so pleasant experience.
The Adobe ID here in the forum has a CC bought in March 2016 with no cases registered.
I understand that this is for another subscription CC, could you please me message in private closed, the file number or the number of order which you have been invoiced in duplicate.
I can probably follow that.
Concerning
Stéphane
-
Need help displaying the value of field in another!
I have a problem, I'm sure is simple but I can't understand it.
I would like to create a field that displays the value of a field point selecteed in drop down. For example, I created a drop down menu which has 3 times that I have assigned values to each:
Items in drop-down list
point: Unlimited time export assigned value: 4 000,00
point: 8-hours coverage export value assigned: 3,000.00
point: 5 hours Covrage export value assigned: 2,000.00
This drop-down list is named "CoverageTime".
I want to create a text called 'Price' field that will display the value of the selected 'CoverageTime' element drop-down list.
For example, if I chose "Unlimited" (which I have highlighted as 4,000.00) in the drop-down list, the 'Price' of text field should display the value of 'CoverageTime' of 4 000,00.
As you can see in my screenshot, I have selected ' Unlimted Time'. The value that I put to this element from the drop-down list is 4,000.00. But the price text field does not the value of the element "Unlimited time", selected in the drop-down list.
How to make this happen? (Sorry for the picture on the side)
I'm not sure what you mean about #1 (there is nowhere where to put the code in the tab Options), but it's okay because the second is on the right track. But to set the value of the field, assign anything you want event.value. So the correct code for the custom script to calculate the price of the text field:
The value of this field for the price of the value selected from the drop-down list
Event.Value = getField("CoverageTime").value;
-
I need help I want to retrieve my mac pro book
I need help I want to retrieve my mac pro book and now I can not bcz Yosimoto os is not avilabe what can do?
< object edited by host >
If you have installed Yosemite by downloading it from the App Store, it will be in your App Store purchases tab. If Yosemite is currently installed, when you start in the recovery Partition (command - R on a restart), you can reinstall Yosemite. In the recovery Partition, you can also restore Time machine and disk utility is available.
-
Execute and return a value (or object) from another script
I wish I could have some of the functions of the little that I often use in my scripts, just like seporate scripts. so I can then update in one place and do not copy in every script, I want to use them in.
I don't know if this is possible at all. But I'd love to be able to just call them and return of their share values somehow.
for example
Swatches of color key code, I need:
var inCutColorCMYK = cmykColor(50, 0, 100, 0); var intCutSPOT = makeSwatch("CutIN", inCutColorCMYK);
so I have these functions I have tweeked/found:
function makeSwatch( swName, swCol) { var doc = app.activeDocument; var sel = doc.selection; if (!inCollection(doc.swatches, swName)) { var aSwatch = doc.spots.add(); aSwatch.name = swName; aSwatch.color = swCol; aSwatch.tint = 100; aSwatch.colorType = ColorModel.SPOT; var aSwatchSpot = new SpotColor(); aSwatchSpot.spot = aSwatch; return aSwatchSpot; }else{ return doc.swatches.getByName(swName); } }; function cmykColor(c, m, y, k) { var newCMYK = new CMYKColor(); newCMYK.cyan = c; newCMYK.magenta = m; newCMYK.yellow = y; newCMYK.black = k; return newCMYK; }; function inCollection(collection, nameString) { var exists = false; try{ for (var i = 0; i < collection.length; i++) { if (collection[i].name == nameString) { exists = true; } } }catch(e){//alert("Illustrator needs drop kicked!!\nPlease restart Illustrator :/\n\n"+e) } return exists; };
in any case! I keep finding my self using functions like that again and again new scripts and hope there is a way to do this!
Any help is appreciated!
-Boyd
You have the file a.jsx, something like myLibrary.jsx, and in it, you can have all the functions for future use. In the file, it can look like this:
------------------------------------ Library file -----------------------------------
#target illustrator
function MyLibrary() {}
this.cmykColor = function (c, m, y, k) {}
var newCMYK = new CMYKColor();
newCMYK.cyan = c;
newCMYK.magenta = m;
newCMYK.yellow = y;
newCMYK.black = k;
Return newCMYK;
};
function applyFillColorTo (item, color) {}
item.fillColor = color;
}
function CataloguedPathItem (pathItem) {}
var p = pathItem;
p.applyFillColor = {function (color)}
applyFillColorTo (this, color);
};
return p;
}
this.cataloguedPathItem = {function (pathItem)}
var p = new CataloguedPathItem (pathItem);
return p;
}
};
----------------------------------------------------------------------------------------
And then you can understand and use this file in other scripts, like here:
-------------------------------------- Script File ---------------------------------#target illustrator
#include 'C:\\Users\\Me\\Desktop\\My Adobe Scripts\\Illustrator\\MyLibrary.jsx.
function test() {}
var MyLib = new MyLibrary(); the script library is used as an object - elements of its scope of application are available through point (.) as mylib.myFunction ();
If (app.documents.length > 0) {}
var doc = app.activeDocument;
If (doc.selection.length > 0) {}
var MonElement = mylib.cataloguedPathItem(doc.selection[0]);
var mylib.cmykColor (0,100,50,0) = myColor;
myItem.applyFillColor (myColor);
}
} else {}
Alert ("there is no open document.");
}
}
test();
----------------------------------------------------------------------------------------
The colors test script just a pathItem, but it uses functions from the inside of the object of 'library' to power the process. Note that to use the library of color a path implied instantiate this path as a custom which is a 'applyFillColor' method that uses a function of the scope of the library (called "applyFillColorTo") for power. Then, we can not simply the function "applyFillColorTo" use within the scope of the Script file because it is protected by the MyLibrary object.
-
Hi, I want to write a program that can turn on the LED when a range of value, this is the threshold and only when the value does not reach the threshold for a period of time, say 5 seconds, then the LED will turn off, otherwise it will remain. How can I achieve this in labview? Can someone help me? Really thanks!
I assume that you use a while loop to keep the updated value.
Add a record to offset to your looping it initialize with a U32 (time in ms)
Add the registry to offset to your loop that keeps the previous value of your bool
When your reaches the threshold value => the light and set the current time in your shift register.
In the next iteration of the loop weather check value is still above threshold
=> Y-online previous set to true?
=> Y-online the next iteration
-Online N => turn switch on and set the current time in your shift register.
-Online N => subtract the time current less time shift record-online more then 5 seconds?
=> Is => keep turning on
-Online N => turn given
-
I'm about to upgrade premium creative design cs4 for I mac 10.11.2. can I still use it? If it is not that I am retired and I have only some minimum number of works during the year, I can upgrde at a regular bundel and to add a tax when I get to work, and/or monthly pay depending on my work schedule?
Move the discussion to the download, installation, commissioning.
Please check the terms of System. Adobe Creative Suite 4, Point products. You can upgrade to the App only and add more applications each time as needed. Please check: pricing and membership creative cloud plans | Adobe Creative Cloud for more details on the plans and prices.
I hope this helps.
-
Retrieve the tasks and events for a Virtual Machine
Hello everyone.
This question may seem trivial to some people here, but I cannot make it work: I would like to use VCO to retrieve the tasks and events for a specific virtual machine (IN parameter). Can someone help me to do?
Best regards
As I said, it must create a collector by using the createCollectorForTasks method in VcTaskManager.
The parameter of this method is an instance of VcTaskFilterSpec, in which specify you the object to filter (in your case, the reference entity VM)
You will get a VcTaskHistoryCollector which can only be traversed by using the methods readNextTasks and readPreviousTasks.
// Get TaskManager service var sdktm = vm.sdkConnection.taskManager; // Create FilterSpec containing vm reference to filter var filter = new VcTaskFilterSpec(); var spec = new VcTaskFilterSpecByEntity(); spec.entity = vm.reference; spec.recursion = VcTaskFilterSpecRecursionOption.self; filter.entity = spec; // Create collector var collector = sdktm.createCollectorForTasks(filter); collector.resetCollector(); // Browse all pages returned by collector (10 entries per page) var taskPage; while ((taskPage = collector.readPreviousTasks(10)) != null) { for each (var task in taskPage) { System.log("Task: " + task.name + " -> " + task.startTime); } }
-
ORA-01438: value larger than the precision specified for this column?
Hi guys:
I'm stuck in this error when I try to do an insert into a table. My Source has 581K records, but only this code and the values described below gives me a headache.
Here's the DDL for the source and the target.
CREATE TABLE WRK. VL_FREED
('CODE' VARCHAR2 (9))
NUMBER (15.7) "VL_FREED".
)
CREATE TABLE WRK. VL_RENEG
('CODE' VARCHAR2 (9))
NUMBER (15.7) "VL_RENEG".
)
CREATE TABLE WRK. WRK_XPTO
('CODE' VARCHAR2 (9))
NUMBER (15,10) "VL_XPTO".
)
------------------------------------------------
The values for the VL_FREED AND VL_RENEG tables:
CODE = 458330728 (same on both)
VL_FREED = 191245.3000000
VL_RENEG = 74095.3800000
-------------------------------------------------
When I try to run this insert:
INSERT INTO WRK. WRK_XPTO
(
CODE,
VL_XPTO
)
Select
T1. CODE,
T1. VL_FREED - T2. VL_RENEG
of WRK. VL_FREED T1, WRK. VL_RENEG T2
WHERE
(T1. CD_CODE = T2. CODE);
I got the error:
ORA-01438: value larger than the precision specified for the column
But how can this be? The result of 191245.3000000 - 74095.3800000 is not greater than a number (15,10).
Can someone help me on this?Number (15,10) means 15 total digits, 10 of which are to the right of the decimal separator, leaving only 5 on the left.
190 000 - 75 000 = 115 000 (6 digits).
-
ORA-01438: value larger than the precision specified for the column '
When inserting the different entries of cheaper products in this table PF_PRODUCT_VIEWS_PROFILE, I'm having this problem of "java.sql.SQLException: ORA-01438: value larger than the precision specified for the column '.»
As I see it in the tables (desc pf4. PF_PRODUCT_VIEWS_PROFILE; & PFCA4 of ESCR. DCS_PRICE_LEVEL;), I see the accuracy for the price of the table PF_PRODUCT_VIEWS_PROFILE as NUMBER (12.7) & accuracy for the price of the table DCS_PRICE_LEVEL as NUMBER (19.7). There is therefore a difference in precision 7 units for the price in the PF_PRODUCT_VIEWS_PROFILE table that is causing this problem. So that would be the solution.
Could you please post my comments, so that I can change the accuracy for the price of the PF_PRODUCT_VIEWS_PROFILE table.
Need to confirm other columns in the table PF_PRODUCT_VIEWS_PROFILE does not exceed their precision values before making this change.Hello
Ideally avoid data loss as you increase the length of the column as it really is. You have to worry about this in the case if you reduce the length. It is always better to be doubly sure, so also check other tables.
see you soon
VT
-
I just wrote about firefox 3.6 with 5.0 for my mac OSX and discovered that my mac will not support it. Is there a way I can recover my lost files and recover the old version?
You can download and install Firefox 3.6 http://www.mozilla.com/firefox/all-older.html
-
I can't find drivers... tried to reload the page for a bunch of times... quiting browser and re open... I pressed the bunch of times update I tried different OS and it still saying "we couldn't retrieve the list of drivers for your product. Please select the operating system"oh and he
Hello
Thanks for posting in the HP Support forum.
It seems it was some website temporary glitch - it works for me now. Could you try again?
-
I have the HP Deskjet 3050 J610a. Printer worked fine on my machine Win 8.1. Just got reimagee to the same machine (Win 8.1) and had to reload my drivers for the printer. Site displays the following message when I select 3050 J610a with Windows OS. I can't add the printer to the computer as pilot given result is not available... was here last year.
Anyone has a suggestion. My other computer on Win 10 works and driver is available.
We were able to retrieve the list of drivers for your product. Please select the desired operating system and select "Update" for a new attempt
Hello
It is still there:
http://ftp.HP.com/pub/softlib/software12/COL34584/al-109394-3/DJ3050_J610_1315-1.exe
A quick victory is first install it on your computer. Please download and install on your machine.
Kind regards.
Maybe you are looking for
-
HP Color LaserJet M553: M553 - cannot print two-sided
Hello We have a new HP Color Laserjet M553 (B5L24A) which is not allowing us to automatic duplex. He is currently runinng via a Windows 2008 R2 server and is network connected via IP static on the Ethernet cable. I tried several steps of troubleshoo
-
Smartphones blackBerry torch freezes on reboot screen
Hi, I got my flashlight since early January, and there is no water or physical damage to him. Everything was spectacular work until today. This morning I changed the security settings for the AT & T Live TV app and the Pandora app. He then asked a re
-
Installer of creative cloud: persistent error 201 without any network problem
HelloI had endless problems for creative cloud Setup to install correctly. He was to launch a 201 error during installation, but when looking what is the error, it says I have a network problem? It is the only app that says I have a connection error
-
11.1.2.3 Jdev upload file with Spanish content to the table
I am trying to download the content of files that have Spanish letters. He gets transferred to the column of the table, but when she showed on the chart on page jspx, it has some weird characters with '? ' etc.If I create a row in this table and ente
-
Impossible update of Lightroom CC via creative cloud
I use windows 8.1 and during the winter, I saw that there is an update to lightroom. A few days ago, I tried to update through the creative cloud but I get an errorMessage. More details he said that it was impossible to download the update. Error 49.