External Table : property name="oracle.kv.parentKey"
Hi,
Base on external table example in version 2.0.23, I have major key + minor key as follow:
/user/user<i>@example.com/-/info/
When I changed the property oracle.kv.parentKey in the config file to be full majorKey instead of one part of the major key, there is no results
For example:
when the value of this property is: /user (the default in the example) - I got all KV pairs starting with /user prefix
but when I configure it to: /user/[email protected] which is the full majorKey I didn't get answers at all (although the KV exists).
Does this property support only first part of majorKey or may I misunderstand the concept?
Thanks in advanced,
YosiK
Hi YosiK,
The parentKey value in this context is treated the same as parentKey argument to the KVStore.storeIterator() methods. As described in the javadoc for those API calls:
parentKey - the parent key whose "child" KV pairs are to be fetched. It may be null to fetch all keys in the store. If non-null, the major key path must be a partial path and the minor key path must be empty.
So, in fact, the parentKey MUST NOT be a complete major key - it must be partial. There must be majorKey components following the parentKey that is specified. The subRange argument does interacts with this though. In the example, if you leave parentKey as "/user" but add a subRange parameter with value
"I/[email protected]/[email protected]/I" you would achieve the result that I think you originally anticipated.
- Mark
Similar Messages
-
Hi All
i have configured the
WebUtil V:106
Jacob v:18
On My Middle Tire
Application Server: V:9.0.4
Connecting To Database: V:8.1.7
"i did recreate the packages for 8i like dbms_lob and ...etc"
my WebUtil Form Work's Fine
as
it displays me the versions for all webUtil Functions 1.0.6
Also when i try to get the Current Browser IP Address it get me successfully .
when i submet this statment to get current browser userinfo like :
webutil_clientinfo.GET_SYSTEM_PROPERTY('user.home')
it workes fine .
The Problem IS:
When is issu this statment :
webutil_clientinfo.GET_SYSTEM_PROPERTY('oracle.forms.webutil.clientinfo.GetClientInfo')
it gives me the error "in jinit":
webutil_clientinfo.GET_SYSTEM_PROPERTY('oracle.forms.webutil.clientinfo.GetClientInfo')2008-فبر-04 15:00:26.984 ERROR>WUI-304 [getSystemProperty()] Invalid Property name oracle.forms.webutil.clientinfo.GetClientInfo supplied
Also When I Try this to Open A Browes Dialog:
DECLARE
FILENAME VARCHAR2(3000);
BEGIN
IF GET_RECORD_PROPERTY(:SYSTEM.CURSOR_RECORD,:SYSTEM.CURRENT_BLOCK,STATUS)IN ('NEW','INSERT') THEN
filename := webutil_file.file_selection_dialog('C:\Temp','*.*','all files (*.*)|*.*|PDF files (*.pdf)|*.pdf|','Select your file ...');
END IF;
END;
it gives me this Error:
WebUtil Error: oracle.forms.webutil.file.filefunctions bean not found. WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work
And My Java Console Contain :
Oracle JInitiator: Version 1.3.1.17
Using JRE version 1.3.1.17-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Speed
Proxy Configuration: Manual Configuration
Proxy: 10.0.0.1
Proxy Overrides: *.mydomain.com<local>
JAR cache enabled
Location: C:\Documents and Settings\speed\Oracle Jar Cache
Maximum size: unlimited
Compression level: 1
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://myserv.mydomain.com/forms90/java/f90all_jinit.jar from JAR cache
Loading http://myserv.mydomain.com/forms90/java/frmwebutil.jar from JAR cache
Loading http://myserv.mydomain.com/forms90/java/jacob.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
إصدار بريمج Forms هو : 9.0.4.0
2008-فبر-04 15:40:19.511 ERROR>WUI-304 [getSystemProperty()] Invalid Property name oracle.forms.webutil.clientinfo.GetClientInfo supplied
Message was edited by:
IGBSpeedCheck whether your webutil.olb is subclassed properly or whether the olb file is available in runtime environment..
-
How to load a (the circled "R") from an external table in an oracle table?
I am using oracle 10g.The character set for DB is as below: NLS_NCHAR_CHARACTERSET AL16UTF16 NLS_CHARACTERSET AL32UTF8.
I have ®(the circled "R") symbol coming in a .txt file in one of the fields and when the same file is loaded in a external table, the symbol is converted in a '?'.
Please suggest.Version of OS:- Linux RHEL(2.6)
Version of oracle :- 10g r2
Definition of external table:-
CREATE TABLE @@@@
XXXX VARCHAR2(500 BYTE),
XXXX VARCHAR2(500 BYTE),
XXXX VARCHAR2(1000 BYTE),
XXXX NUMBER(10),
PRD_TITLE NVARCHAR2(400),
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY PROD_EXT_TAB
ACCESS PARAMETERS
( RECORDS DELIMITED BY '~^'
CHARACTERSET AL32UTF8
LOGFILE ext_log:'@@@@.log'
BADFILE ext_log:'@@@@.bad'
DISCARDFILE ext_log:'@@@@.dsc'
FIELDS TERMINATED BY '_^'
OPTIONALLY ENCLOSED BY '"'
MISSING FIELD VALUES ARE NULL
REJECT ROWS WITH ALL NULL FIELDS
xxxx
,xxxx
,xxxx
,xxxx
,prd_title
LOCATION (PROD_EXT_TAB:'@@@@.txt')
REJECT LIMIT UNLIMITED
NOPARALLEL
NOMONITORING;
I am trying to load ®(the circled "R") in prd_title column of the above table.
"select prd_title from @@@@"
The result is a '?'
Characterset is :
NLS_NCHAR_CHARACTERSET : AL16UTF16
NLS_CHARACTERSET : AL32UTF8 -
Blank Tables Schemau00B4s name causes "Table or view does not exist" Oracle
Hello Guys,
I´m searching over the internet something that could solve this issue:
I´m developing an application that simply open a .rpt file, associate it to some crystalreportviewer´s reportsource. After making some tests I found out that the tables schema name (Oracle) is lost. So when I log in to the database with a user that is not the owner of the table, I get "Table or view does not exist" error.
I printed in the screen the Location property of the tables and all I got was the table name, with no schema name in it.
Someone can help me with that? I´m using visual studio 2008, 2.0 .net framework and C#
The source-code is bellow:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
namespace crystal20
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void Form1_Load(object sender, EventArgs e)
try
this.ConfigureCrystalReports();
catch (Exception ex)
MessageBox.Show("Erro:" + ex.Message);
private void ConfigureCrystalReports()
openFileDialog1.FileName = "";
openFileDialog1.ShowDialog();
ReportDocument crReportDocument;
Database crDatabase;
Tables crTables;
TableLogOnInfo crTableLogOnInfo;
ConnectionInfo crConnectionInfo;
//Create an instance of the strongly-typed report object
crReportDocument = new ReportDocument();
crReportDocument.Load(openFileDialog1.FileName);
//Form2 teste = new Form2(crReportDocument);
//crReportDocument = teste.getRelatorio();
//crReportDocument.SetDatabaseLogon("", "", "", "");
//Set the crConnectionInfo with the current values stored in the report
//crConnectionInfo = crReportDocument.Database.Tables[0].LogOnInfo.ConnectionInfo;
crConnectionInfo = new ConnectionInfo();
/* Populate the ConnectionInfo Objects Properties with the appropriate values for
the ServerName, User ID, Password and DatabaseName. However, since Oracle
works on Schemas, Crystal Reports does not recognize or store a DatabaseName.
Therefore, the DatabaseName property must be set to a BLANK string. */
//crConnectionInfo.DatabaseName = "";
//crConnectionInfo.ServerName = "hom";
//crConnectionInfo.UserID = "user";
//crConnectionInfo.Password = "pass";
//Set the ReportSource of the CrystalReportViewer to the strongly typed Report included in the project
crystalReportViewer1.ReportSource = crReportDocument;
//Set the CrDatabase Object to the Report's Database
crDatabase = crReportDocument.Database;
//Set the CrTables object to the Tables collection of the Report's dDtabase
crTables = crDatabase.Tables;
//Loop through each Table object in the Tables collection and apply the logon info
//specified ealier. Note this sample only has one table so the loop will only execute once
foreach (Table crTable in crTables)
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);Thanks for your answer, but where do I get the Owner (Schema) name.
When I print the Table.Location property I just get the table name, not any Owner.
Ex:
My table is:
CUSTOM.TABLE1
If I print the value of table.location property value its just "TABLE1". Then If I log on as other user, not custom, I get "Table or view does not exist".
Have you understood my issue? -
External table in Oracle 10g and Windows server 2003 problem
I'm having a problem accessing an external table in an Oracle 10g and Windows 2003 server environment. The disk is remote (mapped) to the server. It's the usual access errors, kup-04001 or kup-04063.
I have the [seemingly] exact same setup in an Oracle 9i and Windows 2000 server environment which works perfectly. Services run as local SYSTEM and SYSTEM has full permissions on the disk. Directories exist and so do the permissions to the directories.
In the Oracle 10g and Windows 2003 environment, services run as local SYSTEM and SYSTEM has full permissions on the mapped disk. Directories exist and so do the permissions to the directories.
This obviously effects mappings, deployments, etc.
Does anyone know if something changed in either the db or the os?
Thank you,
MichaelThank you for your reply.
Your proposal is the standard solution. As a matter of fact, that's how it is on my "old" system. Server "A" Oracle services are started by SYSTEM. Server "B" Oracle services are started by SYSTEM and is where the flat files reside. SYSTEM has full permissions on a disk local to Server "B". Database directoriies defined on Server "A" point to Server "B" remote disk. External Tables on Server "A" are defined with directories that point to Server "B" remote (mapped) disk. I have no problems with this configuration.
I'm having a problem acheiving the same configuration with Oracle 10g and Windows 2003. I guess I'm baffled over the fact it isn't working the same way as my "old" environment. Why shouldn't it? Oracle (and you) want me to start services as a specific user. It shouldn't have to be that way unless something changed in the way the database makes calls to the os or if Microsoft slipped something in with one of it's numerous security patches. -
External table in Oracle 10g and Windows server 2003
I'm having a problem accessing an external table in an Oracle 10g and Windows 2003 server environment. The disk is remote (mapped) to the server. It's the usual access errors, kup-04001 or kup-04063.
I have the [seemingly] exact same setup in an Oracle 9i and Windows 2000 server environment which works perfectly. Services run as local SYSTEM and SYSTEM has full permissions on the disk. Directories exist and so do the permissions to the directories.
In the Oracle 10g and Windows 2003 environment, services run as local SYSTEM and SYSTEM has full permissions on the mapped disk. Directories exist and so do the permissions to the directories.
Does anyone know if something changed in either the db or the os?
Thank you,
MichaelVersion 9.2.04.
Server "A" Oracle services are started by SYSTEM. Server "B" Oracle services are started by SYSTEM and is where the flat files reside. SYSTEM has full permissions on a disk local to Server "B". Database directoriies defined on Server "A" point to Server "B" remote disk. External Tables on Server "A" are defined with directories that point to Server "B" remote (mapped) disk. I have no problems with this configuration.
I'm having a problem acheiving the same configuration with Oracle 10g and Windows 2003. I guess I'm baffled over the fact it isn't working the same way as my "old" environment. Why shouldn't it? Oracle (and you) want me to start services as a specific user. It shouldn't have to be that way unless something changed in the way the database makes calls to the os or if Microsoft slipped something in with one of it's numerous security patches. -
Oracle BI Groups, Roles and permission through external Table
Hi,
We are using SSo integration with Oracle BI 10g. We need to fetch the roles , permission and groups through an external table to our Oracle BI Dashboard. Please let me know if this is possible.
Thanks,
Aditya AryaThanks a lot shru.
I have achieved this User authentication through external table but the roles, groups and permissions are assigned inside Oracle BI only. I need to get the roles from an external database table and map the users in that database only. I do not want to use the administration screen in Oracle BI to achieve this.
Also, I need to know what is the OBIEE variable i can use to override roles, as we use USER for adding a new user and the values that can be used to map the permissions.
Thanks,
Aditya Arya -
OWB Mapping involving Oracle External Table to Oracle Target Table.
Hi All,
I created a mapping which involves External Table as source & oracle table as target.
Following were steps followed.
1> Created Directory & External Table on oracle server
2> Attached Text file with ',' delimiter to the External Table.
3> Imported the External Table in source module.
4> Created mapping which involves External Table as Source & Oracle Table as Target.
5> Validated & Generated Mapping in OWB.
6> Deployed the mapping in Deployment Manager.
7> Executed the mapping in Deployment Manager.
Execution Results: Completed with errors.
No error message is displayed, I am wondering where can I get more information about the error message?
Thanks in Advance.
Regards,
VidyanandHi,
Look in the logfile <your runtime owner>.log.* under the directory <owb home>/owb/log
thanks -
Accesing windows files using oracle unix external tables.
Hi, I'm trying to access files on windows2k using oracle external tables on unix:
Oracle server on unix: oracle ver. is 9.2.0.6 and OS is 5.8 Generic_117000-03 sun4u sparc SUNW,Sun-Fire
1. Created dir object on oracle unix pointing to windows path
2. created user
3. Assigned read and write privs on dir to user
4. created external table using dir step 1
5. select on external table
When I FTP the files into unix and recreate dir object, it works, but if I point dir object into windows path, it fails.
Is possible to do this?
Tks
GAPHi
The directory object must be accesible to your Database server, so if the Database is in unix you must create the directory in unix.
I don´t know software that allow unix systems to see a windows file system. Maybe windows can see unix from a samba server or NFS. -
XML File in External Table - OS error permission denied.
Hi.
10g R2, Red Hat Linux
I'm using the article (see below, taken from http://www.dbazine.com/olc/olc-articles/scardina1 by Mark Scardina) to create an external table where I'd store my XML file.
So, I
1. Created a directory xmlfile_dir
2. Granted access to needed db user
3. Created the table
CREATE TABLE relayxml_xt (doc CLOB)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY xmlfile_dir
ACCESS PARAMETERS
FIELDS (lobfn CHAR TERMINATED BY ',')
COLUMN TRANSFORMS (doc FROM lobfile (lobfn))
LOCATION ('xml.dat')
REJECT LIMIT UNLIMITED;
4. mv relay.xml /xmlfile_dir/xml.dat
When I run SELECT * FROM relayxml_xt I get this:
Error starting at line 1 in command:
select * from relayxml_xt
Error report:
SQL Error: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file RELAYXML_XT_28773.log
OS error Permission denied
ORA-06512: at "SYS.ORACLE_LOADER", line 19
29913. 00000 - "error in executing %s callout"
*Cause: The execution of the specified callout caused an error.
*Action: Examine the error messages take appropriate action.
What am I doing wrong?
Thanks,
Using External Tables
Introduced in Oracle9i, Oracle’s external table feature offers a solution to define a table in the database while leaving the data stored outside of the database. Prior to Oracle Database 10g, external tables can be used only as read-only tables. In other words, if you create an external table for XML files, these files can be queries and the table can be joined with other tables. However, no DML operations, such as INSERT, UPDATE, and DELETE, are allowed on the external tables.
Note: In Oracle Database 10g , by using the ORACLE_DATAPUMP driver instead of the default ORACLE_DRIVER, you can write to external tables. In Oracle Database 10g, you can define VARCHAR2 and CLOB columns in external tables to store XML documents. The following example shows how you can create an external table with a CLOB column to store the XML documents. First, you need to create a DIRECTORY to read the data files:
CREATE DIRECTORY data_file_dir AS 'D:\xmlbook\Examples\Chapter9\src\xml';
GRANT READ, WRITE ON DIRECTORY data_file_dir TO demo;
Then, you can use this DIRECTORY to define an external table:
CREATE TABLE customer_xt (doc CLOB)
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY data_file_dir
ACCESS PARAMETERS
FIELDS (lobfn CHAR TERMINATED BY ',')
COLUMN TRANSFORMS (doc FROM lobfile (lobfn))
LOCATION ('xml.dat')
REJECT LIMIT UNLIMITED;
The xml.dat file follows:
customer1.xml
customer2.xml
If you describe the table, you can see the following definition:
SQL> DESC customer_xt;
Name Null? Type
DOC CLOB
Then, you can query the XML document as follows:
SELECT XMLType(doc).extract('/Customer/EMAIL')
FROM customer_xt;
Though the query requires run-time XMLType creation and XPath evaluation, this approach is useful when applications just need a few queries on the XML data and don’t want to upload the XML data into database. In Oracle Database 10g, you cannot create external tables that contain pre-defined XMLType column types.
Message was edited by:
vi2167Your don't have the proper operating system privileges. Be sure that you (=oracle OS user / the OS Linux user that is starting the database) are allowed have read privs on the path and/or file.
for example...
chown -Rf /xxxxxxx/xxxx/etc
ls -l file.xml
file.xml oracle:oinstall rw-rw-rw -
Dynamic reading headers external table
Hi,
I have a lot (over 200) of different databases (acces, filemaker, excel, etc) which should be converted to Oracle. An application import (not Oracle) module exists but that application is very slow in importing. I wants to try to speed up this process by loading or quering these files as an external table.
Evey imported database has a different layout, columns etc. Also the number of columns are very high, about 80. Is there any way to dynamically read the file to be imported to extract the column names and map them as input for the create table for the external file? After that it's more easy to query that external file. In the current situation I have to create the table manually and that takes a lot of time.
Or does anyone have a suggestion for another import proces with sqlloader, datapump, or....?
Thanks,
PaulPaul van Rixel wrote:
Hi,
I have a lot (over 200) of different databases (acces, filemaker, excel, etc) which should be converted to Oracle. An application import (not Oracle) module exists but that application is very slow in importing. I wants to try to speed up this process by loading or quering these files as an external table.
Evey imported database has a different layout, columns etc. Also the number of columns are very high, about 80. Is there any way to dynamically read the file to be imported to extract the column names and map them as input for the create table for the external file? After that it's more easy to query that external file. In the current situation I have to create the table manually and that takes a lot of time.
Or does anyone have a suggestion for another import proces with sqlloader, datapump, or....?
Thanks,
PaulThere is no way to dynamically read the file to be imported to extract the column names for an external table - the names must be hard-coded.
This may be doable in a different way, however, depending on how much work you want to do and pain you're willing to endure to accomplish it.
The easiest way is probably have a different external table for each layout with the proper definitions.
Doing this dynamically might be possible but will probably be harder. Dynamic solutions can range from PL/SQL/Java/whatever procedures to read, parse, collect, and insert the data dynamically using data embedded in the files themselves. This will be very hard. Possiblities include using UTL_FILE and possibly pipelined functions which can use UTL_FILE internally defining table output externally.
Some tools offer GUI interfaces to manual file loading. Apex, for instance, can read and load a file derving column names from the first record. Perhaps this is something like what you want to do
Good luck! -
DATE fields and LOG files in context with external tables
I am facing two problems when dealing with the external tables feature in Oracle 9i.
I created an External Table with some fileds with the DATE data type . There were no issues during the creation part. But when i query the table, the DATE fields are not properly selected though the data is there in the files. Is there any ideas to deal with this ?
My next question is regarding the log files. The contents in the log file seems to be growing when querying the external tables. Is there a way to control this behaviour?
Suggestions / Advices on the above two issues are welcome.
Thanks
LakshminarayananHi
If you have date datatypes than:
select
greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
from TABCASER, TABCASER1, EVCASERS
where ...-- join and other conditions
1. greatest is good enough
2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
6. to format the date for display use to_char function with format modell as in the to_date function.
Ott Karesz
http://www.trendo-kft.hu -
External table with dos ^M char
I have created an external table in my Oracle 9i running on Solaris. The table is based on a flatfile that sources from NT. The very last column of each line has ^M character (I think its the Dos newline char ). So if I query the last column of my external table I'lll get :
select last_col
FROM my_ext_tab
LAST_
^M
D^M
A^M
but what I really want to return is
LAST_
<- "NULL"
D
A
I tried to dos2unix the file, and I get
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEFETCH callout
help please
thank youHow is the file getting from NT to Unix? It sounds like you're using binary-mode FTP to transfer an ASCII file. If you use ascii-mode FTP, that should solve the problem.
It's probably possible to solve the problem exclusively on the Oracle side, but fixing the file in the first place will probably be more robust and straightforward.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com -
Can we cleanse and transform data at flat file or external table level?
Hi,
I have some data that I want to cleanse and transform. I don't want to cleanse it after i populate the external table, I want to get done with it at flat file level or while populating the external table. Can we cleanse and transform data at flat file or external table level through Oracle or OWB 11.2? Is it possible to run a conditional load (i.e. having a where clause or if-else-then) for an external table? Can we call oracle functions for an external table at the time of creation?
Thanks in advance.
Regards,
Ann.Hi Oleg,
Thanks a lot for the clarification. :)
So is there a way that I can clease the data within the text file through Oracle or OWB? I have datatype mismatches in the data and most of my data is getting rejected because of that. The way I can think of, for solving this problem, is to create the external table with all fields with datatype varchar and then cleansing the data. But it doesn't seem very effecient plus it will get very complicated because I have almost 80-90 fields.
Any help?
Thanks and regards,
Ann. -
External Table vs SQL Loader.
Hi,
Pls anybody can tell me what is the significant differences between external table and SQL Loader.Both fall into category of Oracle utilities
[SQL*Loader|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/utility.htm#i10606] is the one that loads data into Oracle tables from operating system files and [external table|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/utility.htm#i10611] is the one that
is providing functionality similiar as SQL*Loader in the means of accessing external data but with with a different logic and rules,it lets you access data in external sources as if they were in a table in the database.
Maybe you are looking for
-
Question for cl_gui_frontend_services= file_save_dialog
Hi Expert. I made simple test page. there is nothing but this code in oninitlization * event handler for data retrieval DATA: ld_filename TYPE string, ld_path TYPE string, ld_fullpath TYPE string, ld_result TYPE i. * Display
-
Album Cover does not updated.
when i update the info of the music (album cover, genres) it keeps the old info but not updating the new info. what can i do?
-
ITunes SUPER SLOW to open, especially with iPhone
Has anyone else had some extreme problems with even opening iTunes? Each time I open it, it's a 3-4 minute affair. Even worse is if I open it by plugging in my iPhone. I get spinning beach ball for sometimes 5 minutes before it catches up with itself
-
Difference MBRL - ME21N with items specified as return items
Hi Gurus, can you please help me to understand the difference of these two return processes. We are using ECC 6.0 and want to implement a "standard" process for returning goods to the supplier if they don't meet our expectations. So now i have implem
-
What app to DL flash player for windows8 mobile
why can't I download adobe flash player on my windows 8 cell