Oracle Lite 10.3.0: how to find out the consumed size of a BLOB column
Hi,
we are developing an app that utilizes an Oracle Lite database and so far I have just been unable to find a reasonable way to determine the size of stored binary data.
All the "usual" ways we aware of from "main" Oracle just don't seem to work with OLIte (ie SELECT dbms_lob.getlength(file_data) from APPS.CSL_LOBS) so how does one find out the size of blob objects?
Thanks in advance
Assuming BLOBs are not stored in-line:
SQL> desc pm.print_media
Name Null? Type
PRODUCT_ID NOT NULL NUMBER(6)
AD_ID NOT NULL NUMBER(6)
AD_COMPOSITE BLOB
AD_SOURCETEXT CLOB
AD_FINALTEXT CLOB
AD_FLTEXTN NCLOB
AD_TEXTDOCS_NTAB PM.TEXTDOC_TAB
AD_PHOTO BLOB
AD_GRAPHIC BINARY FILE LOB
AD_HEADER PM.ADHEADER_TYP
SQL> select segment_name,
2 index_name
3 from dba_lobs
4 where owner = 'PM'
5 and table_name = 'PRINT_MEDIA'
6 and column_name = 'AD_COMPOSITE'
7 /
SEGMENT_NAME INDEX_NAME
SYS_LOB0000051988C00003$$ SYS_IL0000051988C00003$$
SQL> select sum(bytes)
2 from dba_segments
3 where owner = 'PM'
4 and segment_name in (
5 'SYS_LOB0000051988C00003$$',
6 'SYS_IL0000051988C00003$$'
7 )
8 /
SUM(BYTES)
262144
SQL> SY.
Similar Messages
-
How to find out the image size?
How to find out the image size values(Width and height) in illustrator CS3 using any script. I tried but i got only the document height and width. I need to find out the image BoundingBox value of width and height. Kindly advice me.
Try this.
tell application "Adobe Illustrator"
set heightImage to get height of raster item 1 of current layer of current document
set widthImage to get width of raster item 1 of current layer of current document
display dialog (heightImage & " X " & widthImage) as string
end tell
JaiMS -
How to find out the transaction size
Hai
Is it possible ,how to find out the size of transaction ?
Any one idea about this should be appreciated
Regards
mohanHai
Is it possible ,how to find out the size of transaction ?
Any one idea about this should be appreciated
Regards
mohan create a small rollback segment to start with, with small initial and next extent sizes and maxextents unlimited.
assign this rollback segment to the test session and run the particular transaction.
query the view v$rollstat to see how much the rollback segment has extended.
this is roughly your transaction size. this may not accurate but its give you
a general idea of how much data is generated. -
How to find out the database-size
Hello,
how can I find out the size of the database.
I created the user as below. I defined the size of the database to 2MB. Now I want to know how much is the size of the database.
CREATE USER oemer
IDENTIFIED BY ...
DEFAULT TABLESPACE system
QUOTA 2M ON system;Actually, since Omer is a veteran poster to the Forms and Reports forums, I doubt that. I think he is making a much more interesting journey: from front-end to back-end.
I'll be a bit more helpful this morning.
Databases are ways of organising disk space to store data. Fundamentally they consist of OS files, data files. The RDBMS handles by grouping them into tablespaces. When we build tables we assign them to a tablespace.
So, the size of the database is the sum of its datafiles. Of course, some tablespaces are used for sorting and holding undo information, so the size of the database for the purposes of persisting data is:
SELECT count(x.tablespace_name) AS total_TS, sum(x.MB) AS total_mb, sum(x.free_mb) AS total_free_mb
FROM ( SELECT t.tablespace_name, sum(d.bytes)/1048576 AS mb, sum(f.bytes)/1048576 AS free_mb
FROM dba_free_space f, dba_data_files d, dba_tablespaces t
WHERE t.contents = 'PERMANENT'
AND d.tablespace_name = t.tablespace_name
AND d.file_id = f.file_id
GROUP BY t.tablespace_name ) x
/The SYSTEM tablespace is special. It is used by Oracle to hold the data dictionary, the definitions of all the objects in the database. It should not be used for storing application objects (it affects the performance, apatrt from anything else). That is why we must not use it as a default tablespace.
CREATE USER oemer
IDENTIFIED BY ...
DEFAULT TABLESPACE ts_users
QUOTA 2M ON ts_users; Cheers, APC -
How to find out the database size of a portal?
Hi all!
How can I determine the size of the database of one portal?
Thanks for your help!
PMHey Peter,
Just making sure off the top... you're using the same version of Oracle on both the source ABAP system with DBA Cockpit and the target Portal, correct?
Assuming you answered that in the affirmative, did you make an additional entry in the tnsnames.ora file on the ABAP system? This entry should reflect the target Portal database system to which your connecting. Make your change to the /oracle/<SID>/<DB_Ver>/network/admin/tnsnames.ora file. Once this is complete, copy that file to /sapmnt/<SID>/profile/oracle/tnsnames.ora.
Test your connection again after this.
Here's an excerpt from SAP Note 1261329:
Set up the database connection.
In the file tnsnames.ora that is in the directory (on the application server) to which the environment variable TNS_ADMIN refers, you must add the following entry for each Oracle remote database:
<SID> =
(DESCRIPTION =
(SDU = 32768)
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = TCP)
(PROTOCOL = TCP)
(HOST = <database_host>)
(PORT = <port>)
(CONNECT_DATA =
(SID = <DB_ID>)
This means that
<SID> = the ID that you want to use to access this database ("TNS Name")
<database_host> = host name of the database server
<port> = TCP port of the database listener
<DB_ID> = database ID of the database that is to be connected
Usually, you can copy the entry in the file tnsnames.ora from the relevant file of the remote system. To obtain the contents of tnsnames.ora in the remote system, log on to the remote system as the database user ora<sid> (UNIX or Linux) or as the database user <sid>adm (Windows) on operating system level. There, you call the following command from the command line.
tnsping <SID>
The output specifies the connection parameters and the path to the file sqlnet.ora. The directory in which this file is stored, also includes the file tnsnames.ora.
If you haven't seen them before, check out that note (1261329, 1028624, and 1256322). If you've still got questions, let me know.
-Kevin -
How to find out the Recorset size
Hi all,
I have two questions about JDBC Recordsets.
What is the most efficient way to ask the Recordset object its size?
What does fetchSize mean?
Thank youI believe the best way to get the size, which I am assuming is the count of rows in the Recordset is:
rs.last(); // jump to last row
int rowcnt = rs.getRow(); // Get the rowid
rs.beforeFirst(); // Back where we started"fetchSize" is a hint to your jdbc driver on how many rows you would like brought to your program for every round trip to and from the database. It is a value that is used to help optimize performance of your JDBC application. It is used most often to help optimize batch style processing (looping through large ResultSets) within a JDBC application.
FETCHSIZE EXAMPLE: You are looping through your ResultSet which has 100 rows using a while loop:
while (rs.next()) {
// getxxx...
}Scenario 1) You set the fetchSize=1, jdbc will make 100 round trips to the database to get 100 rows. This would be considered inefficient (100 database calls across a network).
Scenario 2) You set the fetchSize=50, jdbc will make 2 round trips to the database to get 100 rows (2 database calls across the network).
It's really a judgement call on what you want to set the fetchSize to (if anything). Some JDBC drivers ignore it, and others have tuned other parts of their code to work best with the defaults. Still, I have had good success when changing the fetchSize value to 1000 from the default of 10 when looping through a 35,000 row ResultSet (Oracle 9i thin and oci8).
I wouldn't change fetchSize unless you are experiencing performance or resource problems with your application. Think of fetchSize as one of the tools in your toolbox that can be used if you need additional efficiencies (performance) from your application. -
How to find out the Non Partitioned Tables used 2Gb on oracle
Hi team
how to find out the Non Partitioned Tables used > 2Gb on oracle where not is sys & system
regardsheres 1 I made earlier
set pagesize 999
set linesize 132
col owner format a25
col segment_name format a60
select owner,segment_name,segment_type,(bytes/1024/1024)"MB size"
from dba_segments
where owner not in ('SYS','SYSTEM','XDB','MDSYS','SYSMAN') -- edit for taste
and segment_type = 'TABLE'
having (bytes/1024/1024) > 2000
group by bytes, segment_Type, segment_name, owner
order by 4 asc -
How to find out the tables effected information from oracle from
can any one tell me how to find out the tables effected information from oracle form
Hi,
Please refer to the following documents.
Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i
Note: 241628.1 - How to Find the Query That Succeeded Recently?
Regards,
Hussein -
From my session how to find out the version of my oracle client ?
From my session how to find out the version of my oracle client ?
Thanks in advanceClient version?
BTW, trying all forums? -
How to find out the max mem can be allocatedTT for 32 bit Win ?
How to find out the maximum Permanent Data Size and Temporary Data Size that can be allocated for the Oracle Times Ten for 32 bit Windows OS.
Hi Chris,
Am I write in saying that this also depends on shared memory setting as well?
If that is the case, on a platform like window 2003 32-bit, one cannot have more than 4GB of shared memory. Windows Server 2003 includes support for a startup switch (entered in the boot.ini file) that allows the allocation of memory and memory address space. Regardless of the amount of physical memory that is installed on the system, the operating system uses a virtual address space of 4 GB. Out of that amount, by default, 2 GB is allocated to user-mode processes (for example, Oracle or TimesTen) and 2 GB is allocated to kernel-mode processes (for example the operating system and others). In a nutshell on systems that have more than 1 GB of RAM, this startup switch can be used to allocate more memory to applications (3 GB) and less memory to the operating system (1 GB). However, adding adding the /3GB switch to the boot.ini file will not increase the amount of physical RAM memory, the 3GB switch just tells the computer to allocate the existing memory space differently.
For a 32-bit TimesTen the limit on memory cannot be more than 2GB (PermSize+TempSize). For example on Linux 32-bit I have 1024MB and 512MB for these two parameters.
Thanks,
Mich -
How to find out the source program file in Proposal in Sales Online in CRM
How to find out the source program file in Proposal in Sales Online in CRM
You can find it in the oracle->apps->prp directory.
It is the $JAVA_HOME -
How to find out the size of files transferred over the SQL * Net?
I am trying to test the Advanced Compress (AC) for 11g Data Guard. When the AC is turned on, the archived log files are supposed to be compressed on the primary database server and sent over SQL*Net, then decompressed on the standby db server. We will see the file sizes are the same on both primary and standby servers. I want to verify that the AC works by monitoring how much data are sent over SQL*Net. Per Oracle, AC uses 35% less of the bandwith. That means the size of the files transferred should be at least 65% of the original size.
Is there a way to find out the size through Oracle utilities? If not, how to find out by OS utilities? OS is Solaris 5.10.
Thanks.I'm not sure this can be done via SQL*Net, but a network packet sniffer between the two servers should be able to help - you might want to contact your network team.
HTH
Srini -
How to find out the Hire date of an employee?
Hi All
What is effective date, Latest start date and other date fields which are are used when we create a new employee?
What is the difference between hire date and joining date?
How to find out the Hire date and joining date of an employee?
Regards
RahmanThe effective dates are related to date tracking. The effective start date shows when this version of the record became effective.
The Hire Date, or Latest Satrt Date shows the date on which the employee was last hired. If he was hired before from 01/01/01 to 31/12/01, then left but was hired again from 01/01/07, the Latest Hired Date would be 01/01/07 and the First Hired Date would be 01/01/01.
When using Oracle HR, datetracking allows you to either correct data (because it was wrong or incomplete), or update it (because a time effective change took place e.g. got married).
The[b] effective dates show when a record was updated. So, if an update was made on 07/02/07, and the update datetrack option was used, the current record would have its effective end date set to 06/02/07 (the day before the update) and a new version would be created with the updates and an effective start date of 07/02/07.
Hope this helps. -
How to find out the rows inserted between a time period.
Hi,
Please help me to solve this.
Table - emp.
Colmns - empno(Primary Key),ename, mgr
How to find out the rows inserted between a time period.
For eg:- Between 02-Oct-2006 1 PM and 03-Oct-2006 2 PM.
regards,
Mathew.Hi,
Maybe work:
For each row, ORA_ROWSCN returns the conservative upper bound system change number (SCN) of the most recent change to the row. This pseudocolumn is useful for determining approximately when a row was last updated. It is not absolutely precise, because Oracle tracks SCNs by transaction committed for the block in which the row resides
e.g.:
SGMS@ORACLE10> create table test(cod number);
Table created.
SGMS@ORACLE10> insert into test values (1);
1 row created.
SGMS@ORACLE10> insert into test values (2);
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> insert into test values (3);
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> select SCN_TO_TIMESTAMP(ora_rowscn),ora_rowscn,cod from test;
SCN_TO_TIMESTAMP(ORA_ROWSCN) ORA_ROWSCN COD
06/11/06 08:56:56,000000000 727707205 1
06/11/06 08:56:56,000000000 727707205 2
06/11/06 08:57:05,000000000 727707210 3Cheers -
In DBI , how to find out the Source Query used for the Report
Hi All,
How to find out the Source Query used to display the data in the DBI Reports or Dashboards. We can get it in Apps Front end by Going to Help and Record Histroty. But DBI Runs in Internet Explorer so i dont know how to get the source query ( SELECT Query ) Used.
In IE we have View --> Source . But that does not help since it gives the HTML Coding and not the SELECT Query used.
If anyone has ever worked on it...Please help me in finding it.
Thanks,
Neeraj ShrivastavaHi neeraj,
You can see the query used to display reports.Follow these steps to get the query.
1)Login to oracle apps
2)Select "Daily Business Intelligence Administrator" responsiblity.
3)Now click on "Enable/Disable Debugging" (Now u enabled debugging)
4)now open the report which you want to see the query of
5)In view source it displays query along with the bind varilables.
Feel free to ping me if you have any doubts
thanks
kittu
Maybe you are looking for
-
My MacBook Pro keeps freezing and not responding correctly.
Okay, so yesterday I finished FaceTiming a friend and I closed my MacBook Pro like I normally do so it can sleep on my account. But when I open it, it keeps crashing (like it shows the screen and then for like 15 seconds it shows a gray screen and th
-
How do I get my old stuff from another computer to a new computer?
I just got a MacBook and i want to transfer all my stuff from my old itunes to my new computer but i dont know how to get all the games and files that i had from a long time ago, help?!
-
ill connect my itouch to my computer via usb port and it will begin to charge but it will not show up in "my computer" please help
-
The difference between SOAP adapter and WS adapter in PI 7.1
Hello all, can anybody explain what is the main difference between SOAP adapter and WS adapter in PI 7.1? I have checked this [link|http://help.sap.com/saphelp_nwpi71/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm] but was not able to fin
-
Hdmi sound problems with m9150f in media center
I am running a pavilion m9150f Q6600 vista 32 bit and GeForce 8500 gt graphics on a sony wega 55" lcd projection tv. Recently I have been having problems with media center sound. Recorded programs from standard channels (2-64) seem fine but hd channe