An introduction into Oracle XMLDB 11gR1 (pdf - 4 Mb)
For a Dutch DBA Conference next week on which I will present some XMLDB topics, I created a small goody / whitepaper with XMLDB DBA / Concepts content.
For those who are interested, have a look here:
- An introduction into Oracle XMLDB 11gR1 (pdf - 4 Mb):
http://www.liberidu.com/blog/images/Marco%20Gralike%20-%20An%20introduction%20into%20Oracle%20XMLDB%2011gR1.pdf
Content:
- XML(DB) Concepts
- XML Storage
- XMLIndex
- Security
- The Protocol Listener
- APEX
What error? Please be exact.
Similar Messages
-
Saving a PDF or DOC file into Oracle 9i using Developer Forms 10g
Hi guys,
I want to save a pdf or doc file into oracle 9i. I am using Developer 10 g. Please help me;
1. What datatype field should be in database table to store such file.
2. Which code should I use in Forms 10g to display open file dialog, get the name and save that into database table.
Thanks in advanceWEBUTIL is a library used with forms to interact with the client. With Forms10G the library comes shipped with the developer suite, for forms 9i i'm not sure, check the forms-page at otn if there is any download available. For documentation about how to do a file-upload, simply search the forum, there are lots of examples.
-
Oracle Database 11gR1 Enterprise Manager Console Cannot Display in Browser
Folks,
Hello. I am running Oracle Database 11gR1 with Operaing System Oracle Linux 5. I have some issues regarding EM connects with the Database Server as below:
First, the default listener is LISTENER with standard port number 1521 and protocol TCP/IP.
Its corresponding service naming S1 is with port 1521 and protocol TCP/IP and hostname localhost.localdomain.
I run this listener in the following way:
Step 1: [user@localhost bin]./lsnrctl start LISTENER (This command runs sucessfully.)
Step 2: [user@localhost bin] ./sqlplus SYS/SYS as sysdba (This command starts sqlplus sucessfully.)
Step 3: [user@localhost sqldeveloper] ./sqldeveloper.sh (This command invokes SQL Developer sucessfully.)
But when start Enterprise Manager Console, it cannot connect with the Database. I do it in this way:
[user@localhost bin] ./emctl start dbconsole
The above command's output is:
https://localhost.localdomain:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ... ...
When open the link https://localhost.localdomain:1158/em/console/aboutApplication in browser, this message comes up:
The connection to localhost.localdomain: 1158 cannot be established.
Thus, I add Port Number 1158 into both LISTENER and Service Naming S1. I run ./emctl start dbconsole again and get this message:
The connection to localhost.localdomain:1158 was interrupted while the page was loading.
In order to solve the above issue, I create another listener LISTENER2 and another Service Naming S2 with Port Number 1158 and protocol TCP/IP because
in my point of view, each listener only can have one Port Number(1521 or 1158) and its corresponding Service Naming (S1 or S2) need to have the same Port Number and Protocol (TCP/IP).
But when I run [user@localhost bin]./lsnrctl start LISTENER2, this message comes up: the listener supports no service.
From the message, it seems that LISTENER2 cannot work with its corresponding Service Naming S2 with Port 1158.
EM with Port 1158 cannot display in Browser.
My questions are :
First, Is there any relationship needed to be established between listener(LISTENER2) and Service Naming(S2) in order to display EM in Browser ?
Second, how do folks display EM in browser ?
Thanks.Folks,
Hello. Thanks a lot for replying. I do the following command: [user@localhost bin]$ wget http://localhost.localdomain:1158/em
The command returns the message:
--11:36:33-- http://localhost.localdomain:1158/em
Resolving localhost.localdomain... 127.0.0.1
Connecting to localhost.localdomain|127.0.0.1|:1158... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `em'
[ <=> ] 7 --.-K/s in 0.002s
11:36:33 (4.15 KB/s) - Read error at byte 7 (Connection reset by peer).Retrying.
--11:36:34-- (try: 2) http://localhost.localdomain:1158/em
Connecting to localhost.localdomain|127.0.0.1|:1158... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `em.1'
100%[=================================================================================================================>] 7 --.-K/s in 0s
11:36:34 (16.8 KB/s) - Read error at byte 7 (Connection reset by peer).Retrying.
The above message repeats again and again until finally returns the following message:
11:39:02 (40.2 KB/s) - Read error at byte 7 (Connection reset by peer).Giving up.
In browser, http://localhost.localdomain:1158/em cannot display and pop up a Windows with the message: You have chosen to open whicn is BIN file from http://localhost.localdomain:1158 What sholud FireFox do with this file ? Save to Disk ?
My question is:
I don't know how to display http://localhost.localdomain:1158/em in Browser. How to solve the issue ?
Thanks. -
Hi,
After upgrading from 11.5.7 to 11.5.10 Oracle Report in PDF format is not working(it was working fine in 11.5.7). When change output format to TEXT it working fine.
Please advise?
Thanks
DaveHi,
Perhaps it is not clear about what are the invalid characters its is showing.....is it showing asterisks.....Well if it does show anything like that then all u have to do is go and change the dimensions of the particular field in which it is showing such characters.......i mean u r to change the rdf file in Reports Builder.....and try changing the length and width by dragging the edges of the particular field and then save it and after that convert it into .xml and .rep files and then run it. -
Storing JSON string into Oracle table
Hi,
What is appropriate way to store JSON string into Oracle table?
Regards
PeterIf JSON becomes more popular, ORACLE might write data cartridge extension for JSONDB (in the same way as XMLDB).
Till then CLOB and NCLOB is your best choice, and leave the parsing in your application layer. -
Introduction to Oracle for Experienced SQL Users
Dear members,
where can i find the book for "Introduction to Oracle for Experienced SQL Users" on net in PDF format.
please send my if someone....
Muhammad Nadeem
[email protected]
092-0301-8334434you have to google for it. That's all
"Introduction to Oracle for Experienced SQL Users" -
Issues du read XML into Oracle
Hello all,
I try to insret XML data into Oracle, and I looked on forum for tips. I found (I think) the way to do it, but I have an error :
Here is what I did : I created a table of XMLType (OK) :
CREATE TABLE XML_TAB ( xmlval XMLType);
Then I insert data directly (OK):
INSERT INTO XML_TAB VALUES (
xmltype('<?xml version="1.0"?>
<EMP>
<EMPNO>221</EMPNO>
<ENAME>John</ENAME>
</EMP>'));
Now, I want to import directly from a XML file. I try this :
INSERT INTO Xml_tab
VALUES
xmltype(bfilename('xml_dir','essai2.xml'),nls_charset_id('AL32UTF8'))
it fails with ORA-06553: PLS-306: numéro ou types d'arguments erronés dans appel à 'XMLTYPE' (xml_dir is setup)
or this :
INSERT INTO Xml_tab
VALUES
xmltype('D:/TMP/XML/essai2.xml',nls_charset_id('AL32UTF8'))
it fails with ORA-06553: PLS-307: trop de déclarations de 'XMLTYPE' correspondent à cet appel
I try with Oracle 9i.
Did I miss something ?
I'm not far to succeed what I want to do. Thank's a lot for your help.
AntoineHello,
Thanks for you answer. Oracle version is 9.2.0.4.0.
Thanks also for the BFILENAME information. My problem remains that if I try to read by entering directly the filename, I have the PLS307 error.
I will check the XMLDB FAQ, but I have seen several documentation, and process is always the same, as I do...except for the error.
I will also try in 10g, to see if it works better.
Antoine -
BI publisher installation into Oracle Express Edition
Hi,
i need help on BI publisher installation.
When i install BI publisher into oracle Express edition 10.2.1.0 version.
i chosen ADVANCED type it shows Please enter 10.3.1.0 ver or later ORACLE_HOME path...
if i choose BASIC type it shows error at 99% completion of BI screen....
After the EXIT screens, the ORACLE APEX pdf opens but error while opening it.
I want to know whether BI publisher 10.1.3 can support Oracle 10.2.1.0 version or not?
Could anyone Please help on this.
Thanks
Loga..thanks wobiee,
I have 10g installed on my server machine [windows 2003 -64-bit OS] and Oracle http apache installed and also Oracle Application Express 3.1.0.
I'm trying to install BI Publisher to integrate with Oracle APEX application for rendering PDF report from the application page report region download link,
by following the same url which you replied.
I downloaded and unzipped the files. when i click setup.exe installation started i haven choosen "basic type" it continues and i have given oc4j password and then it gives error at 99% of installation process.
Error log file contains :
Configuration assistant "BI Publisher Configuration Assistant" failed
Failed at "Could not get DeploymentManager".
This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
Please review the above error and help me if you have an idea to fix this problem.
-Loga -
Best Practice to fetch SQL Server data and Insert into Oracle Tables
Hello,
I want to read sqlserver data everry half an hour and write into oracle tables ( in two different databases). What is the best practice for doing this?
We do not have any database dblinks from oracle to sqlserver and vice versa.
Any help is highly appreciable?
ThanksWell, that's easy:
use a TimerTask to do the following every half an hour:
- open a connection to sql server
- open two connections to the oracle databases
- for each row you read from the sql server, do the inserts into the oracle databases
- commit
- close all connections -
Loading shapefiles into Oracle Spatial
Fellow Oracle Spatiallers!
Currently we edit Oracle Spatial data by checking data out into a shapefile,
making our changes off-line, and reloading the shapefile back into Oracle.
Instead of using the Oracle Spatial supplied tool, we decided to purchase
a utility called the "Spatial Loader" from a company called Geometry Pty Ltd
(http://www.geometryit.com). There are a number of reasons why we decided to
go that way which might become evident from the command line parameters of
this utility:
Usage: Shp2Spt [Arguments] [Options]
OR
Usage: Java com.geometryit.spatialloader.oracle.AdvancedJavaSpatialTranslator [Arguments] [Options]
[Arguments] must specify these values:
-o create
type of operation to perform
create creates a new table, must not exist already
recreate creates a new table, may exist already
init drops existing table, creates a new one
append appends data onto existing table
-f <shape_file>
the shape file or project to translate
-l <table,column>
target table and column for the geometry data
-D <database>
target database name
-u <username>
username for RDBMS
-p <password>
password for RDBMS
[Options] values are not necessarily required:
-s <server_name>
name of server with database
-port <port_number>
the port to connect to on the server
-ufi <column_name>
specify the name of the UFI field (unique ID)
-seq <sequence_name>
specify the sequence to use for the spatial data unique IDs
-a none
attributes mode
none no attributes will be transferred
all all attribtues will be transfered as found
file= file containing lines of the form:
<shape_attribute><space/tab><rdbms_column>
where
<shape_attribute> selects the column to be output
<rdbms_column> name of the column in RDBMS
-srid <id>
specify the Spatial Reference ID for the spatial data
(this must be set to use Spatial Reference Transformations)
-i [<level>] or -i rtree
create an index for the generated table
the <level> parameter is an optional integer
representing the depth of the quadtree created
if rtree is specified, the index created will be
an rtree
-c <commit_interval>
number of rows to commit after
-t <tolerance>
tolerance value for metadata
-r none
used to determine number of decimal places to round vertices to
if you use the tolerance-parameter option, specify the -t parameter before -r
-igc
ignore geometry collections
-sgc
split geometry collections
-sgd f
split geometry direction [forward | reverse]
-update-metadata <true/false>
update the Oracle Spatial Metadata table after loading data
-validate <true/false>
perform Oracle Spatial validation after loading data
-v
verbose mode on
-h or -?
display this help message
The main things I like about this tool are:
1. One step (no conversion to sqlloader form followed by a call to the sqlloader).
2. The ability to round the coordinates of the shapes in the shapefile by applying
the XY tolerance values held in the SDO_GEOM_METADATA table.
This is quite important because our editing package - due to double/single precision
issues - can actually move coordinates but those movements are sub the precision of
the actual data. By rounding to the nominate precision we can detect situations where
no actual change to the shape (and its attributes) was made and thus not create superfluous
revisions within the database.
3. It will correctly re-wind the coordinates of the outer/inner shells of polygons. This is
important as ESRI shapefiles are agnostic on the winding order: an outer shell coordinates
can be listed in either clockwise or anti-clockwise order.
4. You can specify the primary key (UFI) column (numeric) and an Oracle Sequence number such
that each new shape loaded can have its UFI assigned from that sequence.
Because of this flexibility, and the excellent support (it is a purchasable product) from the
developers, I can heartily recommend this loader to fellow Spatiallers. It is worth every
penny I spent on it. Try the free version on their website and if, like me, you like it,
purchase it!
regards
SimonHi Shuan,
As part of the zip file created for the next training course to be posted for Oracle Spatial on OTN (within the next few weeks) there is a free (unsupported, undocumented) version of a shape to sdo converter. This should work, but it is unsupported. It will create a layer that then needs to be migrated into 8.1.6 format.
If you need it quite soon send email to [email protected] and I can get it to you.
Hope this helps,
dan -
Help needed to loadjava apache poi jars into oracle database.
Help needed to loadjava apache poi jars into oracle database. Many classes left unresolved. (Poi 3.7, database 11.1.0.7). Please share your experience!
Hi,
The first 3 steps are just perfect.
But with
loadjava.bat -user=user/pw@connstr -force -resolve geronimo-stax-api_1.0_spec-1.0.jar
the results are rather unexpected. Here is a part of the log file:
arguments: '-user' 'ccc/***@bisera7-db.dev.srv' '-fileout' 'c:\temp\load4.log' '-force' '-resolve' '-jarsasdbobjects' '-v' 'geronimo-stax-api_1.0_spec-1.0.jar'
The following operations failed
resource META-INF/MANIFEST.MF: creation (createFailed)
class javax/xml/stream/EventFilter: resolution
class javax/xml/stream/events/Attribute: resolution
class javax/xml/stream/events/Characters: resolution
class javax/xml/stream/events/Comment: resolution
class javax/xml/stream/events/DTD: resolution
class javax/xml/stream/events/EndDocument: resolution
class javax/xml/stream/events/EndElement: resolution
class javax/xml/stream/events/EntityDeclaration: resolution
class javax/xml/stream/events/EntityReference: resolution
class javax/xml/stream/events/Namespace: resolution
class javax/xml/stream/events/NotationDeclaration: resolution
class javax/xml/stream/events/ProcessingInstruction: resolution
class javax/xml/stream/events/StartDocument: resolution
class javax/xml/stream/events/StartElement: resolution
class javax/xml/stream/events/XMLEvent: resolution
class javax/xml/stream/StreamFilter: resolution
class javax/xml/stream/util/EventReaderDelegate: resolution
class javax/xml/stream/util/StreamReaderDelegate: resolution
class javax/xml/stream/util/XMLEventAllocator: resolution
class javax/xml/stream/util/XMLEventConsumer: resolution
class javax/xml/stream/XMLEventFactory: resolution
class javax/xml/stream/XMLEventReader: resolution
class javax/xml/stream/XMLEventWriter: resolution
class javax/xml/stream/XMLInputFactory: resolution
class javax/xml/stream/XMLOutputFactory: resolution
class javax/xml/stream/XMLStreamReader: resolution
resource META-INF/LICENSE.txt: creation (createFailed)
resource META-INF/NOTICE.txt: creation (createFailed)
It seems to me that the root of the problem is the error:
ORA-29521: referenced name javax/xml/namespace/QName could not be found
This class exists in the SYS schema though and is valid. If SYS should be included as a resolver? How to solve this problem? -
Loading MS Access Table and Data into Oracle
Hi,
I have few tables in MS Access. I want to create same layout of tables in Oracle and want to populate data from MS Access tables to Oracle tables.
Please let me know if there is a way by which I can create tables and load data automatically (thru some option or script)?
I have Oracle 10g database and its clients.
Thanks in advance,
Rajeev.You can use Oracle migration workbench
Loading MS Access Table and Data into Oracle
It´s very easy to use and good to import
regards,
Felipe -
I am trying to import BPM Project.zip file into Oracle enterpriserepository
I am trying to import BPM Project.zip file into Oracle enterpriserepository from admin tab.
I am getting the following exception. please help if any one know the solution.
Performing import...
Import Failed: Error [100]: An unknown server-side error occurred. Please record stack trace (if available) and contact technical support.
com.flashline.exception.LoggableException: trouble parsing file in import bundle: SampleWScall/activityGuide.agdl
at com.flashline.cmee.openapi.service.subsystem.impexp.XMLTranslator.decode(XMLTranslator.java:157)
at com.flashline.cmee.openapi.service.subsystem.impexp.ImportJob.doJob(ImportJob.java:74)
at com.flashline.cmee.openapi.service.subsystem.impexp.AbstractJob.perform(AbstractJob.java:75)
at com.flashline.cmee.openapi.service.subsystem.impexp.JobThread.run(JobThread.java:41)
Audit results stored in:
C:\Users\AVINAS~1.YEL\AppData\Local\Temp\import-4705112223687937017.log
Audit for [Import job.] created on [2012-09-24 11:53:59 IST].
2012-09-24 11:53:59 IST - Adding Import job with ID=[50403] to job queue.
Thanks in Advance.Hi
Why are you trying to import BPM zip file are you trying to configure the out of the box workflows?
They are something that need to be deployed from the process admin on BPM.
There would be the .exp file you would need as its BPM 10g that you would need to use. -
Unable to load excel sheet into oracle
Can somebody help me...
I just want to load data records from MS Excel spreadsheet into Oracle table without converting that MS Excel file,
my ENV: Linux (centos 5.4 + Oracle EE 11gR2)
here what I did:
-ODBC-Conf on MS
create a system DSN 'odbc_excel' => OK
-Create HS initialization File => OK
cat initexcel.ora
HS_FDS_CONNECT_INFO = odbc_excel
HS_AUTOREGISTER = TRUE
HS_DB_NAME = dg4odbc
-Modify listener.ora => OK
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = excel)
(ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = dg4odbc)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = extproc)
-Modify tnsnames.ora: => OK
excel =
(DESCRIPTION =
(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = DEDUSOBI)(PORT = 1521)))
(CONNECT_DATA = (SID = excel)) (HS = OK)
-lsnrctl reload => OK
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-MAR-2010 13:15:32
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
The command completed successfully
-tnsping excel => OK
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-MAR-2010 13:15:09
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = DEDUSOBI)(PORT = 1521))) (CONNECT_DATA = (SID = excel)) (HS = OK))
OK (20 msec)
-create link in ORA => OK
SQL> create database link excel using 'excel';
Database link created.
SQL> select * from dba_db_links where DB_LINK like '%EXCEL%';
OWNER SYSTEM
DB_LINK EXCEL
USERNAME
HOST excel
CREATED 11-Mar-10
-check link => NOK :-(
SQL> select table_name from all_tables@EXCEL;
ERROR at line 1:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
ORA-02063: preceding line from EXCEL
-listener.log
11-MAR-2010 13:33:30 * (CONNECT_DATA=(SID=excel)(CID=(PROGRAM=)(HOST=DEDUSOBI)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp) (HOST=127.0.0.1)(PORT=58093)) * establish * excel * 0
All comments are welcome, thanks
Zeynel
Edited by: seyrekel on Mar 11, 2010 4:07 AMthanks for the respond Werner, that seems to be the most tricky part (ODBC-Conf@Linux)
the driver should be available:
# rpm -qa | grep -i odbc
unixODBC-devel-2.2.11-7.1
unixODBC-2.2.11-7.1
# odbcinst -j
unixODBC 2.2.11
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
USER DATA SOURCES..: /root/.odbc.ini
#file /.../dbhome_1/bin/dg4odbc
/.../dg4odbc:
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
for GNU/Linux 2.6.9, dynamically linked (uses shared libs),
for GNU/Linux 2.6.9, not stripped
# odbcinst -s -q
[ODBC]
[AnalyticsWeb]
[Cluster]
[SSL_Sample]
but still the same error message...
thanks
Zeynel -
How to find Oracle documentation in PDF format
In the last month, i downloaded two oracle guide in PDF format from OTN site: "Oracle Spatial Topology and Network Data Models" and "Workspace Manager". But now I forgot the link where i founded a complete list of document prompted to download (over 40-50 e-books).
Thank you in advance.Both books are avaialble on the 10g Documentation Library page: http://www.oracle.com/pls/db102/portal.portal_db?selected=3
in both HTML and PDF formats.
Maybe you are looking for
-
Trying to install Square to accept credit cards on my ipad. I get the following message. KQHTTP Operation Error Domain error 422. What is this?
-
I set the balance and sound levels on my MacBook Pro 10.8.4 but when I start up again the balance has shifted to one channel or the other [left or right] and the volume has become maximum. Does not always happen but frequently does. Any ideas?
-
Hi, I'm not a Forms expert, but I was wondering if the following is possible: building a generic Form that has the Windows-Wizard look-and-feel, and controls the order in which other Forms are displayed and which data is passed between the Forms disp
-
My mac is getting slower and slower - here is the Etrecheck information on my mac.
Are there any issues that need to be addressed for my Mac? Thank you for your help. Tis is my first Mac and I just want it to run smoothly, I'm also having difficulty trying to set up my Time machine. EtreCheck version: 1.9.12 (48) Report generated
-
IMovie project from 10 years ago compatible?
Ten years ago or more, I made a bunch of iMovies and burned them to DVD. Thinking I might want to make more copies later, I archived the iMovie projects. Flash forward: here I am years later, and I do want to open some of these project and burn them