Count the no of blocks
hi,
If i want to get the no of blocks in the table, to check how much parallelism can be used.
Whats the the way to get it.
I have no of records in each table along with its size.
Eg:
Name No. of records SIZE(GB)
S_ORG_EXT 130266463 129
S_ASSET 368631621 217
S_ADDR_PER 56938642 20
To get the number of blocks in a table, try
SELECT blocks FROM all_tables WHERE owner='...' AND table_name='...';
But this has nothing to do with Instant Client.
Yours,
Laurenz Albe
Similar Messages
-
Count the no. of items in a block by giving a WHERE CLAUSE
I have a Form in Developer 2000.
In that form there is a block.
The block contains 3 columns -- trdate, subcode and wcode
wcode=F stands for Friday. According to the rule here, if a worker is absent (subcode=AB) for 2 days in a week the program should automatically display AB on that Friday.
(i.e. Check the data between Saturday through Thursday. If 2 days are AB then put AB on Friday also)
OR
At the bottom of the form there is a display field.
As we enter data into this table it should update the display field by counting the no. of AB's in a week.
trdate subcode wcode
15/01/2004 NULL
16/01/2004 NULL
17/01/2004 AB
18/01/2004 AB F
19/01/2004 NULLSreenivas,
You may get a quick answer if you post this in the
Forms Forum.
Forms -
How to count the number of dirty and clean block
i want to count the number of dirty and clean block.
because i want to know which datablock is updated.I dont think it is possible to count the no. of dirty and clean blocks. But we can understand the implications of intelligent calculation by understanding when the blocks are marked dirty and clean.
Here are few cases.
There are four definable circumstances under which datablocks are marked dirty, thereby making them eligible for calculation on the next round using intelligent calc.
1. Input Data: Any block created from a data load or lock & send is automatically marked dirty when created.
2. Modified Data: Any block for whom a data cell has been modified is marked dirty and therefore eligible for calculation using intelligent calc on the next calculation round.
3. Ancestors Of Condition 1 & 2
4. Restructure The Database: Blocks changes as a result of outline changes potentially become dirty.
There are three definable circumstances under which Intelligent Calc operates, thereby marking blocks clean.
1. Calc Dim On All Dimensions: When you execute a calc script which contains a CALC ALL statement or CALC DIM statement whose arguments include all dimensions.
2. Set ClearUpdateStatus After: SET CLEARUPDATESTATUS AFTER is a calc script command that will engage Intelligent Calc for any calc script regardless of construction.You typically use this command where you cannot meet the conditions in 1 above for a Calc Dim on all dimensions.
3. Set ClearUpdateStatus Only: SET CLEARUPDATESTATUS ONLY is a calc script command that does not calculate. When included in a calc script, this command only
marks dirty blocks clean. That's all. -
I have the following code:
Import-Module "sqlps" -DisableNameChecking
#####http://www.travisgan.com/2013/03/powershell-and-performance-monitor.html
function ExtractPerfmonData
param(
[string]$server,
[string]$instance
[Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet]$collections
$monitorServer = "MonitoringServerNameHere"
$monitorDB = "MonitoringDatabaseNameHere"
$counters = @(
"\$($instance):Memory Manager\Memory Grants Pending",
"\$($instance):Memory Manager\Target Server Memory (KB)",
"\$($instance):Memory Manager\Total Server Memory (KB)",
"\$($instance):Buffer Manager\Buffer Cache Hit Ratio",
"\$($instance):Buffer Manager\Checkpoint pages/sec",
"\$($instance):Buffer Manager\Page Life Expectancy",
"\$($instance):General Statistics\User Connections",
"\$($instance):General Statistics\Processes Blocked",
"\$($instance):Access Methods\Page Splits/sec",
"\$($instance):SQL Statistics\Batch Requests/sec",
"\$($instance):SQL Statistics\SQL Compilations/sec",
"\$($instance):SQL Statistics\SQL Re-Compilations/sec",
"\$($instance):Locks(_Total)\Lock Waits/sec"
$collections = Get-Counter -ComputerName $server -Counter $counters -SampleInterval 1 -MaxSamples 1
$sampling = $collections.CounterSamples | Select-Object -Property TimeStamp, Path, Cookedvalue
$xmlString = $sampling | ConvertTo-Xml -As String
$query = "dbo.usp_InsertPerfmonCounters_SQLServer '$xmlString';"
Invoke-Sqlcmd -ServerInstance $monitorServer -Database $monitorDB -Query $query
#####ExtractPerfmonData -server "YourRemoteServerName" -instance "MSSQL`$SQLTest"
ExtractPerfmonData -server "ServerName1Here" -instance "SQLSERVER"
ExtractPerfmonData -server "ServerName2Here" -instance "SQLSERVER"
ExtractPerfmonData -server "ServerName3Here" -instance "MSSQL`$InstanceNameHere"
ExtractPerfmonData -server "ServerName4Here" -instance "SQLSERVER"
(I have 93 instances listed; here I just gave a sample of 4.)
For only one instance I get the following error message:
Get-Counter : The
\\ServerNameHere2\\SQLSERVER:Locks(_Total)\Lock Waits/sec performance counter path is not valid.
All of the instances should have been set up the same, so I am confused as to why this error only occurs on this one instance. I do not know where to look. Has anyone ever seen this type of error before?
lcerniHere is the output of the first script:
CounterSetName
... (eliminating non sql server counters here)
SQLAgent:Alerts
SQLAgent:Jobs
SQLAgent:JobSteps
SQLAgent:Statistics
SQLServer:Access Methods
SQLServer:Availability Replica SQLServer:Backup Device
SQLServer:Batch Resp Statistics
SQLServer:Broker Activation
SQLServer:Broker Statistics
SQLServer:Broker TO Statistics
SQLServer:Broker/DBM Transport
SQLServer:Buffer Manager
SQLServer:Buffer Node
SQLServer:Catalog Metadata
SQLServer:CLR
SQLServer:Cursor Manager by Type
SQLServer:Cursor Manager Total
SQLServer:Database Mirroring
SQLServer:Database Replica
SQLServer:Databases
SQLServer:Deprecated Features
SQLServer:Exec Statistics
SQLServer:FileTable
SQLServer:General Statistics
SQLServer:Latches
SQLServer:Locks
SQLServer:Memory Broker Clerks
SQLServer:Memory Manager
SQLServer:Memory Node
SQLServer:Plan Cache
SQLServer:Query Execution
SQLServer:Replication Agents
SQLServer:Replication Dist.
SQLServer:Replication Logreader
SQLServer:Replication Merge
SQLServer:Replication Snapshot
SQLServer:Resource Pool Stats
SQLServer:SQL Errors
SQLServer:SQL Statistics
SQLServer:Transactions
SQLServer:User Settable
SQLServer:Wait Statistics
SQLServer:Workload Group Stats
... (eliminating non sql server counters here)
lcerni -
A column that counts the records......need some help
say i have a table with values {a, b, c, d, f};
i want a column that counts the rows of these records with out putting the value manually.
COL1 COL2
0 a
1 b
2 c
3 d
4 f
I have created a data block (wizard) for inserting the values into the table. But i want it to insert the values in COL1 automatically. Seems easy but i dont seem to be able to figure this out...with tab1 as
(select 'a' col2 from dual
union all
select 'b' col2 from dual
union all
select 'c' col2 from dual
union all
select 'd' col2 from dual
union all
select 'f' col2 from dual
-- End of test data
select rownum - 1 col1, col2 from
(select col2 from tab1 order by col2)
COL1 COL2
0 a
1 b
2 c
3 d
4 f Regards
Dmytro -
How to count the pulses of an incrementa​l encoder with PCI-6010?
Hi everyone,
I am trying to use an incremental encoder and PCI-6010 card to measure the speed of a rotary shaft in Labview 2011. I need to use the counter to count the numbers of the pulses that the encoder generates but I have some problems there to do so.
I connected the encoder signal to the counter source (PFI0) and built a daq assistant block in the Labview (Acquire signals -> Counter Input -> Edge Count -> ctr0) and it is set as shown in the figure. The problem is that no matter how I turn the shaft the measured value will always be 0 although the pulses can be seen very clearly on the O-scope.
I suppose I must have made a very simple mistake. Could anyone help me on that please?
Thank you.Hi YShZh,
The current Acquisition Mode setting is set to "1 Sample (On Demand)" and will therefore only ever give you the first count value. The fist count value is equal to the initial count value, which in your case is 0.
Try changing the acquisition mode to either N Samples or Continuous Samples.
Kind regards,
Marshall B
Applications Engineer
National Instruments UK & Ireland -
How to count the no of record in grid.
Hi Experts,
I have one database block & this is bolck has contain 4 non database item is there. In database block has contain the id and description is non database block item. While i m querying the data description is shown depends up on ID. It is in grid. How to count the no of record in grid. My code is
LV_CUR_ITM :=:SYSTEM.CURSOR_RECORD;
FOR I IN 1.. LV_CUR_ITM LOOP
LAST_RECORD;
SELECT NSN_NO INTO :ORD_DIS_NSN_ITEM_DET.NSN_NO
FROM NSN_MST WHERE NSN_ID= :ORD_DIS_NSN_ITEM_DET.NSN_ID;
SELECT FOB_PRICE INTO :ORD_DIS_NSN_ITEM_DET.FOB_PRICE
FROM PRODUCT_SUPPLIER WHERE PRD_ID_NUMBER= :ORD_DIS_NSN_ITEM_DET.PRD_ID_NUMBER
AND BAS_ORG_ID_NUMBER=:ORD_DIS_NSN_ITEM_DET.ORG_ID_NUMBER;
SELECT DESCRIPTION INTO :ORD_DIS_NSN_ITEM_DET.PRD_DESC
FROM PRODUCT WHERE ID_NUMBER= :ORD_DIS_NSN_ITEM_DET.PRD_ID_NUMBER;
SELECT FULL_NAME INTO :ORD_DIS_NSN_ITEM_DET.SUPP_NAME
FROM ORGANISATION WHERE ID_NUMBER=:ORD_DIS_NSN_ITEM_DET.ORG_ID_NUMBER;
NEXT_record;
END LOOP;
Thx in advance.Hai,
Add a Non database item to that block, and set the Calculation Mode as Summary, and Summary Function to Count.
Then u will get the total no of records from this text. ( You can hide this, so that the use won't see it. )
OR
go to the Last Record, then
LV_CUR_ITM :=:SYSTEM.CURSOR_RECORD; This will also work.
Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks. -
Finding the number of blocks occupied by a table
Hi,
I need to know how much space is being occupied by a table.
NOTE: I dont need the allocated space of a table. I need the actual space occupied by a table currently.
I have used the following two methods to determine the size, but i have two contradictory answers..
The procedure i have used is:
1. calculate the number of blocks being used.
2. mulitply the number of blocks by db_block_size to get
the space occupied by a table.
I have used two ways to find out the number of blocks, but they both differ.
Let me know which one is correct or is there any way to find out the number of blocks.
1st Method
SQL> analyze table employee estimate statistics;
Table analyzed.
SQL> select table_name, blocks, empty_blocks from dba_tables where table_name='EMPLOYEE';
TABLE_NAME BLOCKS EMPTY_BLOCKS
EMPLOYEE 184999 5000
2nd method to find the number of blocks.
SQL> select count(distinct(substr(dbms_rowid.rowid_to_Restricted(rowid,0),1,8))) from employee;
COUNT(DISTINCT(SUBSTR(DBMS_ROWID.ROWID_TO_RESTRICTED(ROWID,0),1,8)))
165058
From the 1st method i got 184999 as the number of blocks and from 2nd method i got 165058.
Please help me out as soon as possible.
Thanks........If by "the number of blocks occupied by a table" you mean the number of blocks actually containing data, then the best you can do is an approximation. The supplied package DBMS_SPACE contains a procedure called Unused_Space that will give you the number of blocks above the high water mark. It takes 3 input paramters and returns 7 out parameters. You can call it as:
DBMS_SPACE.Unused_Space (owner, obj_name, object_type,
total_blocks, total_bytes, unused_blocks,
unused_bytes, last_used_extent_file_id,
last_used_extent_block_id, last_used_block)The output parameters are:
total_blocks - Number of blocks allocated to the table
total_bytes - Number of bytes allocated to the table
unused_blocks - Number of blocks above the high water mark
unused_bytes - Number of bytes above the high water mark
last_used_extent_file_id - file id containing the last used block
last_used_extent_block_id - block id of the last used block
last_used_block - row slot of the last used block
Note that this does not take into account any free space within block below the high water mark.
HTH
John -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action. -
Adobe Creative Cloud (Desktop) does not work properly. The application is blocked : it could not be launch neither stopped. I'm on MAC Yosemite OS, does anyone know how to remove it properly or to force its stop. It does not appear in the launched applications.
I received no error message. The application was just trying to find applications unsuccessfully.
I am using MAC OS 10.10.1
I tried to uninstall the application but it seems that a kind of deamon is still installed thus providing me to reinstall properly. Do you know where are the elements to remove in order to get my machine just like before ?
Otherwise I would have to reinstall everything and this would be a pain.
Thanks for your help. -
How do I get rid of the annoying "exportPDF" bar on the right side of the screen that blocks much of the document?
Hi soreankles,
To hide the toolbar in Reader, choose View > Show/Hide > Toolbar Items > Hide Toolbars.
Best,
Sara -
Ive got a Mac Pro 2010, bought second hand through eBay. When it comes to update the software, the username is blocked to the previous owner. It appears off and the box goes directly to password. I have tried to reset then to log in in apple store with my login but didn't help. I would appreciate any tips to sort it out
Thanks fellasThat machine did not ship with Mountain Lion (Mac OS X 10.8), so that means the copy of Mountain Lion on the machine was purchased by the former owner and is non-transferable. It is permanently linked to his/her Apple ID, so you cannot update or reinstall it.
What you need to do (which the seller should have done for you) is reinstall the original system that that machine came with. I believe that would be Snow Leopard (Mac OS X 10.6). What you need to do is reinstall that system from the original disks. If the seller did not provide those disks, you can call Apple and get them replaced for a small shipping and handling fee.
For more info, see:
http://www.thesafemac.com/how-to-prepare-your-mac-for-sale/ -
In recent months I have found that I am unable to download or open PDF documents from web pages. Download links either open a blank page in a new tab or do nothing. PDFs that I am unable to view in Firefox can be viewed and/or downloaded in Safari most of the time and Chrome all of the time so I assume the problem is not my computer or operating system. I recently turned off the pop-up blocker but that did not make a difference. The problem has worsened over the past couple months, it appears that more and more web sites are moving to a different protocol for viewing/downloading PDFs. It used to happen occasionally but now I find that I am unable to view a majority - about 75% - of PDFs. I am using Firefox v18 for Mac with Mac OS X 10.6.8.
hello ahegarty, you could try using the [https://addons.mozilla.org/firefox/addon/pdfjs/ PDF Viewer] addon, for more details also see [[PDF files are blank and can't be downloaded on Mac]].
-
Did I make a mistake upgrading to ML? Count the costs!
Talk about your string of circumstances. All I really needed was to eliminate hum from the soundtrack of an oral-history video recording. The simplest solution seemed to be to update iMovie. I was using '09, which has virtually no capability to edit audio.
Well, when I tried to download iMovie '11 I learned that it would not work with Snow Leopard. Since I'd been considering upgrading for some time (but NOT read any fine print), I back-tracked and downloaded Mountain Lion. Then I downloaded and installed iMovie '11.
THEN, I noticed thosse funny marks in my dock. When I tried these icons I got the dreaded message "You can't open the application [AppName] because PowerPC applications are no longer supported."
Apps effected: Adobe CS2; Adobe Bridge; Microsoft Office (2004); Epson Scan.
This was brand-new news to me. I have tried to find out what if anything I can do about the loss of these apps (everyone of them legally-purchased items), and apparently I'm just without alternatives. Current version of CS6, about $600. Cheapest MS Office, $80. This is a BAD TRADE for a $20 OS upgrade!
And Epson Scan? There's one for the books. Epson sends me to the Apple Store, saying that is the only place to get an upgrade. Apple Store sees no problems, and informs me that there are no upgrades available or needed. System Preferences/Print & Scan sees the scanner, so that's not the problem.
About the internal optical drive: Before the OSX upgrade, the drive was working nominally. I know, because I burned a number of disks within the last week or two. Now? The drive appears to recognize music CDs, but it WILL NOT recognize blank disk media. I have tried both Toast Titanium 7 (most recent) and since that wouldn't work I tried OSX's native disk burning function. In neither case will the drive admit that it has a blank disk inserted. I just ruminates for 15-20 seconds and spits the disk out.
I also have an older Plextor external optical drive. But Apple Support itself gives completely mixed counsel regarding whether or not Mountain Lion can be used with an external optical drive. One place says it will work; another place tells you to use a networked computer's optical drive (!); many other places say an external drive won't work at all. Hey Apple, make up your mind!
Now, I'm sure somewhere in fine legal print they informed me that PowerPC apps would no longer work with ML. But that information was well-hidden, and did not surface in any professional reviews I read. So these behaviors were a complete surprise to me, and not the pleasant sort.
Needless to say, I'm left feeling really ill-used by Apple. Sure, I've got an up-to-date operating system, but now I'm left counting the costs. And so should you. The technically-oriented in this community will perhaps sneer at my naivete. But you need to recognize that not all Apple clients are technically up to your standards. Give us a break!! [I myself have been using PCs intensively since the second-generation IBM PC in the late 1970's.]
I'm ticked. In case it's not obvious. And feeling let down by Apple. And I've been a cheer-leader for them for many years.I feel your pain! This happened to me with I replaced my dead iMac G5 with a new Mac Mini in August, 2011 and did not do my usual due diligence on Lion!
Try Apple's Image Capture application, provided for free in the Applications folder with your Epson. I use it all the time for my Epson Artisan 810.
Toast 7 is way too old; I think they are up to 11 or 12 now. But you should be able to burn discs from the Finder in any event.
Which iMac do you have; check the Model Identifier in About this Mac, More Info, System Report.
Since my Mac Mini has no optical drive, I use one that I purchased for $39 from Fry's some years ago to get the ability to burn DL DVDs and it seems to run fine in Lion with Toast 10.
Here is a "canned" answer I give for many in your situation. Study all of this and respond with more information so we can guide you to your solution:
Unfortunately you got caught up in the minor miracle of Rosetta. Originally licensed by Apple when it migrated from the PowerPC CPU platform that it had used from the mid-1990's until the Intel CPU platform in 2006, Rosetta allowed Mac users to continue to use their library of PPC software transparently in emulation.
However, Apple's license to continue to use this technology expired with new releases of OS X commencing with Lion (and now Mountain Lion). While educational efforts have been made over the last 6 years, the fact is that Rosetta was SO successful that many users were caught unaware UNTIL they upgraded to Lion or Mountain Lion.
Workarounds:
1. If your Mac will support it, restore OS X Snow Leopard;
2. If your Mac will support it, partition your hard drive or add an external hard drive and install Snow Leopard into it and use the "dual-boot" method to choose between your PowerPC software or Lion/Mt. Lion;
3. Upgrade your software to Intel compatible versions if they are available, or find alternative software that will open your data files, modify them and save them;
4. Install Snow Leopard Server (with Rosetta) into Parallels or VMWare Fusion for concurrent use of your PowerPC applications with Lion or Mt. Lion:
[click on image to enlarge]
Apple has now restarted to sell Snow Leopard Server at a 95% discount over its original price: only $19.99 + sales tax & shipping; telephone orders only, call 800-MYAPPLE (800-692-7753) - Apple Part Number: MC588Z/A
NOTE: Computer games with complex, 3D or fast motion graphics may not work well or at all in virtualization.
I am surprised that the professional reviews did not mention the lack of Rosetta in Mountain Lion.
When one similarly frustrated poster here on this forum expressed his sentiment that Apple should have posted a big red flag about Mountain Lion not having Rosetta, I pulled out my PowerPC version of Photoshop and created the image above! -
The list of blocked invoices is incomplete
Hello,
I have encountered a situation when running T-code MRBR to list all blocked invoice however get one message as below:
The list of blocked invoices is incomplete
Message no. M8 657
Kindly suggest us why So.
Regards:
Tata Reddy> The list of blocked invoices is incomplete
> Message no. M8 657
If No Invoice is Blocked Stocastically then only you will get this Message.
Please Select Proper Blocking Procedure.
You Can Select
Blocked Due to Variance
Manual Payment Block
If You Select Stocastically Block Option System will show the List if Docuemnts are Stocastically Blocked Otherwise it will throw an error.
Maybe you are looking for
-
Customize Windows 8.1 Start Screen/Start Menu and Minimizing Modern Apps
How can I customize the start up menu? If not on desktop, I cannot minimize a window. Please tell me how.
-
BEx Query Designer,点击新建,选择信息范围时,提示:严重服务器错误
各位好 我在新建bw query时,点击新建按钮,选择信息范围,然后就没反应了,估计10分钟后,弹出一个消息: 严重服务器错误 服务器会话可能已终止:此连接不再存在或不稳定 再次登录到服务器以创建新连接 getnodes: rfc exception 在st22中也查看了,是一个超时的error: The program "SAPLRZX0" has exceeded the maximum permitted runtime without interruption and h
-
SpeedGrade CC 2014.2 Crashes When Shot Matcher Button is Pressed
So I've been trying every troubleshooting step I can think of and ones I've seen in other similar issues. Used to be a support rep so pardon this looking like a trouble ticket: -Restarted App -Restarted Machine -Uninstall/Reinstall App -Gave App 2 m
-
PI 1.2 Heat Maps are offset
Hi, after upgrading to PI 1.2 the heat maps are offset. Worked fine before and also I've noticed that some of my maps do look fine until I reposition an AP on it, then all AP heat maps on that map will then be offset. Has anyone else see this issue?
-
Actually, i'm currently testing a java program that can send voice through the network but i faced problem on only windows 2000. I had tested on windows 98, windows Xp and windows 2000 locally. But when i send voice over 2 windows 2000 PCs, this erro