Creating a view using causes error ORA-00600
Hello ladies and gentlemen,
I tried to deploy a recursive query, as a point of view in Oracle XE and Standard Edition, nor a lot of success.
The query is in this issue here: http://stackoverflow.com/questions/17358109/how-to-retrieve-all-recursive-children-of-parent-row-in-oracle-sq
with recursion_view(base, parent_id, child_id, qty) as ( -- first step, get rows to start with select parent_id base, parent_id, child_id, qty from md_boms union all -- subsequent steps select -- retain base value from previous level previous_level.base, -- get information from current level current_level.parent_id, current_level.child_id, -- accumulate sum (previous_level.qty + current_level.qty) as qty from recursion_view previous_level, md_boms current_level where current_level.parent_id = previous_level.child_id ) select base, parent_id, child_id, qty from recursion_view order by base, parent_id, child_id
The query itself works and returns the results. However, when I try to create a view with this query, I get errors.
I posted two screenshots: http://www.williverstravels.com/JDev/Forums/StackOverflow/17358109/ViewError.jpg and http://www.williverstravels.com/JDev/Forums/StackOverflow/17358109/InternalError.jpg one with the! and * is when I am using JDeveloper 11g, using the navigation database, right-click on the view and select "New View". I get the error when I click on OK. I can indeed create the view through a sql script, but when I try to view the data, I get the error ORA_00600.
I tried it work on my machine the two premises for XE (version 11.2.0.2.0) and 11g Standard Edition (11.2.0.2.v6) via Amazon Web Services. The result is the same.
Does anyone know how to get around this problem?
Not 5 minutes after I have this post, I decide not to use the graphical editor of JDev and simply write
SELECT * FROM BOMS_VIEW;
And it works like a charm. I can not just use data tab to display records in the editor. Wish I'd known that there is 5 hours.
Tags: Database
Similar Questions
-
create / relational view received the error
Hi expert,
I'm in Oracle Enterprise Manager 11 g 11.2.0.1.0.
SQL * more: Production of release 11.2.0.1.0 killed him Feb 22 11:40:23 2011
I have an .xml file in a table of xmltype: DOCUMENT
<? XML version = "1.0" encoding = "UTF-8"? > <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
"< document xmlns =" "urn: hl7 - org:v3" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd" & gt;
< root id = "5ca4e3cb-7298-4948-8cc2-58e71ad32694" / >
< code = '51725-0' codeSystem = "2.16.840.1.113883.6.1" displayName = "REGISTRATION OF ESTABLISHMENTS" / >
< effectiveTime value = "20100730" / >
........................................................
< / contactParty >
< / assignedOrganization >
< performance >
< actDefinition >
< code = "C43360" codeSystem = "2.16.840.1.113883.3.26.1.1" displayName = "manufacturing" / >
< / actDefinition >
< / performance >
< / assignedEntity >
< / assignedOrganization >
< / assignedEntity >
< / representedOrganization >
< / assignedEntity >
< / author >
< item >
< structuredBody / >
< / component >
< / document >
I tried to create a relational view using the code below.
I got following error:
ERROR on line 1:
ORA-19276: XPST0005 - XPath step specifies an invalid element/attribute name:
(author ='urn: hl7 - org:v3')
y does it can someone help me.
Thank you!
Published by: cow on March 18, 2011 14:14Hello
You have the wrong Xpath by passing the XML fragment to the 2nd XMLTable.
SELECT master.registrationID, master.code, detail.* FROM DOCUMENT doc, XMLTable( XMLNamespaces(default 'urn:hl7-org:v3'), '/document' PASSING doc.OBJECT_VALUE COLUMNS registrationID VARCHAR2(50) PATH 'id/@root', code VARCHAR2(10) PATH 'code/@code', orgID NUMBER(10) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/id/@extension', orgROOT VARCHAR2(15) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/id/@root', orgNAME VARCHAR2(50) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/name', orgADDRstreet VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/streetAddressLine', orgADDRcity VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/city', orgADDRstate VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/state', orgADDRzip VARCHAR2(15) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/postalCode', orgADDRcountry VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/country', orgPHONE VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/telecom[1]/@value', orgEMAIL VARCHAR2(40) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/telecom[2]/@value', contactPerson VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/contactPerson/name', assignedEntity XMLTYPE PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/assignedEntity' ) master , XMLTable( XMLNamespaces(default 'urn:hl7-org:v3'), '/assignedEntity' PASSING master.assignedEntity COLUMNS RSN_XML_POS FOR ORDINALITY, orgID2 NUMBER(10) PATH 'assignedOrganization/id[1]/@extension', orgROOT2 VARCHAR2(15) PATH 'assignedOrganization/id[1]/@root', orgID2_d NUMBER(10) PATH 'assignedOrganization/id[2]/@extension', orgROOT2_d VARCHAR2(20) PATH 'assignedOrganization/id[2]/@root', orgNAME2 VARCHAR2(50) PATH 'assignedOrganization/name', orgADDRstreet2 VARCHAR2(20) PATH 'assignedOrganization/addr/streetAddressLine', orgADDRcity2 VARCHAR2(20) PATH 'assignedOrganization/addr/city', orgADDRstate2 VARCHAR2(20) PATH 'assignedOrganization/addr/state', orgADDRzip2 VARCHAR2(15) PATH 'assignedOrganization/addr/postalCode', orgADDRcountry2 VARCHAR2(20) PATH 'assignedOrganization/addr/country', orgADDRstreet3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/streetAddressLine', orgADDRcity3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/city', orgADDRstate3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/state', orgADDRzip3 VARCHAR2(15) PATH 'assignedOrganization/contactParty/addr/postalCode', orgADDRcountry3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/country', orgPHONE3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/telecom[1]/@value', orgEMAIL3 VARCHAR2(40) PATH 'assignedOrganization/contactParty/telecom[2]/@value', contactPerson3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/contactPerson/name' ) detail ;
-
9.0.4 to 10.1.2 upgrade error ora-00600
We are modernizing our 9.0.4 to 10.1.2 forms... We have a few problems of conversion of a couple of forms. Most of the forms convert a major just fine and working. One of the forms has this error in a when button pressed trigger...
I commented some code of the trigger until the error has disappeared. Form builder is having a problem with a call of plsql database package.procedure which is actually a wrapper of a java class stored in the database. The code in this 10.1.2 form is identical to the code in the 9.0.4 form. The 9.0.4 form works very well and calls this wrapper a - OK. The 10.1.2 form get the above error. This error occurs when compiling the code when the button is pressed in the form on my local pc Builder and trying to compile the form on the application server. Am I missing a java parameter somewhere in both places?ora-00600: internal error code, arguments: [KGHALO2], [0x0], [], [], [], [], [], []
Published by: Mark Reichman on October 16, 2008 14:46create or replace PACKAGE sims_marrs_report IS PROCEDURE insert_clob_data(dot_case_num in varchar2, docxml_id in number, temp_report_pk in number, marrs_report_pk in number, out_error out varchar2) as language java name 'AccidentReport.create(java.lang.String, oracle.sql.NUMBER, oracle.sql.NUMBER, oracle.sql.NUMBER, java.lang.String[])'; ..... end;
ORA-00600 should generally be registered to oracle support.
BTW... what version of the database you use?
Perhaps a work around:
wrap your wrapper java again in a pure pl/sql-procedure that then calls the java wrapper.
Sounds strange, but can work.
-
Create the view using SQL DEVELOPER
I'm new to this forum :)
11 GR 2, WIN2008 R2
SQL Developer Version 3.2.09
I am creating the data below view (view existing)
Table: Dovmarker
I try to describe the table and my goal :),MARKERBOREHOLE UWI MARKERSURFACE Z WELLXXX 65372643AAAA Cw -982,985619574516 WELLXXX 65372643AAAA Cn -1891,47401803955 WELLXXX 65372643AAAA J -674,989528816517 WELLXXX 65372643AAAA K3 20,00165000429 WELLXXX 65372643AAAA Tr 125,000317308153 WELLXXX 65372643AAAA K1 -658,989731894024 WELLXXX 65372643AAAA Q 149,999999999549 WELLYYY 56618334AAAA Jkm -715,071442105268 WELLYYY 56618334AAAA K3 36,9013966413975 WELLYYY 56618334AAAA J2 -976,056079257549 WELLYYY 56618334AAAA Tr 106,900507694299
each line describes wells, uwi(uniqe identifier), z (deppth), high (surface marker)
I try to merge all lines with the same MARKERBOREHOLE/UWI and MARKERSURFACE contact coresponding Z (ascending) as MARKERSURFACE = Z.
If it is posibble to reduce the number of decimals to 2.
My idea to solve the problem:
example: ' | ' is the delimiter
or better (not enough knowledge ;))WELLXXX Q=149,999999999549 | Tr=125,000317308153 | K3=20,00165000429 | K1=-658,989731894024 | J =-674,989528816517 | Cw=-982,985619574516 | Cn=-1891,47401803955 WELLYYY Tr=106,900507694299 | K3=36,9013966413975 | Jkm=-715,071442105268 | J2=-976,056079257549
Number of markersurface is different for each wellWELLXXX Q=149,999999999549 Tr=125,000317308153 K3=20,00165000429 K1=-658,989731894024 J =-674,989528816517 Cw=-982,985619574516 Cn=-1891,47401803955 WELLYYY Tr=106,900507694299 K3=36,9013966413975 Jkm=-715,071442105268 J2=-976,056079257549
I try to do it by the listagg function, but I have failled
result:select markerborehole, listagg(z, ' | ') within group (order by z) as new1 from dovmarker group by markerborehole;
When I tried to create new view in sql developer I occurred error;WELLZZZ -2575,95869465411 | -1891,47401803955 | -982,985619574516 | -674,989528816517 | -658,989731894024 | WELLRRR -2376,96975480605 | -2376,96975480605 | -2308,97180590009 | -2308,97180590009 | -2206,47428534641 | -2206,47428534641 | -2163,97522524171
Can you help me with this?Error(s) parsing SQL: unexpected token near *!* in the following: select markerborehole, listagg(z, ' | ') within *!*group (order by z) as new1 unexpected token near *!* in the following: select markerborehole, listagg(z, ' | ') within group *!*(order by z) as new1 missing expression near *!* in the following: select markerborehole, listagg(z, ' | ') within group (*!*order by z) as new1
Concerning
Jaroslaw961148 wrote:
I missed xWell Yes, my apologies, I has not changed all that.
It's a simple way to format the Z value to 2 decimal places?
Yes. It depends on if you want to use rounded, floor, ceiling, truncate or if you like a string always have 2 decimal places etc.
Make your choice and customize according to your needs...SQL> ed Wrote file afiedt.buf 1 with t as (select 'WELLXXX' as MARKERBOREHOLE, '65372643AAAA' as UWI, 'Cw' as MARKERSURFACE, -982.985619574516 as Z from dual union all 2 select 'WELLXXX', '65372643AAAA', 'Cn', -1891.47401803955 from dual union all 3 select 'WELLXXX', '65372643AAAA', 'J', -674.989528816517 from dual union all 4 select 'WELLXXX', '65372643AAAA', 'K3', 20.00165000429 from dual union all 5 select 'WELLXXX', '65372643AAAA', 'Tr', 125.000317308153 from dual union all 6 select 'WELLXXX', '65372643AAAA', 'K1', -658.989731894024 from dual union all 7 select 'WELLXXX', '65372643AAAA', 'Q', 149.999999999549 from dual union all 8 select 'WELLYYY', '56618334AAAA', 'Jkm', -715.071442105268 from dual union all 9 select 'WELLYYY', '56618334AAAA', 'K3', 36.9013966413975 from dual union all 10 select 'WELLYYY', '56618334AAAA', 'J2', -976.056079257549 from dual union all 11 select 'WELLYYY', '56618334AAAA', 'Tr', 106.900507694299 from dual) 12 -- 13 -- END OF TEST DATA - IGNORE ABOVE WITH CLAUSE 14 -- 15 select z 16 ,round(z,2) as round_z_2 17 ,floor(z*100)/100 as floor_z_2 18 ,ceil(z*100)/100 as ceil_z_2 19 ,trunc(z,2) as trunc_z_2 20 ,to_char(round(z,2),'fm9990.00') as string_z_2 21* from t SQL> / Z ROUND_Z_2 FLOOR_Z_2 CEIL_Z_2 TRUNC_Z_2 STRING_Z ------------------- ---------- ---------- ---------- ---------- -------- -982.9856195745160 -982.99 -982.99 -982.98 -982.98 -982.99 -1891.4740180395500 -1891.47 -1891.48 -1891.47 -1891.47 -1891.47 -674.9895288165170 -674.99 -674.99 -674.98 -674.98 -674.99 20.0016500042900 20 20 20.01 20 20.00 125.0003173081530 125 125 125.01 125 125.00 -658.9897318940240 -658.99 -658.99 -658.98 -658.98 -658.99 149.9999999995490 150 149.99 150 149.99 150.00 -715.0714421052680 -715.07 -715.08 -715.07 -715.07 -715.07 36.9013966413975 36.9 36.9 36.91 36.9 36.90 -976.0560792575490 -976.06 -976.06 -976.05 -976.05 -976.06 106.9005076942990 106.9 106.9 106.91 106.9 106.90 11 rows selected.
with above code I try to create a new view in SQL Developer, but I have error:
Error(s) parsing SQL: Unexpected token near *!* in the following: select markerborehole, listagg(z,chr(10)) within *!*group(order by rn) as z Unexpected token near *!* in the following: select markerborehole, listagg(z,chr(10)) within group*!*(order by rn) as z Missing expression near *!* in the following: select markerborehole, listagg(z,chr(10)) within group(*!*order by rn) as z
What are all the {noformat}! * * {noformat} in the code? Delete them.
Edit: or maybe your version of SQL Developer is not up-to-date and does not know the new LISTAGG function in 11g?
Published by: BluShadow on 26-Sep-2012 09:41
-
Cannot create Materialized View using the PL/SQL procedure
Hello
I have a question related to the creation of materialized view.
I have a stored procedure that creates the materialized view. When you try to perform this procedure, I get not enough privileges error: ORA-01031.
When I run the content of this procedure as a PL/SQL block anonymous their materialized view is created without any complications.
Can you please advice me on this subject?
It is even possible to create a materialized view in the stored procedure as I found no info on this subject.
Thank you
PetrHi chudapet,
Whenever you make in procedure, you must have direct subsidies and not through a role.
Most likely the grant to create a materialized view is available via a role to your username.
Assign a direct grant to the user:grant create materialized view to scott; {code}
-
Hi all
I am beginner in Oracle.
I have a two-column table that I use to create a view documents/statement once it meets the qualification.
The table has fields. 1 number and 2. Group. If there is more than 3 records found on this table with the same NUMBER and the GROUP he should create this table view.
Thank you
Pramod Devkate
The training is therefore two lines for a ticket and the agent. When the third row is added, create a line in the summary table. Later a fourth line is added to the table of training for this ticket and the agent, but we do not update the line in the summary table. We only touch the summary table when the third row is added to the training table, then it is only updated by the application. Very well
INSERT INTO summary (ticket, agent, total_travel, total_mtts)
Select ticket agent, sum (travel), sum (mtts)
training
where (ticket, agent) not in
(select the ticket agent summary)
Group ticket, agent
having count (*) > 2.
This inserts in the table only notes and agent ID that do not exist already.
-
Creating a view using multiple joins - by reducing the number of output lines
It is difficult to put into words exactly what I want to implement, so I'll just use an example. Let's say I have the following database:
game (id, time, place)
Reader (game_id, name)
Referee (game_id, name)
Foreign keys:
Player (game_id) references game (id)
Referee (game_id) references game (id)
It is a very special match, in which:
A game can have 1 to many players
A game can have from 1 to several arbitrators
I want to create the following view:
Game_overview (Game_id, time, player, referee)
It's easy to create this view with the following output:
Game1, 15:00, player1, Referee1
Game1, 15:00, player1, Referee2
Game1, 15:00, player2, Referee1
Game1, 15:00, player2, Referee2
Game1, 15:00, Joueur3, null
08:00, player1, Referee1, GaMe2
GaMe2, 08:00, player1, Referee2
HOWEVER, I want it to look like this:
Game1, 15:00, player1, Referee1
Game1, 15:00, player2, Referee2
Game1, 15:00, Joueur3, null
08:00, player1, Referee1, GaMe2
GaMe2, 08:00, null, Referee2
I think that this should not be TOO difficult to solve, but I can't really get my head around it.Welcome to the forum!
Whenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data. Sinve it's your first post, I'll do it for you:
CREATE TABLE game ( id VARCHAR2 (10) PRIMARY KEY , time VARCHAR2 (10) --, location VARCHAR2 (10) -- No need to include columns that play no role in this problem ); INSERT INTO game (id, time) VALUES ('Game 1', '3PM'); INSERT INTO game (id, time) VALUES ('Game 2', '8AM'); CREATE TABLE player ( game_id VARCHAR2 (10) , name VARCHAR2 (10) ); INSERT INTO player (game_id, name) VALUES ('Game 1', 'Player 1'); INSERT INTO player (game_id, name) VALUES ('Game 1', 'Player 2'); INSERT INTO player (game_id, name) VALUES ('Game 1', 'Player 3'); INSERT INTO player (game_id, name) VALUES ('Game 2', 'Player 1'); CREATE TABLE referee ( game_id VARCHAR2 (10) , name VARCHAR2 (10) ); INSERT INTO referee (game_id, name) VALUES ('Game 1', 'Referee 1'); INSERT INTO referee (game_id, name) VALUES ('Game 1', 'Referee 2'); INSERT INTO referee (game_id, name) VALUES ('Game 2', 'Referee 1'); INSERT INTO referee (game_id, name) VALUES ('Game 2', 'Referee 2');
In this way, people who want to help you can recreate the problem and test their ideas.
In addition, to say what version of Oracle you are using. The following query will work in Oracle 9.1 or more.
What you asked is what I call a Query, fixed-price , and this is a way to do it:
WITH player_plus AS ( SELECT game_id , name , ROW_NUMBER () OVER ( PARTITION BY game_id ORDER BY name ) AS r_num FROM player ) , referee_plus AS ( SELECT game_id , name , ROW_NUMBER () OVER ( PARTITION BY game_id ORDER BY name ) AS r_num FROM referee ) SELECT g.id , g.time , p.name AS player_name , r.name AS referee_name FROM player_plus p FULL OUTER JOIN referee_plus r ON p.game_id = r.game_id AND p.r_num = r.r_num JOIN game g ON g.id = COALESCE (p.game_id, r.game_id) ORDER BY g.id , COALESCE (p.r_num, r.r_num) ;
Output:
ID TIME PLAYER_NAM REFEREE_NA ---------- ---------- ---------- ---------- Game 1 3PM Player 1 Referee 1 Game 1 3PM Player 2 Referee 2 Game 1 3PM Player 3 Game 2 8AM Player 1 Referee 1 Game 2 8AM Referee 2
I see that you have more arbitrators than players in a game. If such was not the case, then you might make it a bit more efficient using a LEFT OUTER JOIN between p and r, rather than a FULL OUTER JOIN, and you can also use only the columns of p where I use COALESCE.
Published by: Frank Kulash, March 9, 2012 18:15
Fixed spelling -
from today, I started reecieving an ORA-00600 on my Oracle 10 g 2
Any idea?
/U01/app/Oracle/admin/DB01/bdump/alert_DB01.log (scanned at Wed Jul 28 04:15:58 CEST 2010)
[ORA-00600: internal error code, arguments: [qsmqSetupTableMetadata-1], [], [], [], [], [], []]
[ORA-00600: internal error code, arguments: [qsmqSetupTableMetadata-1], [], [], [], [], [], []]Check the Metalink for the availability of the fix: 6067792 Patch
Description of bug: Bug 8215361: TABLES of XML ON ALL MVIEW UPDATED FAIL WITH ORA - 600 [QSMQSETUPTABLEMETADATA-1] -
create a relational view received the error: ORA-19276: XPST0005 - XPath step Brown
Hi expert,
I'm using Oracle XML DB 11.2.0.1.0.
I'm schema successfully registered and generated a DOCUMENT table.
I have succfully inserted 12 at this table .xml files.
SQL > SELECT OBJECT_VALUE FROM document;
OBJECT_VALUE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<? XML version = "1.0" encoding = "UTF-8"? > <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
"< document xmlns =" "urn: hl7 - org:v3" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd" & gt;
< root id = "03d6a2cd-fdda-4fe1-865d-da0db9212f34" / >
< code = '51725-0' codeSystem = "2.16.840.1.113883.6.1" displayName = "REGISTRATION OF ESTABLISHMENTS" / >
< / component >
< / document >
then I tried to create a relational view of create base on inserted one .xml file I got the error:
ERROR at line 3:
ORA-19276: XPST0005 - step XPath specifies an invalid element/attribute name: (text)
someone he knows what wrong?
Thank you very much!
Cow
Published by: cow on February 15, 2011 20:58
Published by: cow on February 21, 2011 06:59Hello
You declare the default namespace of the document:
... XMLTable( XMLNamespaces(default 'urn:hl7-org:v3'), '$p/document' PASSING doc.OBJECT_VALUE as "p" COLUMNS ...
-
Create the database fails with error ORA-01505: Error adding log files
Hi all
hope someone can help out me, I'm creating a database by using a SQL script, the content of the script is:
create the testora database
the user sys identified by oracle
the user identified by oracle's system
LogFile Group 1 ('/ u01/app/oracle/oradata/testora/redo01a.log ',' / u02/app/oracle/oradata/testora/redo01b.log') blocksize 512 re-use, 100 m in size.
Group 2 ('/ u01/app/oracle/oradata/testora/redo02a.log ',' / u02/app/oracle/oradata/testora/redo02b.log') blocksize 512 re-use, 100 m in size.
Group 3 ('/ u01/app/oracle/oradata/testora/redo03a.log ',' / u02/app/oracle/oradata/testora/redo03b.log') blocksize 512 re-use, 100 m in size.
maxLogFiles 5
maxlogmembers 5
MAXDATAFILES 100
US7ASCII character set
AL16UTF16 national character set
Local extended management
DataFile ' / u01/app/oracle/oradata/testora/system01.dbf' re-use of 400 m size
SYSAUX datafile ' / u01/app/oracle/oradata/testora/sysaux01.dbf' re-use of 400 m size
default tablespace users
DataFile ' / u02/app/oracle/oradata/testora/users01.dbf' size 500 m reuse autoextend on maxsize unlimited
default temporary tablespace tempts1
tempfile ' / u01/app/oracle/oradata/testora/temp01.dbf' size 20 m reuse autoextend on maxsize 4g
Undo tablespace undotbs1
DataFile ' / u01/app/oracle/oradata/testora/undotbs01.dbf' size 200 m reuse autoextend on maxsize unlimited
;
It fails in the creation of the database with the following result:
SQL > @/home/oracle/Oracle_Scripts/testora_db_script.sql
create the testora database
*
ERROR on line 1:
ORA-01092: ORACLE instance is complete. Disconnection forced
ORA-01501: CREATE DATABASE failed
ORA-01505: Error adding log files
ORA-01184: logfile group 1 already exists
Process ID: 3486
ID of the session: 1 serial number: 3This is the documentation: http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_5004.htm#i2142335
>
If only the DB_RECOVERY_FILE_DEST initialization parameter is specified, Oracle database then creates a log file member to this place. -
XmlType causes error ORA-21700
Hello
We have a few environments (dev, test, acceptance and production). All running the same version of Oracle: 10.2.0.5.0.
However in some work of converting a string of xmltype, in others it is not.
Offending code:
Any modification of xmlns, xmlns: xsi or xsi: schemaLocation makes it work.select xmltype( '<?xml version="1.0"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> </xliff> ') from dual;
Can anyone suggest what to look for (difference between the databases)?
Thanks in advance
MJ
Edited by: MarcinJ13 2012-04-24 08:20Can anyone suggest what to look for (difference between the databases)?
What is XML DB installed on all databases?
-
Hi all
I'm working on Forms 6i (Version: 6.0.8.11.3)
I have two databases: applications, db1
I created a procedure of db1 and I a binding apps-db1 as dblink1 database.
Name of the procedure is: sample_proc
I created a synonym of "sample_proc" in applications such as this:
create or replace the synonym sample_proc for sample_proc@dblink1;
I'm calling this sample_proc to the constructor of the form. Now, I am facing the below error:
[ORA - 00600 internal error code, arguments: [16203], [], [], []]
Not sure about this error. I would ask someone to help me please on this.Forms 6i (Version: 6.0.8.11.3)
Update! If you want to stay on Forms 6i, at least move to the last set of patch Developer 6i.
What versions of database are involved? Character set which use? Note that you cannot use with Forms 6i AL32UTF8.
-
Error message of nonsense trying to create the view
Hello all,.
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production on Windows 2008R2
I get an error when trying to create a view. The error makes no sense in that didn't evoke any attempt to change a user name or password in the error in production.
I can run the complete select statement very well, I retrieve the results.
If I comment out the line shown as being in error, the problem moves to the line before the tour. 4 lines before the line specified by the error message are similar. The error occurs on the last of the 5 similar lines of code.
If I move all 5 lines above in the code the error moves accordingly.
Function validate_number (near where the error is identified) under certain conditions, it will issue an immediate "alter session set nls_numeric_characters =" execution., "';"
The number of the column identified in the error message is 2 spaces before the validate_number function call.
Here is the syntax for creating the view, the error message is at the bottom.
Figures on the far left indicate the line number. I put 2 blank lines before and after the line of code identified by the error message.
The error points to the 2-seater before the VALIDATE_NUMBER function call on line 350. just before the code sql == > validate_number(Spend_Qty,'')), 0) < ==
Thanks for your time,
Bob
Error in the command line: 350 column: 112CREATE OR REPLACE VIEW REPORT_STAGING_V AS - SELECT - SPEND_STAGING.INPUT_FILE_ID, - SPEND_STAGING.SPEND_ID, - SPEND_STAGING.SPEND_DOC_NUM, - SPEND_STAGING.SPEND_DOC_ITM_NUM, - SPEND_STAGING.SPEND_DOC_YR_NUM, - SPEND_STAGING.ACCT_PYBL_INV_DOC_NUM, - SPEND_STAGING.ACCT_PYBL_INV_FSCL_YR_NUM, - SPEND_STAGING.COMPANY_CODE, - SPEND_STAGING.ACCT_PYBL_INV_LN_ITM_NUM, - SPEND_STAGING.SPEND_DOC_TYPE_CD, - SPEND_STAGING.SPEND_MTHD_TXT, - NVL(SPEND_STAGING.SRC_SYS_CD, '<BLANK>') SRS_SYS_CD, - SPEND_STAGING.SPEND_SAVING_DT, - SPEND_STAGING.SPEND_SAVING_FSCL_WK_NUM, - SPEND_STAGING.SPEND_SAVING_FSCL_MTH_NUM, - SPEND_STAGING.SPEND_SAVING_FSCL_QTR_NUM, - SPEND_STAGING.SPEND_SAVING_FSCL_YR_NUM, - SPEND_STAGING.MTRL_GRP_CD, - SPEND_STAGING.MTRL_GRP_DESC_TXT, - SPEND_STAGING.MTRL_GRP_LVL_1_TXT, - SPEND_STAGING.MTRL_GRP_LVL_2_TXT, - SPEND_STAGING.MTRL_GRP_LVL_3_TXT, - SPEND_STAGING.MTRL_GRP_LVL_4_TXT, - SPEND_STAGING.MTRL_GRP_LVL_5_TXT, - SPEND_STAGING.MTRL_GRP_LVL_6_TXT, - SPEND_STAGING.MTRL_GRP_LVL_7_TXT, - SPEND_STAGING.MTRL_GRP_LVL_8_TXT, - SPEND_STAGING.GL_ACCT_NUM, - SPEND_STAGING.GL_ACCT_DESC, - SPEND_STAGING.COST_CENTR_CD, - SPEND_STAGING.PRFT_CENTR_CD, - SPEND_STAGING.FUNCNL_AREA_CD, - SPEND_STAGING.PURCH_GRP_CD, - SPEND_STAGING.PURCH_GRP_NAM, - SPEND_STAGING.PURCH_ORG_CD, - SPEND_STAGING.PURCH_ORG_NAM, - SPEND_STAGING.REGION_CODE, - SPEND_STAGING.VNDR_ACCT_ROOT_NUM, - SPEND_STAGING.VNDR_CORP_NAM, - SPEND_STAGING.VNDR_CORP_TICKER_SYMBL_CD, - SPEND_STAGING.BUYPOINT_VNDR_ACCT_NUM, - SPEND_STAGING.BUYPOINT_VNDR_FIRST_NAM, - SPEND_STAGING.PAYPOINT_VNDR_ACCT_NUM, - SPEND_STAGING.PAYPOINT_VNDR_FIRST_NAM, - SPEND_STAGING.SPEND_PYMNT_TERM_CD, - SPEND_STAGING.SPEND_PYMNT_TERM_DESC, - SPEND_STAGING.SPEND_PYMNT_BSLN_DT, -50 SPEND_STAGING.SPEND_PYMNT_CLRNG_DT, - SPEND_STAGING.CONTRACTUAL_PYMNT_TERM_DY_CNT, - SPEND_STAGING.VNDR_MTRL_NUM, - SPEND_STAGING.MTRL_ID_1280, - SPEND_STAGING.MTRL_DESC, - SPEND_STAGING.BAT_NUM, - SPEND_STAGING.SPCL_STOCK_IND, - SPEND_STAGING.INVTY_MVMNT_TYPE_CD, - SPEND_STAGING.GOODS_RCPNT_NAM, - SPEND_STAGING.MFG_PART_NUM, - SPEND_STAGING.PLANT_CD, - SPEND_STAGING.PLANT_DESC, - SPEND_STAGING.STORAGE_LOC_CD, - SPEND_STAGING.STORAGE_LOC_DESC, - SPEND_STAGING.UNLOADING_PT_DESC, - SPEND_STAGING.PO_NUM, - SPEND_STAGING.PO_LN_ITM_NUM, - SPEND_STAGING.PO_LN_ITM_LAST_CHNG_DT, - SPEND_STAGING.PO_DOC_DT, - SPEND_STAGING.PO_TYPE_CD, - SPEND_STAGING.PO_TYPE_DESC, - SPEND_STAGING.PO_UOM_CD, - SPEND_STAGING.PO_PYMNT_TERM_CD, - SPEND_STAGING.ASGND_ACCT_CTGRY_TYPE_CD, - SPEND_STAGING.PO_SHORT_TXT, - SPEND_STAGING.GR_MTRL_DOC_TXT, - SPEND_STAGING.ACCT_PYBL_INV_ITM_TXT, - SPEND_STAGING.PO_RCPT_INV_HST_DOC_POST_DT, - SPEND_STAGING.APPRTN_NUM, - SPEND_STAGING.REQTN_TRK_NUM, - SPEND_STAGING.REQTN_LN_NUM, - SPEND_STAGING.REQTN_LN_ITM_NUM, - SPEND_STAGING.REQTN_PERSN_ACCT_ID, - SPEND_STAGING.NTWRK_NUM, - SPEND_STAGING.NTWRK_CTGRY_CD, - SPEND_STAGING.PROJ_NAM, - SPEND_STAGING.WBS_ELMNT_NAM, - SPEND_STAGING.CPTL_PO_IND, - LU_GAC_STAGING.TIER_SUPPLIER, - CASE - WHEN SPEND_STAGING.PRCRMNT_RPTNG_LVL_3_TXT = 'GAC' - AND LU_GAC_STAGING.PO_SHORT_TXT = SPEND_STAGING.PO_SHORT_TXT - AND SPEND_STAGING.SRC_SPLR_NAM IS NULL - THEN LU_GAC_STAGING.TIER_SUPPLIER - ELSE SRC_SPLR_NAM - END SRC_SPLR_NAM, - SPEND_STAGING.TAX_CD, - SPEND_STAGING.TAX_CD_DESC, - SPEND_STAGING.TAX_JURISDICTION_TXT, - SPEND_STAGING.MTRL_DOC_PRCS_UOM_QTY, -100 SPEND_STAGING.MTRL_DOC_UNIT_OF_ENTRY_QTY, - SPEND_STAGING.PO_LN_ITM_QTY, - SPEND_STAGING.PO_LN_ITM_NET_PRC_UNIT_QTY, - SPEND_STAGING.PO_LN_ITM_NET_PRC_USD_AMT, - SPEND_STAGING.PO_LN_ITM_NET_PRC_DC_AMT, - SPEND_STAGING.PO_LN_ITM_NET_PRC_BDGT_USD_AMT, - SPEND_STAGING.PO_LN_ITM_TOT_USD_AMT, - SPEND_STAGING.SPEND_USD_AMT, - SPEND_STAGING.SPEND_DOC_CURNCY_AMT, - SPEND_STAGING.SPEND_LOCAL_CURNCY_AMT, - SPEND_STAGING.SPEND_BDGT_USD_AMT, - SPEND_STAGING.SPEND_QTY, - SPEND_STAGING.SPEND_QTY_UOM_CD, - SPEND_STAGING.SPEND_UNIT_OF_ENTRY_QTY, - SPEND_STAGING.SPEND_UNIT_OF_ENTRY_UOM_CD, - SPEND_STAGING.SPEND_DC_FX_MTH_CNVRSN_FCT_VAL, - SPEND_STAGING.SPEND_DC_FX_BDG_CNVRSN_FCT_VAL, - SPEND_STAGING.CMPNY_LOCAL_CURNCY_CD, - SPEND_STAGING.DOC_CURNCY_CD, - SPEND_STAGING.TRANSTN_TYPE_CD, - SPEND_STAGING.ACCT_ASGNMT_SEQ_NUM, - SPEND_STAGING.GLPCA_LN_ITM_REC_NUM, - SPEND_STAGING.PCA_REF_DOC_NUM, - SPEND_STAGING.CO_DOC_NUM, - SPEND_STAGING.CO_FSCL_YR_NUM, - SPEND_STAGING.CO_LN_ITM_NUM, - SPEND_STAGING.VNDR_REF_DOC_NUM, - SPEND_STAGING.SAVING_MTHD_TXT, - SPEND_STAGING.SAVING_CMNT_TXT, - SPEND_STAGING.SAVING_COND_NUM, - SPEND_STAGING.SAVING_COND_ITM_NUM, - SPEND_STAGING.SAVING_COND_TYPE_CD, - SPEND_STAGING.SAVING_COND_TYPE_DESC, - SPEND_STAGING.SAVING_COND_CURNCY_CD, - SPEND_STAGING.SAVING_COND_PRC_UNIT_UOM_CD, - SPEND_STAGING.SAVING_COND_PRC_UNIT_QTY, - SPEND_STAGING.SAVING_COND_RTE_USD_AMT, - SPEND_STAGING.SAVING_COND_CURNCY_CNVRSN_VAL, - SPEND_STAGING.SAVING_COND_CURNCY_BDGT_CNVRSN, - SPEND_STAGING.PO_TRANSTN_COND_DC_AMT, - SPEND_STAGING.PO_TRANSTN_COND_USD_AMT, - SPEND_STAGING.SAVING_RTE_PER_USD_AMT, - SPEND_STAGING.SAVING_PER_USD_AMT, - SPEND_STAGING.SAVING_PER_BDGT_USD_AMT, - SPEND_STAGING.AVOIDANCE_USD_AMT, - SPEND_STAGING.AVOIDANCE_BDGT_USD_AMT, - SPEND_STAGING.SAVING_USD_AMT, - SPEND_STAGING.SAVING_BDGT_USD_AMT, - SPEND_STAGING.NO_FX_SAVING_USD_AMT, - SPEND_STAGING.NO_FX_AVOIDANCE_USD_AMT, -150 SPEND_STAGING.TOT_REDUCTN_USD_AMT, - SPEND_STAGING.TOT_REDUCTN_BDGT_USD_AMT, - SPEND_STAGING.TOT_NO_FX_REDUCTN_USD_AMT, - SPEND_STAGING.PAYMENTNET_TRANSTN_NUM, - SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM, - SPEND_STAGING.ROW_CRTE_GMT_DTTM, - SPEND_STAGING.ROW_MODIFY_GMT_DTTM, - SPEND_STAGING.ROW_CRTE_MST_DTTM, - SPEND_STAGING.ROW_MODIFY_MST_DTTM, - SPEND_STAGING.PRCRMNT_DIRECTOR_NAM, - SPEND_STAGING.PRCRMNT_PLANT_DSGNTN, - SPEND_STAGING.PRCRMNT_RPTNG_LVL_1_TXT, - SPEND_STAGING.PRCRMNT_RPTNG_LVL_2_TXT, - SPEND_STAGING.PRCRMNT_RPTNG_LVL_3_TXT, - SPEND_STAGING.SPEND_CAT_ID, - SPEND_STAGING.SPEND_RULE_ID, - SPEND_STAGING.TRANSACTION_DATE, - SPEND_STAGING.SPEND_AMOUNT, - SPEND_STAGING.ITEM_DESCRIPTION, - SPEND_STAGING.SUPPLIER_ID, - CASE - WHEN SPEND_STAGING.SOURCE ='SPEND' - THEN 'Spend and Savings' - WHEN SPEND_STAGING.SOURCE ='TRAVEL' - THEN 'Travel' - ELSE NULL - END SOURCE, - SPEND_STAGING.SUPPLIER_NUMBER, - SPEND_STAGING.TRAVEL_PERSNO, - SPEND_STAGING.TRIP, - SPEND_STAGING.TRAVEL_DOC, - SPEND_STAGING.TRAVEL_EXPTY, - SPEND_STAGING.TRAVEL_EXP_TYPE_DESC, - SPEND_STAGING.TRAVLE_CREDIT_CARD_TRAN_DESC TRAVEL_CREDIT_CARD_TRAN_DESC, - SPEND_STAGING.COUNTRY_CODE, - SPEND_STAGING.TRAVEL_INFO, - SPEND_STAGING.TRAVEL_ID, - SPEND_STAGING.TRAVEL_DOCUMENT_NUMBER, - SPEND_STAGING.TRAVEL_LAST_NAME_FIRST_NAME, - SPEND_STAGING.TRAVEL_TRIP_REASON, - SPEND_STAGING.TRAVEL_TRIP_STATUS, - SPEND_STAGING.TRAVEL_RATE, - SPEND_STAGING.FINANCE_ORG, - SPEND_STAGING.ASSOCIATED_MG_CODE, - SPEND_STAGING.COUNTRY_DESC, - SPEND_STAGING.TRAVEL_ID_DESC_BANKCARD, - SPEND_STAGING.COMPANY_CODE_DESC, - SPEND_STAGING.COST_CENTER_DESC, - 'Q'||TO_CHAR(SPEND_STAGING.TRANSACTION_DATE,'Q') QUARTERNAME, - TO_CHAR(SPEND_STAGING.TRANSACTION_DATE,'YYYY') YEARNAME, -200 CASE - WHEN SPEND_STAGING.SRC_SYS_CD = 'P-CARD' - THEN SS2.CLEANSED_PARENT_NAME - ELSE SS1.CLEANSED_PARENT_NAME - END CLEANSED_PARENT_NAME, - CASE - WHEN SPEND_STAGING.SRC_SYS_CD = 'P-CARD' - THEN SS2.cleansed_name_1 - ELSE SS1.cleansed_name_1 - END CLEANSED_NAME1, - CASE - WHEN SPEND_STAGING.MTRL_ID_1280 IS NULL - AND SPEND_STAGING.VNDR_MTRL_NUM IS NOT NULL - THEN SPEND_STAGING.VNDR_MTRL_NUM - WHEN SPEND_STAGING.MTRL_ID_1280 IS NULL - AND SPEND_STAGING.VNDR_MTRL_NUM IS NULL - AND SPEND_STAGING.MFG_PART_NUM IS NOT NULL - THEN SPEND_STAGING.MFG_PART_NUM - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZAR' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280||'-MIX' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZAR' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-MIX' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZSA' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ASMBLY' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZSA' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ASMBLY' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZST' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-TEST' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZST' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-TEST' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZBI' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL -250 THEN SPEND_STAGING.MTRL_ID_1280 - ||'-BURN-IN' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZBI' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-BURN-IN' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZRJ' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-REJECT' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZRJ' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-REJECT' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZPR' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-PROBE' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZPR' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-PROBE' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEM' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEM' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEU' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL -300 THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENGWFR' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEU' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENGWFR' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZSF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-WFR' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZSF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-WFR' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-POTypeCode' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-POTypeCode' - ELSE SPEND_STAGING.MTRL_ID_1280 - END ReportingPartNum, - LU_PCARD_STAGING.COST_CENTR_CD PCARD_COST_CENTR_CD, - LU_PCARD_STAGING.CTY_NAM PCARD_CTY_NAM, - LU_PCARD_STAGING.DISABLE_LINE PCARD_DISABLE_LINE, - LU_PCARD_STAGING.DISABLED_OWNED_BIZ_FLG PCARD_DISABLED_OWNED_BIZ_FLG, - LU_PCARD_STAGING.DIVERSITY_VNDR_FLG PCARD_DIVERSITY_VNDR_FLG, - LU_PCARD_STAGING.FIELD PCARD_FIELD, - LU_PCARD_STAGING.GL_ACCT_NUM PCARD_GL_ACCT_NUM, - LU_PCARD_STAGING.HUB_ZONE_SMALL_BIZ_CONCERN_FLG PCARD_HUB_ZONE, - LU_PCARD_STAGING.MINORITY_OWNED_BIZ_FLG PCARD_MINORITY_OWNED_BIZ_FLG, - NVL(validate_number(Po_Ln_Itm_Net_Prc_Usd_Amt,'')/DECODE(validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,''),0,1,validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,'')),0) po_unit_price_per_1_usd, - NVL(validate_number(Po_Ln_Itm_Net_Prc_Dc_Amt,'') /DECODE(validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,''),0,1,validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,'')),0) po_unit_price_per_1_doc_cur, - NVL(validate_number(Spend_Bdgt_Usd_Amt,'') /DECODE(validate_number(Spend_Qty,''),0,1, validate_number(Spend_Qty,'')),0) spend_up_per_1_usd_budgt_rate, - NVL(validate_number(Spend_Usd_Amt,'') /DECODE(validate_number(Spend_Qty,''),0,1, validate_number(Spend_Qty,'')),0) spend_up_per_1_usd_mon_rate, -350 NVL(validate_number(Spend_Doc_Curncy_Amt,'') /DECODE(validate_number(Spend_Qty,''),0,1, validate_number(Spend_Qty,'')),0) Spend_UP_per_1_Doc_Curr, - - TO_CHAR(TRANSACTION_DATE,'MM-YYYY') MONTH_YEAR, - LU_PCARD_STAGING.MTRL_GRP_CD PCARD_MTRL_GRP_CD, - LU_PCARD_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM PCARD_PAY_TRANSTN_LN_ITM_NUM, - LU_PCARD_STAGING.PAYMENTNET_TRANSTN_NUM PCARD_PAY_TRANSTN_NUM, - LU_PCARD_STAGING.PAYMENTNET_TRANSTN_POST_DT PCARD_PAY_TRANSTN_POST_DT, - LU_PCARD_STAGING.PCARD_INV_AMT PCARD_INV_AMT, - LU_PCARD_STAGING.PCARD_INV_CURNCY_CD PCARD_INV_CURNCY_CD, - LU_PCARD_STAGING.PCARD_INV_DT PCARD_INV_DT, - LU_PCARD_STAGING.PCARD_INV_LN_ITM_AMT PCARD_INV_LN_ITM_AMT, - LU_PCARD_STAGING.PCARD_INV_LN_ITM_TAX_AMT PCARD_INV_LN_ITM_TAX_AMT, - LU_PCARD_STAGING.PCARD_INV_LN_ITM_TAX_CD PCARD_INV_LN_ITM_TAX_CD, - LU_PCARD_STAGING.PCARD_INV_REF_NUM PCARD_INV_REF_NUM, - LU_PCARD_STAGING.PCARD_INV_TAX_AMT PCARD_INV_TAX_AMT, - LU_PCARD_STAGING.PCARD_MERCHANT_NAM PCARD_MERCHANT_NAM, - LU_PCARD_STAGING.PCARD_OWNR_ID PCARD_OWNR_ID, - LU_PCARD_STAGING.PCARD_SHORT_TXT PCARD_SHORT_TXT, - LU_PCARD_STAGING.PCARD_SRC_FILE_NAM PCARD_SRC_FILE_NAM, - LU_PCARD_STAGING.PLANT_CD PCARD_PLANT_CD, - LU_PCARD_STAGING.PURCH_GRP_CD PCARD_PURCH_GRP_CD, - LU_PCARD_STAGING.RCPNT_ID PCARD_RCPNT_ID, - LU_PCARD_STAGING.REQTN_CRTE_BY_ID PCARD_REQTN_CRTE_BY_ID, - LU_PCARD_STAGING.REQTN_LN_ITM_NUM PCARD_REQTN_LN_ITM_NUM, - LU_PCARD_STAGING.REQTN_NUM PCARD_REQTN_NUM, - LU_PCARD_STAGING.SERV_DISABLE_VETERAN_BIZ_FLG PCARD_SERV_DIS_VET_BIZ_FLG, - LU_PCARD_STAGING.STATE_CD PCARD_STATE_CD, - LU_PCARD_STAGING.STATE_CD, - LU_PCARD_STAGING.VETERAN_OWNED_BIZ_FLG PCARD_VETERAN_OWNED_BIZ_FLG, - LU_PCARD_STAGING.VNDR_ACCT_NUM PCARD_VNDR_ACCT_NUM, - LU_PCARD_STAGING.WOMAN_OWNED_BIZ_FLG PCARD_WOMAN_OWNED_BIZ_FLG2, - DENSE_RANK() OVER (ORDER BY NVL(TO_CHAR(TRANSACTION_DATE, 'YYYYMM'),'190010') DESC) AS DATE_RANK, - LU_PRICE_BY_UNIT_STAGING.MTRL_GRP PBU_MTRL_GRP, - LU_PRICE_BY_UNIT_STAGING.MTRL_GRP_DES PBU_MTRL_GRP_DES, - LU_PRICE_BY_UNIT_STAGING.MTRL_ID PBU_MTRL_ID, - LU_PRICE_BY_UNIT_STAGING.PLANT PBU_PLANT, - LU_PRICE_BY_UNIT_STAGING.PLANT_DESC PBU_PLANT_DESC, - LU_PRICE_BY_UNIT_STAGING.SUPPLIER PBU_SUPPLIER, - LU_PRICE_BY_UNIT_STAGING.DESCRIPTION PBU_DESCRIPTION, - LU_PRICE_BY_UNIT_STAGING.UOM PBU_UOM, - LU_PRICE_BY_UNIT_STAGING.CONTENT_VOLUME PBU_CONTENT_VOLUME, - LU_PRICE_BY_UNIT_STAGING.UOM_CONTENT_VOLUME PBU_UOM_CONTENT_VOLUME, - LU_PRICE_BY_UNIT_STAGING.CONTENT_WEIGHT PBU_CONTENT_WEIGHT, - LU_PRICE_BY_UNIT_STAGING.UOM_CONTENT_WT PBU_UOM_CONTENT_WT, - LU_PRICE_BY_UNIT_STAGING.PRICE__PACKAGE PBU_PRICE__PACKAGE, - LU_PRICE_BY_UNIT_STAGING.PRICE_PER_UOM_WT PBU_PRICE_PER_UOM_WT, - LU_PRICE_BY_UNIT_STAGING.PRICE_PER_UOM_VOL PBU_PRICE_PER_UOM_VOL, - LU_PRICE_BY_UNIT_STAGING.COMMON_NAME PBU_COMMON_NAME, - LU_GAC_UOM_REFERENCE_STAGING.LU_GAC_UOM_REFERENCE_ID, - LU_GAC_UOM_REFERENCE_STAGING.FSL_PART_NUMBER, - LU_GAC_UOM_REFERENCE_STAGING.SUPPLIER LU_GAC_SUPPLIER, -400 LU_GAC_UOM_REFERENCE_STAGING.DESCRIPTION LU_GAC_DESCRIPTION, - LU_GAC_UOM_REFERENCE_STAGING.GAC_MAT_SUBGROUP LU_GAC_MAT_SUBGROUP , - LU_GAC_UOM_REFERENCE_STAGING.ACTUAL_FILL LU_GAC_ACTUAL_FILL, - LU_GAC_UOM_REFERENCE_STAGING.COMMON__UOM LU_GAC_COMMON_UOM, - LU_GAC_UOM_REFERENCE_STAGING.PACKAGE LU_GAC_PACKAGE - FROM - SPEND_STAGING, - SUPPLIER_STAGING SS1, - SUPPLIER_STAGING SS2, - LU_GAC_STAGING, - lu_card_code_staging, - LU_PCARD_STAGING, - LU_PRICE_BY_UNIT_STAGING, - LU_GAC_UOM_REFERENCE_STAGING - WHERE SS1.SUPPLIER_ID(+) = SPEND_STAGING.SUPPLIER_ID - AND SS2.PCARD_INV_REF_NUM(+) = SPEND_STAGING.PCARD_INV_REF_NUM - AND SS2.PAYMENTNET_TRANSTN_NUM(+) = SPEND_STAGING.PAYMENTNET_TRANSTN_NUM - AND SS2.PAYMENTNET_TRANSTN_LN_ITM_NUM(+) = - SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM - AND lu_card_code_staging.card_code(+) = spend_staging.travel_id - AND lu_gac_staging.po_short_txt(+) = spend_staging.po_short_txt - AND LU_PCARD_STAGING.PCARD_INV_REF_NUM(+) = SPEND_STAGING.PCARD_INV_REF_NUM - AND LU_PCARD_STAGING.PAYMENTNET_TRANSTN_NUM(+) = - SPEND_STAGING.PAYMENTNET_TRANSTN_NUM - AND LU_PCARD_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM(+) = - SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM - AND LU_PRICE_BY_UNIT_STAGING.MTRL_ID(+) = SPEND_STAGING.MTRL_ID_1280 - AND LU_PRICE_BY_UNIT_STAGING.PLANT(+) = SPEND_STAGING.PLANT_CD - AND lu_gac_uom_REFERENCE_STAGING.fsl_part_number(+) = -431 SPEND_STAGING.MTRL_ID_1280;
Error report:
SQL error: ORA-01031: insufficient privileges
01031 00000 - "insufficient privileges".
* Cause: An attempt was made to change the user name or password
without the privilege appropriate. This error also occurs if
trying to install a database without the need for employment
access privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
If the user has been granted the privilege necessary for a higher label
that the connection is active.
* Action: Ask the database to perform the operation or grant administrator
the required privileges.
For users Trusted Oracle get this error, well that granted the
the privilege that is suitable for the top label, ask the database
administrator to grant the privilege to the appropriate label.
Published by: Snyds on May 24, 2012 07:46The text associated with the error number is certainly misleading.
It simply means that you have not had the privilege to do something.
Is validate_number in the same pattern when you create the view? If not, what
privileges that you have about this feature and how is it given? -
Hello
When executing this query:
I get the following error:SELECT q.data data1, CURSOR(SELECT q.data FROM dual) data2 FROM (SELECT SYSDATE data FROM dual) q;
It is tested with three versions of DB 11 GR 2ORA-00600: internal error code, arguments: [7005], [13], [], [], [], [], []
-11.2.0.1.0 oracle Database 11 g Enterprise Edition Release @ MS Windows XP SP3
-11.2.0.2.0 oracle Database 11 g Standard Edition One Release @ MS Windows Server 2008
-Oracle Database 11 g Standard Edition version 11.2.0.3.0 @ MS Windows Server 2008 R2 64-bit
When tested with release 9iR2 (Oracle9i Enterprise Edition Release 9.2.0.6.0 @ MS Windows Server 2003), it produces a different error ORA-00600:
Is someone can confirm that this is a bug in the Oracle and perhaps suggest a work around?ORA-00600: internal error code, arguments: [kokbnp2], [600], [], [], [], [], [], []
I searched through the "My Oracle Support" but can't find anything that would explain this behavior.
Notes:
-What SYSDATE is replaced by a number or a string everything works as expected
-This simple example was derived from a complex query by narrowing down to the cause of the error. If you want to suggest a solution, please note: I must have a CURSOR in a SELECT clause, and I need to have an inline complex see the scope of the query to the
With respect,
Goran Matisa,.
CroatiaHello
I used:
SELECT q.data data1, CURSOR(SELECT q.data FROM dual) data2 FROM (SELECT cast(SYSDATE as date) data FROM dual) q;
Which will return no error.
Kind regards
Peter
-
Hello
Operating system: Solaris 10 (x 86)
DBMS:Oracle 10.2.0.1
My system was crushed due to the power outage at the wide, when I restart my system and tried to start the database. The database come in nomount stage but when tried to start, it generates following error
[ORA-00600 a internal error, arguments: [kccpb_sanity_check_2], [70790], [70798], [0x0], [], [],]
I find metalink is caused by corruption controlfile. My backup controlfile is corrupted and now I have to manually recreate my controlfile. Kindly guide me how can recreate my file to control manually like I can go to stage nomount.
Kind regards
TerranovaHello..
Refer to [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5003.htm#SQLRF01203]
Re: How to re-create controlfile
HTH
Anand
Maybe you are looking for
-
release the 16.01 I must get out of this update
I just saw on news updates of 16.01 arrested due to a security problem. Despite this declaration of Mozzilla, my system is automatically updated at 16.01. the flaw has been corrected, or should I revert to a previous version. If yes how can I do that
-
Want 7640: Can my scan want x 7640 HP for Evernote
I'm trying to find how to use my desire 7640 officejet all-in-one to scan directly into Evernote. Should what software I use?
-
Satellite U400-11U: no sound with HDMI output
Hi all I am the proud owner of a model of satellite U400-11U PSU40E running with Windows Vista.Recently, I tried to view a video on my TV. To do this, I used the HDMI output of the laptop connected to the TV. I took care to connect the cable to the T
-
How Labview grab handles in the array?
I have an array of large 2by2, and I do a lot of travel such as the removal of the top row and add the data to rank the lowest. The size of the array never changes, but I manipulate the data a bit. My question is: how Labview manages this manipulatio
-
I can't print from internet on my printer
I can't print from internet on my printer. It primts OK my created the documents, photos, etc.