Validation of a column in a query SQL-tabular form (updated report)
HelloI have a tabular form on a table of type SQL Query (editable report). Users can modify/add lines to the table through the form. I would like to have some sort of validation on each column of the report form. Is there a way I can do it by their SUMMIT. Please note that I did not manually create this form... just use the tools in the APEX. Thank you.
Sihem
In the same way.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------
Tags: Database
Similar Questions
-
Tabular form fill a query other tables
I'm sure this is possible, but we are especially new relations master / detail in the Apex and tabular forms (updated reports).
We are trying to fill a tabular presentation (updated report) with values from a query. The user is simply going to click Yes/No by line and then you insert the lines into a table...
I tried following the logic of the creation of a relationship of master / detail and noticed the AddRow Button and the process to add lines in the form of tables. I also noticed that several process of MRUUpdate which to update fire lines existing... I guess I must first add the number of rows that the query that fills the table form pulls inward and then update the lines after that. I tiried do a count and store the value in a text field/Hidden Field Page, then in the AddRows to the MRU I put the domain name with & and. round her. This does not (he cannot add lines and came with an error ora-6502), I then tried to put a: in front of her and who does not have too.
Any suggestions on how to proceed.
Thank you in advance,
-BrianHello
OK - now you have to decide if you want to allow users to update other values or not. If you don't want to do them this, you can use APEX_ITEM. HIDDEN (3, COLUMNNAME) | COLUMNNAME COLUMNNAME - it concatenates an item hidden in front of the real version of Standard report of the element (substituting 3 and COLUMNNAME values you need). The HIDDEN element will be presented on the page, but the user cannot see it or change it.
Andy
-
Validation of a region defined as a QUERY SQL type (updated report)
Hello
I am trying to perform validation on a region defined as type of QUERY SQL (editable report). The report has two columns.
One of the columns is a Select list and I want to make sure that the user can select the same value twice
in the report. For example, if the selection list has 5 values A, B, C, D, E, I don't want a user to be able to select
B twice in the report. Will it use javascript to perform validation? If Yes, could someone provide some guidance on
where to embed the javascript? Are there other alternatives than javascript? I create an element that came from a sql query
counts the number of lines where the value of the column is the same. I then used the item in my validation logic. The problem with this logic
is that a user can enter the same value and it is not until the 3rd attempt to select the same value that the validation works using the number of lines which is why I think that I need to somehow capture the value of the selection list when a user selects and then compare it to what is already in the database column Select.
I hope that my question and explanations are clear.
Thanks in advance for your help,
MichaelHello
This can be managed using javascript or a validation of the page. Here is an example of use of javascript: [http://htmldb.oracle.com/pls/otn/f?p=267:7]
To do this, I have:
1 - a model of button which does not send the page but just runs javascript. The model will depend on your theme, but should include:
<a href="#BUTTON_ATTRIBUTES#">#LABEL#</a>
If #BUTTON_ATTRIBUTES # appears on the template, delete it as we need it only once. You must create a new button model based on a copy of your existing across models, shared components. Normally, he would show href = "" #LINK # "-we do not want that this would become doSubmit('buttonname')." If your model does not use tags for buttons, you might need to create one from scratch.
2 - I have updated the button on my page to use this template and then assign the setting button attributes:
javascript:check();
3. in the header of the HTML page, I added:
<script type="text/javascript"> function check() { var e = 0; var f = document.getElementsByName("f02"); var k1; var k2; var v1; var v2; if (f) { for (k1 = 0; k1 < (f.length - 1); k1++) { v1 = f[k1].value; for (k2 = (k1 + 1); k2 < f.length; k2++) { v2 = f[k2].value; if (v1 == v2) { e = 1; } } } } if (e > 0) { alert("Duplicates found!"); } else { doSubmit("SUBMIT"); } } </script>
In this example, SUBMIT is the name of the button and "f02" is the name attribute of the select list items that we want to check - change these needs by your page.
Now, when the Submit button is clicked, instead of directly submit the page, the javascript function is called. This function loops through each selection list and gets its value. Then, he compared it to the remaining items. If there is a match, the e flag is set to 1. After all the items have been verified, if e is not 0, then a message appears. Otherwise, the page is sent.
Andy
-
fix column names in a sql Query
Hi people,
I am upgrading an application and there are database columns that have major changes that could affect the production of reports. I want to the investigation from v$ SQL for a few days to see if these columns are affected. That is the problem.
Watching a SQL query to determine which columns are used is not nearly as easy as it sounds. Are there functions oracle or 3rd party tools that allows to display the columns used by a sql query? (this becomes extremely difficult when subqueries are involved)
For example.
Select
name, b.dep_id, employe_id
EMP a
Inner join v_department b on a.dep_id = b.dep_id
Used columns:+.
EMP. Name+.
Departments.dep_id (under the view).
EMP.employee_id+.
EMP.dep_id (from the join)+.If you are on > 10g, you can use dbms_xplan with option 'all '.
She has "projection column information" which is exactly what you want.UKJA@ukja102> set serveroutput on UKJA@ukja102> UKJA@ukja102> drop table t1 purge; Table dropped. Elapsed: 00:00:00.03 UKJA@ukja102> create table t1(c1 int, c2 int); Table created. Elapsed: 00:00:00.03 UKJA@ukja102> UKJA@ukja102> explain plan for 2 select 3 t1.c1, t1.c2, v.cnt 4 from t1, 5 (select /*+ no_merge */ c1, count(*) as cnt 6 from t1 7 group by c1) v 8 where 9 t1.c1 = v.c1 10 ; Explained. Elapsed: 00:00:00.01 UKJA@ukja102> UKJA@ukja102> @plan_all UKJA@ukja102> select * from table(dbms_xplan.display(null,null,'all')) 2 / PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- Plan hash value: 536125944 ----------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | ----------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | 52 | 6 (34)| 00:00:01 | |* 1 | HASH JOIN | | 1 | 52 | 6 (34)| 00:00:01 | | 2 | TABLE ACCESS FULL | T1 | 1 | 26 | 2 (0)| 00:00:01 | | 3 | VIEW | | 1 | 26 | 3 (34)| 00:00:01 | | 4 | HASH GROUP BY | | 1 | 13 | 3 (34)| 00:00:01 | | 5 | TABLE ACCESS FULL| T1 | 1 | 13 | 2 (0)| 00:00:01 | ----------------------------------------------------------------------------- Query Block Name / Object Alias (identified by operation id): ------------------------------------------------------------- 1 - SEL$1 2 - SEL$1 / T1@SEL$1 3 - SEL$2 / V@SEL$1 4 - SEL$2 5 - SEL$2 / T1@SEL$2 Predicate Information (identified by operation id): --------------------------------------------------- 1 - access("T1"."C1"="V"."C1") Column Projection Information (identified by operation id): ----------------------------------------------------------- 1 - (#keys=1) "T1"."C1"[NUMBER,22], "T1"."C2"[NUMBER,22], "V"."CNT"[NUMBER,22] 2 - "T1"."C1"[NUMBER,22], "T1"."C2"[NUMBER,22] 3 - "V"."C1"[NUMBER,22], "V"."CNT"[NUMBER,22] 4 - (#keys=1) "C1"[NUMBER,22], COUNT(*)[22] 5 - "C1"[NUMBER,22] Note ----- - dynamic sampling used for this statement 40 rows selected. Elapsed: 00:00:00.01 UKJA@ukja102> UKJA@ukja102> UKJA@ukja102> @end UKJA@ukja102> set echo off
Dion Cho
-
Validation on the column to sum as a column <>100%
Dear friends
I have created table to use in query
Select
"ROWID",.
"REQUEST_ID",.
"CALL_FROM_DATE,"
"CALL_TO_DATE,"
"TOTEL_CALL,"
"FILTER_PER,"
"USER_CNT_SAMPEL_PER,"
'NET_SAMPEL_COLLECT '.
from 'EBA_SB_EXT_SURV_REQ_CR_02' where REQUEST_ID =: P325_REQUEST_ID
I must apply the validation on USER_CNT_SAMPEL_PER column, I need if the sum of USER_CNT_SAMPEL_PER is not equal to 100, it must be the msg of error display "percentage of the sample of the user should be 100%.
I used the Expression PLSQL
SUM(:USER_CNT_SAMPEL_PER) = 100
and the msg of error SUM OF USER_CNT_SAMPEL_PER NOT EQUAL to 100.
But it does not work.
How can I do this
Thank you
create before the process validation and Informatics
declare
l_tot number: = 0;
Start
because me in 1.apex_application.g_f05.count
loop
l_tot: = l_tot + nvl (to_number (apex_application.g_f05 (i)), 0);
end loop;
: P324_CNT: = l_tot;
end;
and create process\
324_cnt = 100
sum of the user sample shoulde be 100.
-
What line has been activated in a (updated report) SQL query?
I have an app with a report based on a query SQL (PL/SQL function...) defined on the Global Page.
I want on the pages where the report is used, click on a particular column (TCKT_ID), and then pass the values of this line to another page for treatment.
I would like to know things:
(1) how to determine which line clicked? The column is TCKT_ID and it is used as a link to another page. The SQLis a significant (for me!) join the tables.
(2) how to see the values of other columns in the same row? Because I format with 'div', columns are named - no "f02", of "f03", etc.
(3) how to pass multiple values (ENAME, JOB, MGR, SAL, COMM) to the target page? You might ask: why not just re - query data using a unique key. Great idea, but the unique key is four columns if I still need a way to pass these four values for this unique key.
I built a 'pretty close' example of the situation in the present case:
WS APEX_EXAMPLES_01
Demo / demo
Application: Line Info 10782 - Page 0 has the report. Page 1 poster with a link (in red) on page 2.
I think I can fill most of what I need if someone can just show me how to make, say, the ENAME of the line clicked on page 1, so I can use it to filter the query on page 2 for just this line clicked on page 1.
From < tt > < /tt >, I tried show the actual line view - Source of the actual report than just let me but it comes out like this
M FMM_O_BD_DAILY. CTL (D046 ftp) CMM_O_BD_DAILY.sh (ftp D046) 17:15
10-13 JUNE AT 17:00:5210-13 JUNE AT 17:00:5317:15
10-13 JUNE AT 17:00:5210-13 JUNE AT 17:00:5317:00
10-13 JUNE AT 17:00:5910-13 JUNE AT 17:01THEREARS003_TEST NEXT BUSINESS DAY
I wonder if I'm not understanding something. This seems to be a very simple thing to do without 'tricks '.
Take a look, I modified the column LINKING_NUMBER of the report of p0.
Basically, you specify only the fields you want to fill and their assignments. I added 4 fields of destination on p2 to receive assignments. Then you can do whatever you want with them as editing a report, etc...
The only trick here is to get more than 3 elements in the URL, you must change your Page link type in this URL request. You can specify lost elements in this way.
Thank you
-Jorge
-
Create a simple query (SQL)
Hi experts,
I have a table with data as follows:
Database version: 10.2.0.4
Table name: TRANSACTION_HIST_TAB
and I want to create a single query (SQL) which can get data grouped by LOT_NO and only the first transaction by LOT_NOTRANS_ID LOT_NO PART_NO QTY TRANSACTION LOCATION_NO ROWVERSION --------- ------- -------- ---- ----------------- ------------ ---------------------- T00000X1 L001 ABC 10 CHANGE LOCATION WRH_1 01/01/13 08:00:00 AM T00000X2 L001 ABC 10 CHANGE LOCATION WRH_2 01/02/13 10:00:00 AM T00000X3 L002 XYZ 20 CHANGE LOCATION WRH_3 01/03/13 11:00:00 AM
Expected results:
Someone has an idea?TRANS_ID LOT_NO PART_NO QTY TRANSACTION LOCATION_NO ROWVERSION --------- ------- -------- ---- ----------------- ------------ ---------------------- T00000X1 L001 ABC 10 CHANGE LOCATION WRH_1 01/01/13 08:00:00 AM T00000X3 L002 XYZ 20 CHANGE LOCATION WRH_3 01/03/13 11:00:00 AM
Kind regards
RobHi, Rob.
Here's one way:
WITH got_r_num AS ( SELECT t.* -- or list columns you want , ROW_NUMBER () OVER ( PARTITION BY lot_no ORDER BY rowversion ) AS r_num FROM transaction_hist_tab t ) SELECT * -- or list all columns except r_num FROM got_r_num WHERE r_num = 1 ;
Depending on your data and your needs, match Sub like Manik suggested, might work. I think that you want to GROUP BY lot_no only, no transid.
I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements), and the results you want from this data.
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 {message identifier: = 9360002} -
query sql delicate... date of the created object.
friends...
I am trying to solve this query sql delicate for some time, but unable to progress when it comes to this day...
Q.
Query dba_objects and list all tables created yesterday ' sysdate - 1' and in another column of the list all the tables created ' sysdate - 7'.
-query below gives me to yesterday, but don't know how to have 'Last_week' column filled... maybe I join?
appreciate your time and effort in looking at this...select owner, object_name, to_char(created, 'MM-DD-YYYY HH24:MI:SS') "Yesterday", to_char(created, 'MM-DD-YYYY HH24:MI:SS') "Last_Week" from dba_objects where object_type = 'TABLE' and created >=trunc(sysdate - 1) and created < trunc(sysdate)
Thank you
Published by: khallas301 on March 19, 2013 09:27
typo edited... Thanks to frankkhallas301 wrote:
Query dba_objects and list all tables created yesterday ' sysdate - 1' and in another column of the list all the tables created ' sysdate - 7'.Well, sysdate - 7 ways months ago, not last week. If this is what you want, then:
select owner, object_name, case when trunc(created) = trunc(sysdate - 1) then to_char(created,'MM-DD-YYYY HH24:MI:SS') end "Yesterday", case when trunc(created) = trunc(sysdate - 7) then to_char(created, 'MM-DD-YYYY HH24:MI:SS') end "Week Ago" from dba_objects where object_type = 'TABLE' and ( trunc(created) = trunc(sysdate - 1) or trunc(created) = trunc(sysdate - 7) ) /
SY.
-
Query SQL Report with condition (multiple settings) at the point of the apex?
Hi all
I have a small problem and cannot find a solution.
I need to create reports based on a query, SQL or I.R. Nothing hard here.
I need to add the WHERE clause dynamically with javascript to an element of the Apex.
Even once is not very difficult. I set the agenda of the Summit, put my query like this "SELECT * FROM MYTAB WHERE COL1 =: P1_SEARCH" then I call the page by setting the P1_SEARCH value. For example, COL1 is rowid. It works very well.
But here's my problem. Consider that P1_SEARCH contains several ROWID, and I don't know the number of these values,
(no I don't create a large number of items and create a query with so much GOLD!), I would sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (: P1_SEARCH) with something like: ROWID1, ROWID2 in P1_SEARCH."
I also tried: 'ROWID1, ROWID2' and 'ROWID1', 'ROWID2 '.
but I can't get anything else than the mistake of filter. It works with a value, but as soon as there are two values or more, it seems that the Apex is unable to read the string.
How can I do it please?
Thanks for your help.
Maxmnoscars wrote:
But here's my problem. Consider that P1_SEARCH contains several ROWID, and I don't know the number of these values,
(no I don't create a large number of items and create a query with so much GOLD!), I would sotheming like "SELECT * FROM MYTAB WHERE ROWID IN (: P1_SEARCH) with something like: ROWID1, ROWID2 in P1_SEARCH."I also tried: 'ROWID1, ROWID2' and 'ROWID1', 'ROWID2 '.
but I can't get anything else than the mistake of filter. It works with a value, but as soon as there are two values or more, it seems that the Apex is unable to read the string.For a standard report, see + {message identifier: = 9609120} +.
For an IR - and improve safety by avoiding the risk of SQL Injection, use a collection containing the values in a column instead of a CSV list:
{code}
SELECT * FROM MYTAB WHERE ROWID IN (SELECT c001 FROM apex_collections WHERE collection_name = "P1_SEARCH")
{code}
(Please close duplicate threads spawned by your original question.) -
If the mobile is valid or not by using the Pl/SQL cursor
Hello
Can someone please email me a cursor query to see if an mobileno is valid or not.
Table name Cc_customer
mobileno domain name
length should be 10 and start by 9, length should be 12 and start with 919Do you mean something like this?
SQL> ed Wrote file afiedt.buf 1 with t as (select '9123456780' as mobile from dual union all 2 select '919123456780' from dual union all 3 select '12345' from dual union all 4 select '1234567890' from dual union all 5 select '123456789012' from dual) 6 -- 7 -- END OF TEST DATA 8 -- 9 select mobile 10 ,case when regexp_like(mobile, '^((91)?9[0-9]{9})$') then 'valid' 11 else 'invalid' 12 end as chk 13* from t SQL> / MOBILE CHK ------------ ------- 9123456780 valid 919123456780 valid 12345 invalid 1234567890 invalid 123456789012 invalid SQL>
-
How to adjust column widths individual classic SQL report
Hello
I use Oracle APEX v4.2 with IE8 browser and basically tries to adjust widths of individual columns in my classic SQL report. Basically, I have three columns I want to spacing, so that the width of the entire region for the report is used, but am not sure how to proceed.
I drilled in individual columns and specified the column widths as the element, but in vain.
Would appreciate help on how to do this for each column and hope that I do not need to change the model of report (if possible).
Thank you.
Tony.
Tony F. says:
I use Oracle APEX v4.2 with IE8 browser and basically tries to adjust widths of individual columns in my classic SQL report. Basically, I have three columns I want to spacing, so that the width of the entire region for the report is used, but am not sure how to proceed.
There is an element of uncertainty in what we suggest as well, because you have not specified the theme and the report of model that is used. This information is required for any question of formatting or the visual layout.
I drilled in individual columns and specified the column widths as the element, but in vain.
Report in some themes templates may be missing in the #COLUMN_WIDTH substitution string # required for use of the declarative column widths, as shown here: Re: width of column in reports
I don't know why it would be missing from a theme of so-called "modern" (perhaps the lack of documentation affects even the Oracle theme designers), but you can add it to the models listed in this thread.
Width of the element applies only to controls on a form in a table.
Would appreciate help on how to do this for each column and hope that I do not need to change the model of report (if possible).
This can be done using selectors CSS attribute (for the themes of quirks mode non-traditional, because you are using a legacy version of IE). Add a style sheet in CSS Inline property page:
#ALIAS, td[headers="ALIAS"] { width: 40%; }
where the
ALIAS
value in the attribute selector matches the required column alias, and the width property specifies the column dimension required and the units.Note that the percentage widths will be compared to the width of the report table. Therefore, it may be necessary to also specify widths (100%) for the table of report and its components. Exactly how is based on the report, the region and the page templates and theme used, information that was not provided.
-
Please, help me to query SQL Construct.
Hi Experts,Could you please help me to query SQL Construct. Please find the details
HOSTNAME HOSTTYPE DEM R1 R2
RS123 P ABC 24.5 265,5RS123 P CYC 24.5 265,5
RS123 P ADDS 24.5 265,5
RS123 P ADE 24.5 265,5
RS123 P SRC 24.5 265,5
EXPECTED RESULTS
HOSTNAME HOSTTYPE MNE R1 R2
RS123 P ABC, CYC, ADD, ADE, CBC 24.5 265,5Concerning
See you soon
with t as)
Select "RS123' hostname 'P' hosttype, 'ABC' dem, 24.5 r1, r2 265,5 Union double all the
Select 'RS123', 'P', "CYC", 24.5, 265,5 double Union all
Select 'RS123', 'P', 'ADD', 24.5, 265,5 double Union all
Select "RS123', 'P', 'ADE', 24.5, 265,5 double Union all
Select 'RS123', 'P', 'SRC', 24.5, 265,5 double
)
Select the host name,
HostType,
RTrim (XMLAGG (XmlElement(e,MNE,','). (Extract ('//Text ()')), ',') DEM,.
R1,
R2
t
Group hostname,
HostType,
R1,
R2
/
HOSTN H DEM R1 R2
----- - -------------------- ---------- ----------
RS123 P ABC, CBC, ADE, ADD, CYC 24.5 265,5SQL >
SY.
-
Error loading XML file in the column of XMLTYPE through SQL loader
Hi gurus,
I am trying to load the XML file into the column of XMLTYPE through SQL Loader but the errors themselves. Here are the details
Databases
The table structureSQL*Plus: Release 10.2.0.3.0 - Production on Tue Jul 24 17:17:55 2012 Copyright (c) 1982, 2006, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Release 10.2.0.3.0 - 64bit Production BANNER ---------------------------------------------------------------- Oracle Database 10g Release 10.2.0.3.0 - 64bit Production PL/SQL Release 10.2.0.3.0 - Production CORE 10.2.0.3.0 Production TNS for Linux: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production
XML (simple.xml) fileCREATE TABLE TH_XML ( COL_ID_1 VARCHAR2(100 BYTE), IN_FILE_1 XMLTYPE ) XMLTYPE IN_FILE_1 STORE AS CLOB (TABLESPACE SMDAT)
Control file<?xml version="1.0"?> <catalog> <book id="bk101"> <author>Some Author1</author> <title>Some Title1</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>creating applications</description> </book> <book id="bk112"> <author>Some Author2</author> <title>Some Title2</title> <genre>Computer</genre> <price>49.95</price> <publish_date>2001-04-16</publish_date> <description>Microsoft Visual Studio 7 is explored in depth</description> </book> </catalog>
LOG fileLOAD DATA INFILE 'c:\simple.xml' APPEND INTO TABLE TH_XML XMLTYPE(in_file_1) ( col_id_1 filler CHAR (100), in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF )
I get error ORA-00904: "SYS_NC_ROWINFO$": invalid identifier in the logfile (mentioned above). Could someone help me know where I am doing wrong?SQL*Loader: Release 10.2.0.3.0 - Production on Tue Jul 24 16:42:25 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. Control File: c:\my_file.ctl Data File: c:\simple.xml Bad File: c:\simple.bad Discard File: none specified (Allow all discards) Number to load: ALL Number to skip: 0 Errors allowed: 50 Bind array: 64 rows, maximum of 256000 bytes Continuation: none specified Path used: Conventional Table TH_XML, loaded from every logical record. Insert option in effect for this table: APPEND Column Name Position Len Term Encl Datatype ------------------------------ ---------- ----- ---- ---- --------------------- COL_ID_1 FIRST 100 CHARACTER (FILLER FIELD) IN_FILE_1 DERIVED * EOF CHARACTER Static LOBFILE. Filename is c:\simple.xml Record 1: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 2: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 3: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 4: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 5: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 6: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 7: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 8: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 9: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 10: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 11: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 12: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 13: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 14: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 15: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 16: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 17: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 18: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 19: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 20: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 21: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 22: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Record 23: Rejected - Error on table TH_XML. ORA-00904: "SYS_NC_ROWINFO$": invalid identifier Table TH_XML: 0 Rows successfully loaded. 23 Rows not loaded due to data errors. 0 Rows not loaded because all WHEN clauses were failed. 0 Rows not loaded because all fields were null. Space allocated for bind array: 256 bytes(64 rows) Read buffer bytes: 1048576 Total logical records skipped: 0 Total logical records read: 23 Total logical records rejected: 23 Total logical records discarded: 0 Run began on Tue Jul 24 16:42:25 2012 Run ended on Tue Jul 24 16:42:26 2012 Elapsed time was: 00:00:00.23 CPU time was: 00:00:00.05
Thanks in advance.
Published by: 876991 on 24 July 2012 14:18Hello
This remove the control file:
XMLTYPE(in_file_1)
It is used only if the target table is an array of XMLType object.
For an XMLType column LOBFILE is sufficient, for example:
LOAD DATA INFILE * APPEND INTO TABLE TH_XML ( col_id_1 CHAR (100), in_file_1 LOBFILE(CONSTANT "c:\simple.xml") TERMINATED BY EOF ) begindata MYID1
It tells SQL * Loader data consisting of one record with COL_ID_1 = "MYID1" and content = "c:\simple.xml" IN_FILE_1
SQL> CREATE TABLE TH_XML 2 ( 3 COL_ID_1 VARCHAR2(100 BYTE), 4 IN_FILE_1 XMLTYPE 5 ); Table created. SQL> host sqlldr control=test.ctl Username:dev Password: SQL*Loader: Release 11.2.0.2.0 - Production on Mer. Juil. 25 01:30:46 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Commit point reached - logical record count 1 SQL> set long 5000 SQL> column col_id_1 format a15 SQL> select * from th_xml; COL_ID_1 IN_FILE_1 --------------- -------------------------------------------------------------------------------- MYID1
Some Author1 Some Title1 Computer 44.95 2000-10-01 creating applications Some Author2 Some Title2 Computer 49.95 2001-04-16 Microsoft Visual Studio 7 is explored in depth -
Question about a validation on a column
I have to do a validation on a column with the following:
example of table
Column1
1
2
3
4
5
the user can change the order of the table, but I want to validate if they do something like this
1
2
2
4
5
a single error by records number
Thank you, DougCreate a check constraint on the table that would allow only a single value in the column... : http://www.techonthenet.com/oracle/unique.php
Thank you
Tony Miller
Webster, TXWhat happens if you were really stalking a paranoid schizophrenic... They would know?
If you answer this question, please mark the thread as closed and give points where won...
-
Validation of the APEX: ORA-06502: PL/SQL: digital error or value:
Hello
I need help for validation. The user set to ' field minutes'(besoin d'un nombre compris entre 0 et 59).
My solution is to do two commits:
1 - no number:
Name: P1_MINUTES
Type: Regular Expression
Validation expression 1: P1_MINUTES
({Validation expression 2: ^ \d{1,5}(\.\d{1,2})? $
2. more high level then 59:
Name: P1_MINUTES
Type: Function return Boolean
1 validation expression:
If: P10_TOT_MINUTEN < 60 then
Returns true;
on the other
Returns false;
end if;
Validation expression 2: -.
2 validation gives this error (for example a = m value):
ORA-06502: PL/SQL: digital or value error: character number conversion error - the reason is clear m value is not numeric
How this problem can be solved!Condition 2 validation by using a condition of PL/SQL Expression:
regexp_like(:p1_minutes, '^\d{1,5}(\.\d{1,2})?$')
Maybe you are looking for
-
Can upgrade you the ram and ssd yourself on black 700?
-
What is the unit of the table?
Hello! I have a simple question, is what is the unit of the graph. Thank you! Adds, I mean X scale
-
OfficeJet Pro 8600: Legal analysis.
legal analysis by using glass or Charger cut the page as if it were the letter format. Well how to scan legal?
-
How to set time on touch screen of PTC?
It would be cool if all 15 of my touch panels displayed simultaneously. And Yes, they derive that badly... Other than to run during the week to set the time through the toolbar, it is possible proramatically? Module NI Touch Panel does not support
-
Iconia w4 820 screen project works on extend no duplicate
If I get only audio, no video. looked at the answer elsewhere on the community and apparently the answer is to download and install update to-pilots. 2 questions: 1. in the event that I haveto it when my tab is less than 2 weeks? 2. I can only downlo