Loading metadata from planning to the oracle table
HelloI'm trying to load a metadata dimension of planning to oracle table.we are on 10.1.3
I chose LKM SQL for SQL to load source for staging and IKM SQL for SQL add to load from the staging to the target.
I got the below error
0: null: java.sql.SQLException: Driver must be specified
java.sql.SQLException: Driver must be specified
at com.sunopsis.sql.SnpsConnection.a (SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.t (SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.connect (SnpsConnection.java)
at com.sunopsis.sql.SnpsQuery.updateExecStatement (SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.executeQuery (SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders (SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt (SnpSessTaskSqlC.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i (e.java)
at com.sunopsis.dwg.cmd.h.y (h.java)
at com.sunopsis.dwg.cmd.e.run (e.java)
at java.lang.Thread.run (unknown Source)
Please suggest...
Thank you
If you want to use the dimension essbase as a source, then you'll need extract the size of a target using the 'LKM Hyperion Essbase METADATA to SQL.
It would be also possible to go directly to the planning of the relational tables in the applications, but you must have an understanding of how they work.
See you soon
John
http://John-Goodwin.blogspot.com/
Tags: Business Intelligence
Similar Questions
-
Metadata from MS SQL to Oracle table
Hi gurus!
Is it possible using ODI create a table target on Oracle using metadata from MS SQL?
I can reverse-engineer for MS SQL table and put it as a source in the interface and ODI will use this information and create the table on Oracle workflow.
Create the target table as an array of streams to 1:1 with the Oracle data types?
Thanks in advance!You mean that target tables are also Oracle.
Yes, this can be done. In integration KM (IKM), there is a CREATE_TARG_TABLE option. You can set this Yes. And your target table will be created from the data model if it does not exist.Following steps should be useful:
1.) reverse schema SQL Server in a model.
2.) duplicate this model and changes in Oracle technology. (This will map the data types of MSSQL to Oracle)
3.) use the Oracle based model/data store like target and use any IKM who has the CREATE_TARG_TABLE option. -
ODI - read CSV file and write to the Oracle table
Hello world
After 4 years, I started to work again with ODI, and I'm completely lost.
I need help, I don't know what to use for each step, interfaces, variables, procedures...
What I have to do is the following:
(1) reading a CSV file-> I have the topologies and the model defined
(2) assess whether there is a field of this CSV file in TABLE A-> who do not exist in the table is ignored (I tried with an interface joining the csv with the TABLE model a model and recording the result in a temporary data store)
Evaluate 3) I need to update TABLE C and if not I need to INSERT if another field that CSV exists in TABLE B-> if there
Could someone help me with what use?
Thanks in advance
Hi how are you?
You must:
Create an interface with the CSV template in the source and a RDBM table in the target (I'll assume you are using Oracle). Any type of filter or the transformation must be defined to be run in the stadium. (you must use a LKM for SQL file and add an IKM Sql control (it is best to trim them and insert the data when it cames to a file if you want after this process, you may have an incremental update to maintain history or something like that).)
For validation, you will use a reference constraints in the model of the oracle table: (for this you need a CKM Oracle to check constraints)
Then, you must select the table that you sponsor and in the column, you choose which column you will match.
To article 3, you repeat the above process.
And that's all. Pretty easy. If you do not have the two tables that you need to use your validation that you need to load before loading the CSV file you need valid.
Hope this can help you
-
Insert data as XML into the Oracle Table
Hi all
I have a requirement where the data in XML format, and I need to insert into the Oracle Table. For example, I get XML data in the following format,
< results >
< row >
< BANK_ACCOUNT_ID > 10010 < / BANK_ACCOUNT_ID >
< BANK_ID > 300968 < / BANK_ID >
Vision operations < LEGAL_ENTITY > < / LEGAL_ENTITY >
< BANK_NAME > BofA < / BANK_NAME >
< BANK_ACCOUNT_NUM > 10271-17621-619 < / BANK_ACCOUNT_NUM >
< BANK_ACCOUNT_NAME > BofA-204 < / BANK_ACCOUNT_NAME >
< BRANCH_NAME > New York < / BRANCH_NAME >
USD < CURRENCY_CODE > < / CURRENCY_CODE >
< BALANCE_DATE > 2007 - 11 - 09 < / BALANCE_DATE >
< LEDGER_BALANCE > 432705900.56 < / LEDGER_BALANCE >
< / row >
< row >
< BANK_ACCOUNT_ID > 10091 < / BANK_ACCOUNT_ID >
< BANK_ID > 300984 < / BANK_ID >
Vision industries < LEGAL_ENTITY > < / LEGAL_ENTITY >
Barclay Bank < BANK_NAME > < / BANK_NAME >
< BANK_ACCOUNT_NUM > 70986798 < / BANK_ACCOUNT_NUM >
Bank Multi currency-626 < BANK_ACCOUNT_NAME > Barclays < / BANK_ACCOUNT_NAME >
Reading < BRANCH_NAME > < / BRANCH_NAME >
GBP < CURRENCY_CODE > < / CURRENCY_CODE >
< BALANCE_DATE > 2007 - 11 - 14 < / BALANCE_DATE >
< LEDGER_BALANCE > 24244085.24 < / LEDGER_BALANCE >
< / row >
< row >
< BANK_ACCOUNT_ID > 10127 < / BANK_ACCOUNT_ID >
< BANK_ID > 300968 < / BANK_ID >
< LEGAL_ENTITY > SSC U.S. 01 < / LEGAL_ENTITY >
< BANK_NAME > BofA < / BANK_NAME >
< BANK_ACCOUNT_NUM > 4898744 < / BANK_ACCOUNT_NUM >
< BANK_ACCOUNT_NAME > BofA SSC U.S. 02-7188 < / BANK_ACCOUNT_NAME >
< BRANCH_NAME > New York < / BRANCH_NAME >
USD < CURRENCY_CODE > < / CURRENCY_CODE >
< BALANCE_DATE > 2007 - 11 - 28 < / BALANCE_DATE >
< LEDGER_BALANCE > 10783815.28 < / LEDGER_BALANCE >
< / row >
< / results >
I like to write PLSQL code that will receive these data with XML tags and insert it into the Oracle Table. Is this possible with built-in XML features provided in the Oracle database?
Please Guide...
Kind regards
PriyankaBut the problem is the file XML is to have the details of the records if you carefully observed the XML file. But by using more high statement select I get output in the following format.
ORG_ID REQ_LINE PO_NUMBER EXPECTED_REC_QTY USER_NAME REQ_NUMBER
204204 1444714450 11 64446445 11 OPERATIONSOPERATIONSThe table has only one row, so you get a single row as output.
I'm surprised that you find useful examples showing how to divide the data into several lines.(1) create the table with the following option, it will optimize the performance of storage and query for large XML documents:
CREATE TABLE xxios_xml_data_test(xml_data XMLTYPE) XMLTYPE COLUMN xml_data STORE AS SECUREFILE BINARY XML ;
(2) interview table with:
SQL> select x.* 2 from xxios_xml_data_test t 3 , xmltable( 4 '/Results/Row' 5 passing t.xml_data 6 columns ORG_ID number path 'ORG_ID' 7 , REQ_NUMBER number path 'REQ_NUMBER' 8 , REQ_LINE number path 'REQ_LINE' 9 , PO_NUMBER number path 'PO_NUMBER' 10 , EXPECTED_REC_QTY number path 'EXPECTED_REC_QTY' 11 , USER_NAME varchar2(30) path 'USER_NAME' 12 ) x 13 ; ORG_ID REQ_NUMBER REQ_LINE PO_NUMBER EXPECTED_REC_QTY USER_NAME ---------- ---------- ---------- ---------- ---------------- ------------------------------ 204 14447 1 6444 1 OPERATIONS 204 14450 1 6445 1 OPERATIONS
-
Cannot access SQL more from other than the Oracle users
Hello
I installed Oracle 11 g R2 on Red Hat 6. My problem is that I can't access sqlplus from other than the oracle users.
I put the PATH, the ORACLE_HOME and ORACLE_SID to the correct values.
Session1
Connect as: oracle
[email protected] password:
Last login: Sun Aug 24 01:24:46 192.168.202.1 2014
[oracle@localhost ~] $ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Oracle/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin
[oracle@localhost ~] $ echo $ORACLE_HOME
/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1
[oracle@localhost ~] $ echo $ORACLE_SID
ORCL
[oracle@localhost ~] $ sqlplus
SQL * more: Production release 11.2.0.1.0 Sun Aug 24 03:17:32 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter the user name:
Session2
Connect as: nada
[email protected] password:
Last login: Sun Aug 24 02:31:49 192.168.202.1 2014
[prithwish@localhost ~] $ export PATH=$PATH:/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin
[prithwish@localhost ~] $ export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
[prithwish@localhost ~] $ export ORACLE_SID = orcl
[prithwish@localhost ~] $ echo $ORACLE_HOME
/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1
[prithwish@localhost ~] $ echo $ORACLE_SID
ORCL
[prithwish@localhost ~] $ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/Home/Prithwish/bin:/Home/Oracle/app/Oracle/product/11.2.0/dbhome_1/bin
[prithwish@localhost ~] $ sqlplus
-bash: sqlplus: command not found
I guess that I could not access sqlplus as the Nada the user has no access to X11R6
[prithwish@localhost ~] $ cd...
[Host prithwish@localhost] $ ls - ltr
Total 8
drwx-. 30 oracle oinstall 4096 23 August 23:51 oracle
drwx-. Nada Nada 4096 24 August to 02:33 27 Mathieu
[Host prithwish@localhost] $
My question is, although quite stupid, that double
(1) I have to change the permissions of the directory oracle of 755 for any other user to access the sqlplus?
(2) why is the user directory under the folder created with permissions of 700, even when the umask is set to 002? Change the permissions of the directory under/Home oracle will cause security problems?
My apologies for being naïve. It's the first time I installed Oracle under UNIX
Kind regards
Prithwsh
Actually, the default procedure is NOT to install oracle to X11R6, but in/opt/oracle. or maybe/usr/local/oracle.
This is what you're going to be recommended in the installation documentation, and in doing so, don't forget to run rootpre.sh and root.sh, I never had security problems and could run Oracle from any account.
Sybrand Bakker
Senior Oracle DBA
-
Remove duplicates from the oracle table using 2 columns
Hello
I need to remove the duplicates of an oracle table based on 2 columns in the table.i tried to remove duplicates using the join, but get the error like sql error ora-00933
Thank you
Hello
Here's one way:
DELETE FROM table_x
WHERE ROWID NOT IN)
SELECT MIN (ROWID)
FROM table_x
Col_1, col_2
);
I hope that answers your question.
If this isn't the case, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
In the case of a DML operation (for example, REMOVE) the sample data should show what look like the paintings before the DML, and results will be the content of the or the tables changed after the DML.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: Re: 2. How can I ask a question on the forums?
-
XML from the Oracle Table data
Hi all
I'm new to this network. I'm also new to oracle XML package. I want a help with the query below.
CREATE TABLE EMP (ID NUMBER PRIMARY KEY, NAME VARCHAR2 (10), TELEPHONE NUMBER);
INSERT INTO EMP (ID, NAME, PHONE) VALUES (11, 'Joy', 1234);
INSERT INTO EMP (ID, NAME, PHONE) VALUES (22, 'Mike', 5678).
INSERT INTO EMP (ID, NAME, PHONE) VALUES (33, "Jason", NULL);
COMMIT;
I want to export data from the EMP table in an XML file with the format below.
Power required:
<? XML version = "1.0" encoding = "UTF-8"? > < Joy STATICDATA > < EMP > < ID > 11 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >
<? XML version = "1.0" encoding = "UTF-8"? > < Mike STATICDATA > < EMP > < ID > 22 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >
<? XML version = "1.0" encoding = "UTF-8"? > < Jason STATICDATA > < EMP > < ID > 33 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >
I used some XML functions and you wrote the following query.
Select XMLROOT (XMLELEMENT (staticdata, XMLELEMENT (EMP, XMLELEMENT(ID,ID), XMLELEMENT(NAME,NAME))), version "1.0" encoding = "UTF - 8') xml EMP;
my query output:
<? XML version = "1.0" encoding = "UTF-8"? >
< STATICDATA >
< EMP >
< ID > 11 / < ID >
Joy of < NAME > < / NAME >
< / EMP >
< / STATICDATA >
<? XML version = "1.0" encoding = "UTF-8"? >
< STATICDATA >
< EMP >
< ID > 22 / < ID >
< NAME > Mike < / NAME >
< / EMP >
< / STATICDATA >
<? XML version = "1.0" encoding = "UTF-8"? >
< STATICDATA >
< EMP >
< ID > 33 / < ID >
Jason < NAME > < / NAME >
< / EMP >
< / STATICDATA >
But I want the out as the power required above. all records in a single line. can someone help me achieve the desired output. also can I export all columns of the table with something like select * from the table in the XML file?
Thank you
DelobelleDon't know why you need it on a single line, but you could:
Select XMLTYPE (REGEXP_REPLACE (XMLROOT (XMLELEMENT (staticdata, XMLELEMENT (EMP, XMLELEMENT(ID,ID), XMLELEMENT(NAME,NAME))), version "1.0" encoding = "UTF - 8'), CHR (10) |)) ' *<><'))>'))>
FROM EMP;SY.
-
On the analysis of the oracle Tables, indexes
Hi guru,.
Thanks for the previous help.
I have scenerio
I have three table which is refreshed weekely (Truncate and load).
I have to manually analyze using DBMS_STATS. GATHER_TABLE_STATS?
My knowledge is when we insert frequently so only we analyze tables and their indexes.
I'm using the Oracle version:
1 oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
2 PL/SQL Release 11.2.0.3.0 - Production
3 "CORE 11.2.0.3.0 Production."
Thnaks,
truncation does not remove the object statistics:
-11.2.0.1.
create table t
as
Select rownum id
of the double
connect by level<=>=>
SQL > exec dbms_stats.gather_table_stats (user, 't')
PL/SQL-Prozedur been abgeschlossen.
SQL > select num_rows, last_analyzed from user_tables where table_name = 't';
NUM_ROWS LAST_ANA
---------- --------
10000 16.04.14
SQL > truncate table t;
Tabelle mit TRUNCATED geleert.
SQL > select num_rows, last_analyzed from user_tables where table_name = 't';
NUM_ROWS LAST_ANA
---------- --------
10000 16.04.14
So if your table contains almost the same data after the operation of loading/truncate old statistics may be sufficient. But it is difficult to imagine you do a TRUNCATE/loading operation to re-import data - almost certainly is a good idea to gather statistics after the operation of loading/truncate, if you have the time and resources to do this.
-
Loading data for planning in the Interface of EPMA
Hi all
I have worked in Essbase and planning Applications and have accomplished the task of loading data and the option Table Interface EPMA and planning.
However I have a requirement, that is to say, I want to load planning data in the Interface Table...
Is this possible? Everyone please help me...
Thanks in advanceIf you want to fetch data from the essbase planning data and load into a table of interface?
The table interface is essentially just a relational table, there are a number of ways to get order dataexport data, report script, cdf, essbase mdx.
You could automate with scripts, ODI, or if you are willing to pay then stars analytical.See you soon
John
http://John-Goodwin.blogspot.com/ -
Hi gurus,
I have a question, is it possible that we can follow the history of the growth of the tables. For example, table A, B, C have been created when the database is created in the schema "ricky". How we can follow the growth of tables in a report. Lets say we want to see the growth of this table, after two years, so we can refer a custom script that can report weekly or monthly in this table growth within 2 years. The reason why I ask is to plan the purge policy.
Any help would me much appreciated
SQL > select * from v version $;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
AMT for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
Published by: 821269 on March 25, 2011 16:20Hello, welcome to the forum.
>
is it possible that we can follow the history of the growth of the tables
>Automatically by Oracle, no.
Manually, do it by yourself. Yes.
You can create a table where you can store the information you want, like this (for example).
CREATE TABLE TABLES_SIZE_HIST ( SNAP_DATE DATE, SNAP_TYPE CHAR(1), --you can put D=Daily, W=Weekly etc OWNER VARCHAR2(30), SEGMENT_TYPE VARCHAR2(30), SEGMENT_NAME VARCHAR2(30), SEGMENT_BYTES NUMBER) /
Regularly lets you insert data in the table above to this statement (as an example, you can insert data into the table in many ways).
INSERT INTO TABLES_SIZE_HIST SELECT sysdate, 'W', s.owner, s.segment_type, s.segment_name, s.bytes FROM dba_segments s WHERE s.owner = '
' AND s.segment_type = ' ' AND s.segment_name IN ('
', ' ',.....,' ') /
So the above query, you can put it in a work of Oracle or in a Cron Job (unix) to say something.
After your period of 2 years, you can query the data collected and desitions.
We must be very careful because maybe you can have a lot of data in your table. So, you have to find the best scenario for storage.
Of course, depends on the time that you make to the instantaneous, daily, weekly, twice per day etc.
HTH
----------
johnxjeanQuerying the oracle table that has a column with the name of "FILE".
Hi all
I need to have an oracle table that has the column with the name "FILE".
I can query all columns with the query "select * from table".
But I'm not able to use the query "select the table file.
This table is converted from ms access to oracle and I need to have this column with the name "FILE".
Any suggestions?
Thank you
Abdellaoui
Hello
FILE is a keyword from Oracle, so it's not a good name,
Use FILEDATE, or DATE_FILED, or something else that is not in V$ RESERVED_WORDS. KEYWORD as the name column.
If you need to use the FILE, then you must use quotation marks.
Loading metadata to planning using FDMEE
Hi all, please please guide me in this. I am trying to load the cube MAP metadata. I have the metadata to load into a flat file / csv file. Please tell us how to use FDMEE to load these planning cube metadata. Please guide in this if you have steps on it. Best regards, laetitia Rasheed
Hello
FDMEE does not support the metadata of loading an application to planning of a FLAT file source. Metadata are only possible when connecting to source directly (such as EBS and PeopleSoft) systems.
Instead, use one of Planning available utilities to import metadata.
You can always load the data via FDMEE.
Get the number of rows in the oracle table
Hi all
I want to get the total number of rows in the sql to the appmodule table.
After you apply the criteria to view some on the view object. If he try with getallrowsinrange the number of rows found within the viewobject was but I want a total number of rows in the sql table.
How can I get that
I use jdev 11.1.1.5
Thanks in advanceI threw something together, quick and dirty, don't hesitate to optimize.
Assuming you want the County table, I put the code in a subclass of EntityDefImpl since it is representing a table in the middle tier.
public class EmpDefImpl extends EntityDefImpl { /** * This is the default constructor (do not remove). */ public EmpDefImpl( ) {} //~ Methods **************************************************************************** public long getTableRowCount( DBTransaction transaction ) { String query = getQuery( ); String countQuery = String.format( "SELECT COUNT(*) FROM (%s)", query ); long count = 0; ViewObject vo = transaction.createViewObjectFromQueryStmt( countQuery ); try { vo.executeQuery( ); Row row = vo.first( ); Number number = (Number)row.getAttribute( 0 ); count = number.longValue( ); } finally { vo.remove( ); } return count; } }
Depending on your card type, you may not get an oracle.jbo.domain.Number, but something else, so the cast may need correction.
Usage example:
public class EmpEditViewImpl extends ViewObjectImpl { public EmpEditViewImpl() { } protected void executeQueryForCollection( Object object, Object[] object2, int i ) { super.executeQueryForCollection( object, object2, i ); EmpDefImpl def = ( EmpDefImpl )getEntityDef( 0 ); long tableRowCount = def.getTableRowCount( getDBTransaction() ) ); // Do something with it } }
As you can see, the code is fairly generic. Also, you might be able to put this in a base extension ADF class.
Sascha
Published by: Sascha Herrmann on June 7, 2012 14:39
XML document to the oracle tables - data isn't fatching
Hello
I'm new to xml and trying to extract some fields of XML to oracle to use more in the application tables. I wrote the following to extract the values, but nothing is fatching document:
<? XML version = "1.0" encoding = "UTF-8"? >
-dmsgo:DMS_GO_Interface xmlns:dmsgo = "https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1 DMS_GO_Interface_v1.xsd" >
< dmsgo:majorversion > 1 < / dmsgo:majorversion >
< dmsgo:identity context = datetimecreated "CONFGOFR_OUT" = "03/01/2011 10:51 ' source = 'go' sourceversion ="1.410.1"/ >"
-< dmsgo:prospect >
< code dmsgo:requestresponse = "0" / >
< dmsgo:references / >
-dmsgo:configurationcontext dataversion = LangueCode "2163" = "" orderingmarket = '867' saleslevel "O" = >
< dmsgo:configurationdate > 03/01/2011 < / dmsgo:configurationdate >
< / dmsgo:configurationcontext >
-< dmsgo:vehicle >
< dmsgo: variant baumuster = "2120482" manufacturercode = "2120482" / >
< dmsgo:desc > E 200 CGI BlueEFFICIENCY sedan RHD < / dmsgo:desc >
-< dmsgo:colorcombination >
< dmsgo:interiorcolor codeowner = 'C' manufacturercode = "4201" = ppmtype "to THE" > black leather < / dmsgo:interiorcolor >
< dmsgo:exteriorcolor = 'C' manufacturercode codeowner = "2497" ppmtype "READ" = > metal Brown corrosion < / dmsgo:exteriorcolor >
< dmsgo:paintzone manufacturercode = "" preference = "2" / > "
< / dmsgo:colorcombination >
INSERT INTO p1 (flux_name, elment_1, elment_2, elment_3)
SELECT flux_name, elment_1, elment_2, elment_3
FROM XMLTable)
XMLNamespaces ('https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1' as 'dmsgo'),
"dmsgo:DMS_GO_Interface/perspective/vehicle.
passage xmltype (bfilename('DMLDIR','prospect.xml'), nls_charset_id ('CHAR_CS'))
columns
path of varchar2 (20) flux_name "dmsgo:variant/@baumuster"
path of varchar2 (20) elment_1 "dmsgo:desc"
path of varchar2 (20) elment_2 ' dmsgo:colorcombination / interiorcolor',
path of varchar2 (20) elment_3 'dmsgo:colorcombination/interiorcolor/@manufacturercode '.
);
Help, please.
Looking forward to early response.
Thank you
UsmanHello
'Re missing you the prefix to namespace on elements.
This should work:SQL> SELECT flux_name, elment_1, elment_2, elment_3 2 FROM XMLTable( 3 XMLNamespaces ('https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1' as "dmsgo"), 4 'dmsgo:DMS_GO_Interface/dmsgo:prospect/dmsgo:vehicle' 5 passing xmltype(bfilename('DMLDIR','prospect.xml'), nls_charset_id('CHAR_CS')) 6 columns 7 flux_name varchar2(20) path 'dmsgo:variant/@baumuster', 8 elment_1 varchar2(40) path 'dmsgo:desc', 9 elment_2 varchar2(20) path 'dmsgo:colorcombination/dmsgo:interiorcolor', 10 elment_3 varchar2(20) path 'dmsgo:colorcombination/dmsgo:interiorcolor/@manufacturercode' 11 ); FLUX_NAME ELMENT_1 ELMENT_2 ELMENT_3 -------------------- ---------------------------------------- -------------------- -------------------- 2120482 E 200 CGI BlueEFFICIENCY Sedan RHD Leather black 4201
Do not include the Oracle Tables
I am new to Oracle and need to ask a question.
Some oracle tables seem to act different than DB2.
To determine the number of records in dba_jobs is 1.
Can I describe the table and find there are about
18 columns in the table.
Then I run a SELECT * on the table.
When I select, looks like it is printing on about 8 different records.
With only the MISC ENV field being filled.
How should I interpret it
Here are the commands I entered:
Thank youSQL> select count(*) from dba_jobs; COUNT(*) ---------- 1 SQL> describe dba_jobs; Name Null? Type ----------------------------------------- -------- ---------------------------- JOB NOT NULL NUMBER LOG_USER NOT NULL VARCHAR2(30) PRIV_USER NOT NULL VARCHAR2(30) SCHEMA_USER NOT NULL VARCHAR2(30) LAST_DATE DATE LAST_SEC VARCHAR2(8) THIS_DATE DATE THIS_SEC VARCHAR2(8) NEXT_DATE NOT NULL DATE NEXT_SEC VARCHAR2(8) TOTAL_TIME NUMBER BROKEN VARCHAR2(1) INTERVAL NOT NULL VARCHAR2(200) FAILURES NUMBER WHAT VARCHAR2(4000) NLS_ENV VARCHAR2(4000) MISC_ENV RAW(32) INSTANCE NUMBER SQL> select * from dba_jobs; JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- 1 SYSMAN SYSMAN JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- SYSMAN 20-APR-09 22:29:55 20-APR-09 JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- 22:30:55 17989 N JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- sysdate + 1 / (24 * 60) JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- 0 JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' NLS_CURRENCY='$' NLS_ISO_CURRENC JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- Y='AMERICA' NLS_NUMERIC_CHARACTERS='.,' NLS_DATE_FORMAT='DD-MON-RR' NLS_DATE_LAN JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- GUAGE='AMERICAN' NLS_SORT='BINARY' JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ---------- 0102000000000000 0 JOB LOG_USER PRIV_USER ---------- ------------------------------ ------------------------------ SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE ------------------------------ --------- -------- --------- -------- --------- NEXT_SEC TOTAL_TIME B -------- ---------- - INTERVAL -------------------------------------------------------------------------------- FAILURES ---------- WHAT -------------------------------------------------------------------------------- NLS_ENV -------------------------------------------------------------------------------- MISC_ENV INSTANCE ---------------------------------------------------------------- ----------
Published by: user10747262 on April 21, 2009 11:56I think you see the results of the formatting in SQL * Plus when you use certain default settings. Try the following and then run your query again
set pagesize 100
Maybe you are looking for
-
I can clone a drive using Disk Utility Version 15.0
I want to replace my MBP 5.3 HDD with a larger SSD. I would like to clone, make sure that his startup, then install. Utility of disc is not clear and I don't want to spoil. Any help is greatly appreciated. Thank you
-
How can I get rid of the pop-up "Firefox prevented this page automatically reload.
I get pop line telling me that "Firefox prevented this page reloading. There is a button allow but it comes back.
-
HP dv6-3127dx of i3, i5 or i7 upgrade?... PLEASE HELP :)
Hello, I have a HP Pavilion DV6 3127dx with an Intel (r) Core i3 CPU M350 @ processor clocked at 2.27 Ghz.Windows 7 Edition home premium is it possible to put in a faster processor? i5 or i7? only, I have 4 GB of ram and understand that I can only sp
-
I have three partitions on my hard drive of Lenovo Y510:C: 29,29 GB (4% free)D: 104.96 GB (92% free)no name: healthy EISA 14.79 GB (100% free) Now, the C drive runs due to continuous windows updates. I deleted all the irrelevant data. All data are st
-
Registration of client-sample-app Push received the error 403
Hi guys. I work the pusk sdk demo. When I run the client Simulator demo. first register the URL of content provider. I got a 200 response code. It is successfully then register at https://pushapi.eval.blackberry.com. this time, I got a 403 responsec