Space utilization of Oracle XDB
hi,
There is a significant difference in the size of .dbf files for USERS tablespace & size of individual tables.
Total size of .dbf files is 30 GB approx.
Total Table size = 2853 MB
1. Is there a way to find how has Oracle allocated the remaining space (30GB - 2.8 GB) ?
2. Also if there's any free space or ways to utilize this space ?
After file system reaches 100%, oracle no longer inserts data. So I feel that files are not empty. Also I could not resize them.
My Db has just 2 tables.
Tables:
EVENT = 658780 rows = 5 MB
ENTITY = 60930 rows = 352 MB
PATH_TABLE = 2496 MB ( This table is created by XMLINDEX )
USERS tablespace files:
EVTXQ1_Users_02.dbf - 17 GB
EVTXQ1_Users_01.dbf - 3.5 GB
EVTXQ1_Users_03.dbf - 9.8 GB
Note: Query used to find db size:
select sum(BYTES/1024/1024) as TOTAL_MB from user_segments where SEGMENT_NAME = 'ENTITY';
CREATE TABLE ENTITY OF XMLType XMLTYPE store AS SECUREFILE BINARY XML;
create Index ENTITY_IX on ENTITY(object_value) indextype is XDB.XMLIndex;
CREATE TABLE EVENT
( "EUID" VARCHAR2(4000 BYTE) NOT NULL ENABLE,
"SERIALNUM" NUMBER(*,0) NOT NULL ENABLE,
"EVENTS" CLOB,
CONSTRAINT "QUOTE_BOOK_EVENT_PK" PRIMARY KEY ("EUID", "SERIALNUM")
Thanks in advance.
A cool script (and a better one than mine) is the following from Tanel Poder (see Google for his blogsite):
SQL> @tanel_df
TABLESPACE_NAME TotalMB UsedMB FreeMB % Used Ext Used
EXAMPLE 100 79 21 79% YES |################ |
FLOW_1 5 3 2 60% NO |############ |
MEDIAWIKI_STAGE 21438 15247 6191 72% YES |############### |
MEDIAWIKI_STAGE_INDEX 1193 10 1183 1% YES |# |
SYSAUX 1018 955 63 94% YES |################### |
SYSTEM 760 752 8 99% YES |####################|
TEMP 54 54 0 100% YES |####################|
UNDOTBS1 1225 14 1211 2% YES |# |
USERS 6 5 1 84% YES |################# |
9 rows selected.
SQL> l
1 select t.tablespace_name, t.mb "TotalMB", t.mb - nvl(f.mb,0) "UsedMB", nvl(f.mb,0) "FreeMB",
2 lpad(ceil((1-nvl(f.mb,0)/t.mb)*100)||'%', 6) "% Used", t.ext "Ext",
3 '|'||rpad(lpad('#',ceil((1-nvl(f.mb,0)/t.mb)*20),'#'),20,' ')||'|' "Used"
4 from (
5 select tablespace_name, trunc(sum(bytes)/1048576) MB
6 from dba_free_space
7 group by tablespace_name
8 union all
9 select tablespace_name, trunc(sum(bytes_free)/1048576) MB
10 from v$temp_space_header
11 group by tablespace_name
12 ) f, (
13 select tablespace_name, trunc(sum(bytes)/1048576) MB, max(autoextensible) ext
14 from dba_data_files
15 group by tablespace_name
16 union all
17 select tablespace_name, trunc(sum(bytes)/1048576) MB, max(autoextensible) ext
18 from dba_temp_files
19 group by tablespace_name
20 ) t
21 where t.tablespace_name = f.tablespace_name (+)
22* order by t.tablespace_nameIt is not easy to resize (shrink) a tablespace beyond its highwater mark. Search Google for answers (and/or post the question on the "general database" OTN forum).
In normal cases a default created tablespace, is a locally managed one that extends on space location needs. You can find out what the current settings are via dbms_metadata (same method applies to tables etc)
SQL> set long 10000000
SQL> select dbms_metadata.get_ddl('TABLESPACE','MEDIAWIKI_STAGE') from dual;
DBMS_METADATA.GET_DDL('TABLESPACE','MEDIAWIKI_STAGE')
CREATE BIGFILE TABLESPACE "MEDIAWIKI_STAGE" DATAFILE
'/u02/oracle/oradata/BETA1/mediawiki_stage.dbf' SIZE 262144000
AUTOEXTEND ON NEXT 262144000 MAXSIZE 51200M
LOGGING ONLINE PERMANENT BLOCKSIZE 8192
EXTENT MANAGEMENT LOCAL AUTOALLOCATE DEFAULT NOCOMPRESS SEGMENT SPACE MANAGEMENT AUTO
ALTER DATABASE DATAFILE
'/u02/oracle/oradata/BETA1/mediawiki_stage.dbf' RESIZE 22480355328
1 row selected.
SQL> select * from tab;
TNAME TABTYPE CLUSTERID
BASICFILE_XMLSCHEMA TABLE
IDX_CONTENT_TABLE TABLE
OOPS TABLE
TEST_DATA TABLE
WIKI_STAGE TABLE
WIKI_STAGE_ERRORS TABLE
6 rows selected.
SQL> select dbms_metadata.get_ddl('TABLE','BASICFILE_XMLSCHEMA', user) from dual;
DBMS_METADATA.GET_DDL('TABLE','BASICFILE_XMLSCHEMA')
CREATE TABLE "WIKI"."BASICFILE_XMLSCHEMA" OF "SYS"."XMLTYPE"
XMLTYPE STORE AS BASICFILE BINARY XML (
TABLESPACE "MEDIAWIKI_STAGE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS
1 BUFFER_POOL DEFAULT))
XMLSCHEMA "http://www.mediawiki.org/xml/export-0.3/" ELEMENT "page" ID 4360 DISALLOW NONSCHEMA
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "MEDIAWIKI_STAGE"
1 row selected.
Similar Messages
-
Oracle XDB XML requires 10 times the space
Issue:
Oracle XDB uses a lot of disk space. I persisted 10000 records of 24kb each.
Expected size = 24kb * 10000 = 235 MB
Actual size = 2.1G for XMLType table & 633M for CLOB table. Tablespace showed utilization of 91%.
Pls suggest ways to reduce disk usage ?
XMLTYPE table –
Structure = CREATE TABLE mytable OF XMLType XMLTYPE store AS SECUREFILE BINARY XML
Record size = 24kb ( xml measured as bytes )
Rows = 10000
Size of table space on file system (.dbf) = 2.1 GB
CLOB Table –
Structure = Create table mytable ( event CLOB)
Record size = 24kb ( xml measured as bytes )
Rows = 10000
Size of table space on file system (.dbf) = 633 MB
So a CLOB is about 2X and XMLType is 10X.
Is this expected? Can XMLType be tweeked to use less space?The size of the datafile does not necessarily reflect the size of the object(s) within. How did you load the data? Did you perform any updates?
What is the value of bytes in user_segments for the table and the lob segment? How many extents have been allocated to each segment? Try running these queries before the data load against empty tables and then again after the load and note the diff in sizes.
select tablespace_name, segment_name, segment_type, blocks, bytes from user_segments order by tablespace_name, segment_name;
select * from user_extents order by tablespace_name, segment_name, extent_id;What are the attributes of the tablespaces that contain the table and lob segment? Extent sizes, extent allocation method?
select * from user_tablespaces;
select * from user_lobs; -
What is normal swap space utilization on Solaris 10
Hi all,
I'm running Oracle 11.2 on Solaris 10 on a couple of HP Proliant DL 360 servers.
Both servers have 72G of physical RAM with swap space set to 16G on both of them.
Server A has only one database and total memory free = 30G.
Server A
top: Memory: 72G phys mem, 30G free mem, 16G total swap, 16G free swap
swap -s: total: 27249744k bytes allocated + 13873764k reserved = 41123508k used, 1000552k available
prstat:
NPROC USERNAME SWAP RSS MEMORY TIME CPU
257 oracle 39G 38G 53% 222:11:52 5.6%
31 root 57M 59M 0.1% 414:47:23 0.1%
1 smmsp 1776K 7736K 0.0% 0:00:34 0.0%
6 zabbix 4752K 4092K 0.0% 0:58:31 0.0%
4 daemon 3864K 6456K 0.0% 0:00:35 0.0%Server B has two databases and total memory free = 9G.
Server B
top: Memory: 72G phys mem, 9890M free mem, 16G total swap, 16G free swap
swap -s: total: 29223360k bytes allocated + 627312k reserved = 29850672k used, 16926320k available
prstat:
NPROC USERNAME SWAP RSS MEMORY TIME CPU
157 oracle 28G 28G 39% 15:38:41 0.4%
34 root 58M 65M 0.1% 2:56:57 0.0%
6 zabbix 5580K 4816K 0.0% 0:00:31 0.0%
1 smmsp 1776K 5724K 0.0% 0:00:00 0.0%
5 hpsmh 17M 13M 0.0% 0:00:00 0.0%
4 daemon 3204K 5912K 0.0% 0:00:00 0.0%We are using zfs file system on both servers (which is pretty much the standard these days on Solaris).
Recently I got an OEM alert that my swap space on server A had crossed the 95% threshhold on one of the servers.
But when I checked the server, I found that the average swap space utilization was 97.45.
In fact, what actually happened was my swap utilization momentarily dropped below 95% and then returned back to its normal range above 95% which caused the alert to be triggered.
So this made me wonder why my swap space utilization was so high on server A, or is this just normal for Solaris (v.10).
Checking with server B, I see that my swap utilization is only at 63.6% (even though server B has much more physical memory in use by the two databases than server A).
Main question is why is swap utilization so high on server A, which is configured the same as server B and with less physical memory actually in use.
Next question is should I be concerned.
When I check vmstat, I do not see any paging in or out or blocked processes.
See below for server A
Server A
$ vmstat -S 5 5
kthr memory page disk faults cpu
r b w swap free si so pi po fr de sr s0 s1 s2 s5 in sy cs us sy id
0 0 0 1059868 30507176 0 0 0 0 0 0 2 7 -0 123 30 13742 25008 7264 5 2 93
0 0 0 1024076 30982140 0 0 0 0 0 0 0 23 0 0 122 4433 14793 6854 6 2 92
0 0 0 1030292 30987500 0 0 0 0 0 0 0 0 0 0 102 4055 15049 7014 8 1 91
0 0 0 1044484 30999572 0 0 0 0 0 0 0 0 0 0 129 5905 19196 8127 6 1 93
0 0 0 1028584 30987636 0 0 0 0 0 0 0 0 0 0 114 10611 19925 7259 6 3 90974632 wrote:
Looks like we don't have 'free' on these Solaris boxes (only the man pages).
I'm guessing that free is for linux (since it works fine on my linux boxes).
$ whereis free
free: /usr/man/man3c/free.3cdarn!
Realize that SWAP is purely an OS facility; which is 100% external to Oracle.
The OS send little used or idle processes into SWAP when RAM is scarce resource.
The fact that SWAP is being used is not a Bad Thing, in and of itself.
as long as vmstat shows that BI+BO > SI+SO I would ignore the Chicken Little warnings. -
SPACE UTILIZATION OF TEMPORARY FILES
Hi DBAS..
I need to confirm the behaviour of Oracle temporary datafiles asap.
I had tried to increase the temporary files of one of my database temporary
tbsp.
After I had increase the space, it noticed the space utilization had not
changed at all, even though the filesize of the temporay datafile is correct
based on the unix command : ls -l.
Below is a replica of my action:
1) Before Incr of Size of Datafile-
SQL> select file_name, bytes/1024/1024 from dba_temp_files;
FILE_NAME BYTES/1024/1024
/oradata/VEPD/d07/temp_01.dbf 50
/oradata/VEPD/d04/temp_02.dbf 100
SQL> !df -m /oradata/VEPD/d07
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/lvvepd07 2176.00 370.29 83% 11 1% /oradata/VEPD/d07
SQL> !ls -l /oradata/VEPD/d07/temp_01.dbf
-rw-r----- 1 oracle oinstall 52436992 Jan 16 10:28 temp_01.dbf
1) After Incr of Size of Datafile-
SQL> alter database tempfile '/oradata/VEPD/d07/temp_01.dbf' resize 300M;
Database altered.
SQL> !ls -ltr /oradata/VEPD/d07/temp_01.dbf
-rw-r----- 1 oracle oinstall 314580992 Jan 16 11:11
/oradata/VEPD/d07/temp_01.dbf
SQL> !df -m /oradata/VEPD/d07
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/lvvepd07 2176.00 370.29 83% 11 1% /oradata/VEPD/d07
SQL> select file_name, bytes/1024/1024 from dba_temp_files;
FILE_NAME BYTES/1024/1024
/oradata/VEPD/d07/temp_01.dbf 300
/oradata/VEPD/d04/temp_02.dbf 100
The result (aft the incr) for 'ls -l' is expected.
BUT, is the result (aft the incr) for 'df -m' an expected behaviour??
Thanks
JDYour observation is correct.
Unlike regular datafiles, Oracle will not actually occupy the space reserved for temp datafile until it actually need to use it. -
I am using JDeveloper 10.1.3 and get the following error when executing the web service proxy with my call to the web service( this web service is using class OracleXMLSave with method insertXML):
I have included the xdb.jar in my project properties libraries of the web service project and added a file group with xdb.jar to the properties of the webservices.deploy. What else needs to be done? This worked in JDeveloper 10.1.2.
THE ERROR after running proxy in log window:
java.rmi.ServerException:
start fault message:
caught exception while handling request: caught exception while handling request: oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.xdb.XMLType
Dependent class: dbdata2package.DBDataOperations
Loader: DBData2WSApp-DBData2Operations-WS.web.WebServices:0.0.0
Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBData2WSApp-DBData2Operations-WS/WebServices/WEB-INF/classes/
Configuration: WEB-INF/classes/ in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBData2WSApp-DBData2Operations-WS\WebServices\WEB-INF\classes
The missing class is available from the following locations:
1. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-webservice-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-webservice-WS\WebServices\WEB-INF\lib)
This code-source is available in loader DBDataWSApp-webservice-WS.web.WebServices:0.0.0.
2. Code-Source: /D:/h/cots/Oracle/JDeveloper10g10.1.3/j2ee/home/applications/DBDataWSApp-DBDataOperations-WS/WebServices/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in D:\h\cots\Oracle\JDeveloper10g10.1.3\j2ee\home\applications\DBDataWSApp-DBDataOperations-WS\WebServices\WEB-INF\lib)
This code-source is available in loader DBDataWSApp-DBDataOperations-WS.web.WebServices:0.0.0.
:end fault message
at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:545)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:390)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
at dbdata2packageproxy.runtime.DBData2WSSoapHttp_Stub.insertData(DBData2WSSoapHttp_Stub.java:80)
at dbdata2package.DBData2WSSoapHttpPortClient.insertData(DBData2WSSoapHttpPortClient.java:54)
at dbdata2package.DBData2WSSoapHttpPortClient.main(DBData2WSSoapHttpPortClient.java:34)
Process exited with exit code 0.Hi,
actually you increment the index
pstmt.setString(++idx,inrecord.getCommentID());
which means you never have an index of 0 but always start with 1
Frank -
How do I get unicode characters out of an oracle.xdb.XMLType in Java?
The subject says it all. Something that should be simple and error free. Here's the code...
String xml = new String("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<x>\u2026</x>\n");
XMLType xmlType = new XMLType(conn, xml);
conn is an oci8 connection.
How do I get the original string back out of xmlType? I've tried xmlType.getClobVal() and xmlType.getString() but these change my \u2026 to 191 (question mark). I've tried xmlType.getBlobVal(CharacterSet.UNICODE_2_CHARSET).getBytes() (and substituted CharacterSet.UNICODE_2_CHARSET with a number of different CharacterSet values), but while the unicode characters are encoded correctly the blob returned has two bytes cut off the end for every unicode character contained in the original string.
I just need one method that actually works.
I'm using Oracle release 11.1.0.7.0. I'd mention NLS_LANG and file.encoding, but I'm setting the PrintStream I'm using for output explicitly to UTF-8 so these shouldn't, I think, have any bearing on the question.
Thanks for your time.
Stryder, aka RalphI created analogic test case, and executed it with DB 11.1.0.7 (Linux x86), which seems to work fine.
Please refer to the execution procedure below:
* I used AL32UTF8 database.
1. Create simple test case by executing the following SQL script from SQL*Plus:
connect / as sysdba
create user testxml identified by testxml;
grant connect, resource to testxml;
connect testxml/testxml
create table testtab (xml xmltype) ;
insert into testtab values (xmltype('<?xml version="1.0" encoding="UTF-8"?>'||chr(10)||'<x>'||unistr('\2026')||'</x>'||chr(10)));
-- chr(10) is a linefeed code.
commit;
2. Create QueryXMLType.java as follows:
import java.sql.*;
import oracle.sql.*;
import oracle.jdbc.*;
import oracle.xdb.XMLType;
import java.util.*;
public class QueryXMLType
public static void main(String[] args) throws Exception, SQLException
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
OracleConnection conn = (OracleConnection) DriverManager.getConnection("jdbc:oracle:oci8:@localhost:1521:orcl", "testxml", "testxml");
OraclePreparedStatement stmt = (OraclePreparedStatement)conn.prepareStatement("select xml from testtab");
ResultSet rs = stmt.executeQuery();
OracleResultSet orset = (OracleResultSet) rs;
while (rs.next())
XMLType xml = XMLType.createXML(orset.getOPAQUE(1));
System.out.println(xml.getStringVal());
rs.close();
stmt.close();
3. Compile QueryXMLType.java and execute QueryXMLType.class as follows:
export PATH=$ORACLE_HOME/jdk/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export CLASSPATH=.:$ORACLE_HOME/jdbc/lib/ojdbc5.jar:$ORACLE_HOME/jlib/orai18n.jar:$ORACLE_HOME/rdbms/jlib/xdb.jar:$ORACLE_HOME/lib/xmlparserv2.jar
javac QueryXMLType.java
java QueryXMLType
-> Then you will see U+2026 character (horizontal ellipsis) is properly output.
My Java code came from "Oracle XML DB Developer's Guide 11g Release 1 (11.1) Part Number B28369-04" with some modification of:
- Example 14-1 XMLType Java: Using JDBC to Query an XMLType Table
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb11jav.htm#i1033914
and
- Example 18-23 Using XQuery with JDBC
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_xquery.htm#CBAEEJDE -
Trying to get UTF-8 data in and out of an oracle.xdb.XMLType
I need to be able to put unicode text into an oracle.xdb.XMLType and
then get it back out. I'm so close but it's still not quite working.
Here's what I'm doing...
// create a string with one unicode character (horizontalelipsis)
String xmlString = new String(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<utf8>\n" +
" <he val=\"8230\">\u2026</he>\n" +
"</utf8>\n");
// this is an oci8 connection
Connection conn = getconnection();
// this works with no exceptions
XMLType xmlType = XMLType.createXML(conn, xmlString);
// this is the problem here - BLOB b does not contain all the bytes
// from xmlType. It seems to be short 2 bytes.
BLOB b = xmlType.getBlobVal(871);
String xmlTypeString = new String(b.getBytes(1L, (int) b.length()), "UTF-8");
PrintStream out = new PrintStream(System.out, true, "UTF-8");
out.print(xmlTypeString);
out.close();
What I get from this is this...
<?xml version="1.0" encoding="UTF-8"?>
<utf8>
<he val="8230">[utf-8 bytes]</he>
</utf8
In the above, [utf-8 bytes] represents the correctly encoded UTF-8 bytes that
were returned. But the output is missing the final closing bracket and the
newline at the end. It seems that no matter what second argument I give b.getBytes(),
it always returns the above. Even
It seems that this code...
BLOB b = xmlType.getBlobVal(871);
always returns a BLOB that contains a few bytes short of what it should contain.
What am I doint wrong? I'm sure I'm missing something here.
Thanks much for your help.
Here's info about the environment I'm working in.
============================ SYSTEM INFORMATION ============================
SQL*Plus: Release 11.1.0.7.0 - Production on Fri May 15 11:54:34 2009
select * from nls_database_parameters
where parameter='NLS_CHARACTERSET'
returns...
WE8ISO8859P1
select * from nls_database_parameters
where parameter='NLS_NCHAR_CHARACTERSET'
returns...
AL16UTF16
The operating system I'm working with is...
SunOS hostname 5.10 Generic_120011-14 sun4u sparc SUNW,Netra-T12WE8ISO8859P1 does not support the ellipsis character. It is a WE8MSWIN1252 character. I wonder if your problem may have something to do with internal conversion to/from XML character reference (…). Unfortunately, I have no time to test. Please, try to use a simple loop and System.out.print to print all bytes of the return value of b.getBytes(1L, (int) b.length()). Also, check the value of b.length().
-- Sergiusz -
Oracle.xdb.XMLType extract function
I have an external java program that connect to the database using a thick connection so I can use the methods extract and existsNode available with the XMLType from oracle.xdb.XMLType.
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection(jdbc:oracle:oci8:@,"user","pwd");
It works fine from the program. When I load the java function in the SQL database I use the default connection
conn = DriverManager.getConnection("jdbc:default:connection:");
and the extract function gives the error java.sql.SQLException.
Is there a way to define the native connection as thin or thick because that was the error I was getting from the client program when I was using thin connection
Thanks
MirettePlease try and avoid duplicate posts...
-
How to Access Table Space Map in Oracle 10g OEM
How and from where to Access Table Space Map in Oracle 10g OEM ??
ThanksHi,
first of all, the online help system of grid control is outstanding. Just click on Help in the upper right corner and enter "Tablespace Extent Map" in the search form.
Result:
Show Tablespace Contents Page
Each Oracle database is divided into one or more logical units called tablespaces. You can use Oracle Enterprise Manager to manage these tablespaces and create or modify the parameters for the tablespaces. Use the Tablespace property sheet to set general and storage information for the specified tablespace.
Use the Show Tablespace Contents page to display the list of tablespace segments that comprise the existing tablespace. You can display Tablespace Extents by choosing Show Tablespace Extent Map at the bottom of the page. An extent is a logical unit of database storage space allocation made up of a number of contiguous data blocks. One or more extents in turn make up a segment. When the existing space in a segment is completely used, Oracle allocates a new extent for the segment.
You can view segment extents by clicking on the link in the Extents column to display the Extents in Segments page.
You can display the Show Tablespace Contents page by choosing Show Tablespace Contents from the command drop down list on the Tablespace property page, the Tablespace View page, or the Tablespace search results page.
Note: Developers could only display the tablespace map to a maximum hard coded number of 30,000 extents. Tablespaces are often larger than that. If a tablespace is larger than 30,000 extents, the portion over that is displayed as Unmapped. To avoid exceeding the memory capacity of the tablespace map and to display the map without unmapped extents, use a search criteria displaying results of less than 30K extents.
For an overview of tablespaces, see the "Overview of Tablespaces " chapter of the Oracle Database Concepts Guide.
For more information about managing tablespaces, see the " Managing Tablespaces" chapter of the Oracle Database Administrators Guide.
For more information about managing datafiles, see the " Managing Datafiles and Tempfiles" chapter of the Oracle Database Administrator's Guide. -
Access Table Space Map in Oracle 10g EM
From where can I access Access Table Space Map in Oracle 10g EM?
ThanksFrom where can I access Access Table Space Map in Oracle 10g EM?
Thanks -
Class oracle.sql.OPAQUE not found in class oracle.xdb.XMLType
I have the following code written in java in a unix box and this is the error I get when compiling the code. I am not able to find which specific jar or class file I need, Kindly help.
XMLHelper.java:0: Class oracle.sql.OPAQUE not found in class oracle.xdb.XMLType.
^
1 error
OracleResultSet orst = .... some code to get data
orst.next();
//either of the following 2 lines give the same error
//XMLType dXml = XMLType.createXML(orst.getOPAQUE(1)) ;
XMLType dXml = (XMLType)orst.getObject(i);
xmlDoc = dXml.getDOM();
Please helpHello,
from the little information in your post i would say try to import oracle.sql.*, oracle.jdbc.* and oracle.xdb.*. Make sure your project can access the following libraries ojdbc14.jar and xdb.jar.
Regards, Marc -
Missing oracle/xdb/XMLType
Hi,
I am developing simple java class to try xsu.
I am using jdev 10.1.2.1.
I have done java class to generate xml using OracleXMLQuery.
It works fine.
I have done java class to save data from xml using OracleXMLSave.
It doesn't work!
The code is simple:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:db10g2","hr","hr");
OracleXMLSave sav = new OracleXMLSave(conn, "DEPARTMENTS");
sav.insertXML(sav.getURL("file://c:/xmldb/insertDEPT.xml"));
sav.close();
during runtime at line "sav.insertXML(sav.getURL("file://c:/xmldb/insertDEPT.xml"));"
I got an exception:
java.lang.NoClassDefFoundError: oracle/xdb/XMLType
at model.TESTXML_2.main(TESTXML_2.java:20)
Exception in thread "main" Process exited with exit code 1.
Jdev has access to all jars in ORACLE_HOME\LIB.
What is wrong ?
I don't know where I can find such package oracle.xdb.
regards,
CezaryYou need xdb.jar in $ORACLE_HOME/rdbms/jlib
-
XSQL Error. Missing class: oracle.xdb.XMLType XML
I am using OC4J and XSQL to publish information and most of the normal stuff runs fine. When I try to run the following query, I get errors. I copied the following example from XML developer's kit manual and work fine in SQL*Plus.
=============================
<?xml version="1.0"?>
<xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
select XmlElement("DepartmentList",
XmlAgg(
XmlElement("Department",
XmlAttributes(deptno as "Id"),
XmlForest(dname as "Name"),
(select XmlElement("Employees",
XmlAgg(
XmlElement("Employee",
XmlAttributes(empno as "Id"),
XmlForest(ename as "Name",
sal as "Salary",
job as "Job")
from emp e
where e.deptno = d.deptno
) as result
from dept d
order by dname
</xsql:query>
====================
Following is the header portion of the errors shown.
XML-25017: Unexpected Error Occurred
oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.xdb.XMLType
Dependent class: oracle.xml.sql.core.OracleXMLConvert
Loader: oracle.xml:10.1.0_2
Code-Source: /C:/oracle/oc4j_1013/lib/xsu12.jar
Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\oc4j_1013\j2ee\home\oc4j.jar
The missing class is available from the following locations:
1. Code-Source: /C:/oracle/oc4j_1013/j2ee/home/applications/xsql/xsql/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in C:\oracle\oc4j_1013\j2ee\home\applications\xsql\xsql\WEB-INF\lib)
This code-source is available in loader xsql.web.xsql:0.0.0.
I tried to search several forums but was unable to find any solution to resolve this issue. Any help is appreciated.
Thanks,I am using OC4J and XSQL to publish information and most of the normal stuff runs fine. When I try to run the following query, I get errors. I copied the following example from XML developer's kit manual and work fine in SQL*Plus.
=============================
<?xml version="1.0"?>
<xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
select XmlElement("DepartmentList",
XmlAgg(
XmlElement("Department",
XmlAttributes(deptno as "Id"),
XmlForest(dname as "Name"),
(select XmlElement("Employees",
XmlAgg(
XmlElement("Employee",
XmlAttributes(empno as "Id"),
XmlForest(ename as "Name",
sal as "Salary",
job as "Job")
from emp e
where e.deptno = d.deptno
) as result
from dept d
order by dname
</xsql:query>
====================
Following is the header portion of the errors shown.
XML-25017: Unexpected Error Occurred
oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.xdb.XMLType
Dependent class: oracle.xml.sql.core.OracleXMLConvert
Loader: oracle.xml:10.1.0_2
Code-Source: /C:/oracle/oc4j_1013/lib/xsu12.jar
Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\oc4j_1013\j2ee\home\oc4j.jar
The missing class is available from the following locations:
1. Code-Source: /C:/oracle/oc4j_1013/j2ee/home/applications/xsql/xsql/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in C:\oracle\oc4j_1013\j2ee\home\applications\xsql\xsql\WEB-INF\lib)
This code-source is available in loader xsql.web.xsql:0.0.0.
I tried to search several forums but was unable to find any solution to resolve this issue. Any help is appreciated.
Thanks, -
SGA free space information in Oracle 7.3.4
Please help me how to find SGA free space information in Oracle 7.3.4
Hi, I am getting following error while running below query
SQL> select * from v$sgastat order by pool,name;
select * from v$sgastat order by pool,name
ERROR at line 1:
ORA-00904: invalid column name -
To import oracle.xdb.XMLTYPE;
Hi,
Which library I must import in order to use oracle.xdb.XMLTYPE?ORA_HOME\rdbms\jlib\xdb.jar
Maybe you are looking for
-
Colour management in PS and monitor calibration
I've calibrated my monitors colours with an Eye One Display 2 colorimeter, and for photoshop i've assigned the monitors colour profile it has created to the work area (Edit > Assign Profile). But for photography i take photos with AdobeRGB colour pro
-
Since an Safari update, no settings other then the date/time hold. Stickies won't save new post-it's, Dock changes don't remain, Desktop pictures and screen savers won't change at all. Saved application files are fine. Anyone know what the problem
-
Is It Possible To Use NI cFP-CTR-50​2 as Quad Encoder?
Instead of going the route of using a Quad Encoder (which requires additional cost and work to install for a project), I was wondering whether is it possible to configure the cFP-CTR-502 to count directionally using a Digital Input for direction and
-
Connect coldfusion with sql server
HI everybody I need to know if i can use sql server as a database and coldfusion as the webpage interface builder???? Can these 2 program work together (be connected to each-other)?? if yes can anybody explain how it can be done or any link or some
-
Hello, I do not see a specific Management Pack for SQL Cluster... It seems to be the SQL Management Pack 6.1.400.0 and the Operating System Cluster Management Pack...6.0.6720.0 for Windows Server 2008 Cluster Management Library ... Am I right? Thanks