table and the columns in small capitals!
Dear all,My database is GR 11, 2 and Linux is the operating system.
One of my application, whose code I cannot access, he is trying to insert records into the Oracle database. The problem is that the application is case sensitive and try to find the table and columns in small capitals, name while he gets the caps of Oracle and gives error or identifier is not valid.
Y at - it option to create fields and the table with small letters.
Kindly help.
Kind regards
Imran
Use "" for the table and columns
create table "table_test" ( "col_test" number(12));
Tags: Database
Similar Questions
-
table and the column in the chain
Hello
I'll have a column data containing the combination table and the names of columns as
act_hand_table.work_order
I want the names of table and column separated
I want to separte. Classified
Please help me
Kind regards
KiranI think it'll work
SELECT
SUBSTR (COL1, 1, INSTR(COL1,'.',1,1)-1) TABLENAME.
SUBSTR (COL1, INSTR(COL1,'.',1,1) + 1) COLUMNNAME
FROM TABLENAME -
Hi everyone, yet once landed upward with a problem.
After trying many things to myself, finally decided to post here...
I created a form in form builder 6i in which clicking on a button, the data gets exported to the excel sheet.
It works very well with a single table. The problem now is that I cannot do the same with 2 tables.
Because the tables have the same number of columns and the columns names.
Here are the 2 tables with column names:
Table-1 (MONTHLY_PART_1) Table-2 (MONTHLY_PART_2) SL_NO SL_NO MODEL MODEL END_DATE END_DATE U-1 U-1 U-2 U-2 U-4 U-4 .......... ........ .......... ........ U-20 U-20 U-25 U-25 Given that the tables have the same column names, I get the following error :
402 error at line 103, column 4
required aliases in the SELECT list of the slider to avoid duplicate column names.
So how to export data to excel that has 2 tables with the same number of columns and the column names?
Should I paste the code? Should I publish this query in 'SQL and PL/SQL ' Forum?
Help me with this please.
Thank you.
Wait a second... is this a kind of House of partitioning? Shouldn't it is a union of two tables instead a join?
see you soon
-
Query to see the name of the table and the name of the column...
Hi Experts,
I have an Oracle DB, I have more than 50 tables and 100,000 records. I want to get the name of the table of the record that contains "ITxtVarValue made reference to a non-existent text" text.
Is there any simple query it to find the table name and the column name for this particular file reside?
Help, please. Any help will be rewarded.
Thank you
G
-
Mark from a table where the column value is a colon-delimited list
Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
Hello
This is a new query of a query Frank helped me with:
Demand is all users to restrict the report based on a multiple selection on the front-end server (application APEX) filter.
The filter returns that a colon-delimited list and the data in the table can be saved in a delimited by a colon list too. There may be 1 to n values (up to 4000 characters).
I need a WHERE clause that will allow a match, if it exists, between the data in the column of the Table and the Mult-selection list filter.
The abbreviated for this post query would be something like:
SELECT slt_id, slt_item, slt_owner
OF slt_dashboard
WHERE slt_owner IN (colon delimited page list);
The Create Table and Insert statements:
CREATE TABLE slt_dashboard ( dashboard_id NUMBER, slt_id VARCHAR2(10), slt_item VARCHAR2(2500), slt_owner VARCHAR2(4000), slt_type VARCHAR2(25), slt_year NUMBER, parent_id NUMBER ); --Insert slt_dashboard INSERT INTO slt_dashboard(dashboard_id,slt_id,slt_item,slt_owner,slt_type,slt_year,parent_id) VALUES (12,'1.1','Implement revenue enhancement initiatives','E15889:JPARISI:BDUR63','Business Commitment',2014,6); INSERT INTO slt_dashboard(dashboard_id,slt_id,slt_item,slt_owner,slt_type,slt_year,parent_id) VALUES (13,'1.2','Strengthen our Energy position','KVROMAN','Business Commitment',2014,6);
I have a function to separate the list delimited by two points in a table for the IN clause, but because these values can be saved in a delimited list of Colon in the column of the Table, I have a problem, being able to analyze the data in the column, AND the filter data.
The function is:
CREATE OR REPLACE FUNCTION get_list( p_string IN VARCHAR2 ,p_delimiter IN VARCHAR2 DEFAULT ':' ) RETURN vc_array_1 PIPELINED IS l_string VARCHAR2( 32000 ); l_array wwv_flow_global.vc_arr2; BEGIN l_array := APEX_UTIL.string_to_table( p_string ,p_delimiter ); FOR i IN l_array.FIRST .. l_array.LAST LOOP PIPE ROW ( TRIM( l_array( i ) ) ); END LOOP; RETURN; END;
The function called in the query in the form (it's just for reference in case someone wanted to know):
SELECT ... FROM ... WHERE slt_owner IN (SELECT * FROM TABLE( get_list( :P115_SLT_OWNER ) ));
But I can't use this approach because the data in the Table can be saved in a delimited list of Colon too.
Desired output:
If the Mult-Select list filter contains: E15889:JPARISI then
1.1 implementation of the E15889 revenue improvement initiatives; JPARISI (it's a semicolon between the names)
If the multiple-selection list filter contains: KVROMAN then
1.2 strengthen our position of energy KVROMAN
If the multiple-selection list filter contains: BDUR63:KVROMAN then
1.1 implementation of the BDUR63 revenue improvement initiatives
1.2 strengthen our position of energy KVROMAN
Please let me know if something is not clear.
Thank you
Joe
I went to approach the Table and the Page works perfectly.
Thank you to everyone!
Thank you
Joe
-
need help with my screen has been using mouse and the screen is smaller and smaller
need help with my screen has been using the mouse and the screen is smaller and smaller, so can't see
Try to hold the 'ctrl' key and turn the wheel of scrolling the mouse forward to zoom, turning the scroll wheel to the rear is to zoom out.
-
How to create the Table using the column Drag and Drop feature
Hello:
I'm new to Data Modeler tool Oracle SQL dev and would like to know if there is a way to create a new table by reusing existing columns or groups of columns. The idea is to maintain consistency and save time of table design. If the columns created previously can be reused and require, drag and drop column in the right pane, then only new columns must be created manually.
Any thoughts on this will be appreciated.
Thank you!Yes - just change the name of the model table in the script (t_name = "table_template") then save this new transformation for later use.
I don't know how to apply only some of the tables. Seems like something you could do to a secondary view level?
Perhaps someone else on the forum can advise how to change the script to work on a subview only instead of the whole model.
-
MV for replication. No PK in the source table and the LOB column
I would like to replicate tables between 2 instances in 2 different hosts. Mixed 11 GR 1 material and Oracle 10 g 2. I have my doubts:
1. some tables from the source is not PK, and I understand that MV with rowid is not supported. Is there no workaround known workaround on this case without changing the structure of the source table? Full/complete update is acceptable.
2 one of the table has the CLOB data type. Can I just ignore this column in MV? A known issue with this kind of approach?#1. You must use WITH ROWID MV and I believe it is supported up to the latest version, unless you can find any document, please give me the code of Notes.
#2. CLOB column is supported in MV, so no need to jump. -
Loading the values of XML tag parent in the Oracle table and the values of the child
<project>
<id>001</id>
<name>Math Project</name>
.
.
<team>
<id>1</id>
<name> Team Roger </name>
.
.
</team>
</project>
<project>
<id>002</id>
<name>Science Project</name>
.
.
<team>
<id>2</id>
<name> Team Alpha </name> .
</team>
<team>
<id>3</id>
<name>Team Romeo </id>
</project>It's the structure of the XML where the content is changed daily and the file is placed in "D:\Test_Dir". I'm trying to load a table (teams) with the details of the team and its corresponding parent, like this project:
proj_id team_id team_name
001 1 Team Roger
002 2 Team Alpha
002 3 Team Romeo
Below is the pl/sql block I wrote:
declare
cursor proj_cur is select project_id from projects;
proj_rec proj_cur%rowtype;
begin
for proj_rec in proj_cur
loop
INSERT INTO teams(team_id,team_name,project_id)
WITH t AS (SELECT xmltype(bfilename('TEST_DIR','SCRUM.xml'), nls_charset_id('UTF8')) xmlcol FROM dual)
SELECT
extractValue(value(x),'*/id')team_id
,extractValue(value(x),'*/name') team_name
,extractValue(value(y),'/project/id') project_id
FROM t,TABLE(XMLSequence(extract(t.xmlcol,'/scrumwise-export/data/account/projects/project'))) y
,TABLE(XMLSequence(extract(t.xmlcol,'/scrumwise-export/data/account/projects/project/people/teams/team'))) x
where (extractValue(value(y),'/project/id'))='emp_rec.project_id';
end loop;
end;This returns a cartesian product! Any help with this is much appreciated.
A few additional tips BTW:
-do not use wildcards (*) when you really know the structure of the XML document and the name of the node you want to extract.
-use the UTF8 character set is not recommended because it supports any valid XML characters. Use rather AL32UTF8 .
So, similar to Kim:
select proj.project_id , team.team_id , team.team_name from xmltable( '/scrumwise-export/data/account/projects/project' passing xmltype(bfilename('XML_DIR','SCRUM.xml'), nls_charset_id('AL32UTF8')) columns project_id varchar2(3) path 'id' , teams xmltype path 'people/teams/team' ) proj , xmltable( '/team' passing proj.teams columns team_id number path 'id' , team_name varchar2(100) path 'name' ) team where exists ( select null from projects p where p.id = proj.project_id ) ;
Or a shorter version using a single XMLTABLE:
select team.project_id , team.team_id , team.team_name from xmltable( 'for $i in /scrumwise-export/data/account/projects/project , $j in $i/people/teams/team return element r { element project_id {$i/id} , $j/id , $j/name }' passing xmltype(bfilename('XML_DIR','SCRUM.xml'), nls_charset_id('AL32UTF8')) columns project_id varchar2(3) path 'project_id' , team_id number path 'id' , team_name varchar2(100) path 'name' ) team where exists ( select null from projects p where p.id = team.project_id ) ;
And if a project can have no team, you can the outer join the XMLTABLE 2nd instead:
, xmltable( '/team' passing proj.teams columns team_id number path 'id' , team_name varchar2(100) path 'name' ) (+) team
-
Table invites the column space question OBIEE 11 g
Hello
I have a relationship with the table view and 2 columns in section guests table. When I see the dashboard report 2 invites showing by far. How can I reduce the space between the 2 column guests?
Any help?
Thank you
Prasanna
I found the solution. The law in the 2nd column of filling. It solves the problem.
-
ALTER TABLE with the column NULL time consuming
Hello
I have a table with nearly 2 million documents (about 10 GB size table) when I perform the following change statement its run fast
ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);
but when I do not give the NOT NULL in the alter its taking a long time to complete this i.e tbl_1 of ALTER TABLE ADD (NUMBER col_4 by DEFAULT 100); once I do the column as NOT NULL.
Can someone explain why is it happening like that regarding the execution point.
Thanks in advance.
I can reproduce the effect in 11.2.0.1 - but not in 12.1.0.1.
drop table tbl_1;
create table tbl_1
as
Select rownum id
, lpad ('* ', 50,' *') padding
of the double
connect by level<=>=>
ALTER TABLE tbl_1 ADD (NUMBER col_4 by DEFAULT 100);
--> slow in 11.2.0.1; fast 12.1.0.1
ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);
--> Quick 11.2.0.1 and 12.1.0.1
A SQL trace for two operations (11g) shows that the altar slow (without the constraint explicit non-null) made explicit (and tedious) update of any row in the table:
Update 'TBL_1"set"COL_4"= 100
call the query of disc elapsed to cpu count current lines
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.02 0 1 0 0
Run 1 11,63 33.56 8336 1016125 2053531 1000000
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Total 2 11,63 33,58 8336 1016126 2053531 1000000
The other trace file does not contain the explicit Update. I guess in the optimized case that oracle stores somewhere that col_4 has the value 100 and updates only the line of the block after completing DML operations. But that's just a guess.
-
Need help on repeat lines of the table and the subform
I hope someone can help me find a way to accomplish things with a subform of repeating table in a form I'm building. I have attached the file here.
https://workspaces.Acrobat.com/?d=2nUNZuTf2T4tsdSykMTlXw
I have a table (AssessChart1Table) set up on pg 7 (analysis) and built in buttons (AddRowAssesChart1 and DeleteRowAssesChart1) so that the user can add or remove rows of additional data according to the needs.
The problem is that the user enters also cross the line header (AssessChart1HeaderRow1) in this data table. There are 10 available columns; However, they will have to add more data than that. Therefore, I made a button (AddMoreCourses) for the user to click on to add another instance of the subform table (AssessEvalChart1) and also to cancel adding the subform with this button (UndoAddMoreCourses).
In addition, I setup that whatever data the user enters in the cell of this table cell (Prog-DeptObjChart1) are automatically transferred to another table (AssessChart2Table), cell (Prog-DeptObjChart2), which is located on the next page (AnalysisCont1).
All above works very well except that whenever the user presses the button (AddMoreCourses) I don't want it to automatically fill cells of text field that are copied from (AssesChart1HeaderRow3) because I need the user to be able to enter different values rather than add more columns to fit their data. In addition, I would like that the values of the cells in the left column to repeat well because these values will not change. Currently the values of the cells in the left column that wear down (AssessChart2Table) to get stripped on (AssessChart2Table) whenever I the user pushes button Add more courses or cancel add more courses.
In summary, the tables would look like the attached screenshots:
Any help would be highly appreciated. I'm not experienced with Livecycle Designer. The form I built by reading the forums and the examples.
Where you need it, I use Livecycle Designer v. 9.0.0.2.20120627.2.874785 on a Windows 7 Pro platform.
Thank you!
They will need to copy in a similar way as with the other lines. I would say on the exit event for the field of Prog-DeptObjChart1, add the code that copies the rawValue of him in the second table. Your code has something there now, but it does take into account that there will be multiple instances of the same line.
Thus, in the constructor of your action, add another result to the condition of AddRowAssessChart1.click: Add a new instance of AssessChart2Row1.
Then exit to Prog-DeptObjChart1 in the event, add this code.
xfa.resolveNode ("AnalysisCont1.AssessEvalChart2.AssessChart2Table.AssessChart2Row1 [" + this. "]") parent.index +"]. Prog-DeptObjChart2") .rawValue = this.rawValue;
Now when you exit the field you typed in, the text is copied in paragraph2.
-
I took someone else's code and have problems with the width of the columns in a table for sizing.
I have a table to create three columns of work. The table is 905px wide and I want column 140, 350, and the rest in width.
If I put these values < td width = "140"... > etc., while they seem to be neglected, and the three columns are all the same width.
It seems fine in design mode but not in Live View or published. Can someone help me to overcome this please?
Thank you very much.
- Tables in HTML behave in their own way and you do not guarantee the width of columns
- Do not specify the widths of cell via (attributes) HTML
).
The width attribute in thetag is obsolete (the browsers are not required to support or to obey) and it was always a recommendation to the browser in any case, it was never a precise measurement are met. - Learn how to your tables with CSS style
See
http://Veerle.Duoh.com/blog/comments/a_css_styled_table/
-
BULL, INSERTION IN THE PARENT TABLE AND THE CHILD TABLE
Hi all
We use bulk insert to improve performance. How to use this concept when I insert the records parent in table parent and child?
example... I have a procedure that accepts the array of student objects
each student object is defined as *(student name, student age, course_object_array) *.
the 3rd element course_object_array is defined as *(coursename,course fee,facultyname) *.
a student can be associated with several courses
Now, I have to insert the data into two tables namely students (studentname, studentage and student_number)
courses (course_id, coursename, fees, facultlyname, student_number)
I use sequences to fill the columns student_number and course_id.
If I use bulk insert, and insert all the records in the parent table how do I the association for each record of a child. How will I know what child folder must be associated with which of the parents?
Concerning
REDAraj_fresher wrote:
Hi thanks for the reply Solomon.I actually know about the bulk collect and for all...
Have you read that FOR ALL with in fact BULK COLLECT? It will allow you to bulk insert via for ALL with VOTING student_numbers attributed to each student placed in a collection. Then, you will use this collection collection of course list to fill the RACE table.
SY.
-
Control the width of the Table and the font size in the OPS
Hello
I have a form OPS page which has a classic table. The table has about 50 columns. Because of this user needs to scroll horizontally to see all columns. Is it possible to display all 50 columns in the current visible window (i.e. without using horizontal scrollbar)? Is it possible to control the display of table width and to reduce the font size to 8pt and 9pt so that all fields are visible without scrolling?
Any comments on it would be a great help.
Thank you
Shreeuse "OraCopyright" as a CSS class, it will reduce the size of the font at 8pt.
But even if you use all these, which can accommodate 50 columns can be difficult in a single line.
Prasanna-
Maybe you are looking for
-
How to configure the bookmarks bar to view more than 4 bookmarks?
In Firefox to. 31.0, I can add multiple bookmarks to the bookmarks bar, but if I added more than four bookmarks on the toolbar and then close Firefox, the next time I open it it there are only four bookmarks in the toolbar. I've been a techie years s
-
Installation satellite P300D - 12l and WXP
HY I have Windows Vista on my laptop Satellite P300D - 12l and I would like to install Windows XP.Is it possible to make and have?If you know where to find the drivers please write.
-
How can I erase memory pw?
I have a shortcut that I use and who asked if I wanted to save my pw. I said yes. For a long time, when I used this connection he would come with ID and pw empty until I walked into a character in the code. Now when I use it it displays the ID and
-
Error: IRQL NOT LESS OR EQUAL
Hello! Please help me solve this error in my laptop Acer Aspire E1-421. This BSOD error has appeared three times and twice as it happened that day already. I don't know how to resolve this error, especially the very technical parts. My laptop has a s
-
HelloI would like to uninstall the application plugin? What should I do?Ziut