10.1.3.3 on MySQL - SQL difficult to fill in the historical date
HelloI use ADF 10.1.3.3 with MySQL database. In most of my EOs, I put history of date type fields. During the creation of new line, ADF BC issued "select sysdate to double" which failed on MySQL, which Im assuming that it is an effort to fill these field date in history.
Is there a known fix or workaround for this problem?
Thank you
Rgds,
Rudi
Hi again,
change your configuration of AM and change the jbo.sql92.DbTimeQuery setting
from: select sysdate double
to: 'select now()' (or "now select" I do not remember :))
Brenden
Tags: Java
Similar Questions
-
SQL Developer 3 - export truncates the XMLType data
I am train to export data from and column XMLType & its getting truncated.
I've tried insert formats, text, html, and csv. Big data gets truncated to 4000 characters, but its not exactly consistent.
Is this all just not supported in SQL Developer, or am I missing something simple?You are right that there is currently a maximum of 4000 characters when exporting large data types.
You can add your voice to feature requests SQL Developer using feature requests to the SQL Developer Exchange. This is not only ensures we remember, but also gives all users the chance to make their right to vote for features and provides a forum for you (the user base) to reflect on the way you prefer it works.
SQL development team
Joyce Scapicchio -
Is it possible that muse adobe to have a Back-End that connects to a database using MySQL, SQL, Access etc...
Nothing to do with the Muse at all. You have things backwards. If you use a dynamic interface, you work in the API hooks and predefined functions and that he don't just slap on an arbitrary HTML façade. It is simply not how it works.
Mylenium
-
SQL Developer: How to copy the data with the output grid column headers?
Hello
I use the 2.1.1.64 Version.
I run a SQL query, down the results grid in the "Query result" window below. Say that I get 10 rows returned, with 5 columns.
I want to copy this whole grid, as well as the names/column headers to the Clipboard. If I can stick under the original query to document the results of this query.
I can't find any way to do this. I can copy/paste the results grid, but it does not copy the headers.
The only way I think to do is to go through many steps to export in a TXT file, then paste that. Unfortunately, that's a lot of steps wasted if I need to do it again and again, and more, the output is pasted in an ugly format with double quotes, etc..
It seems that the easiest feature is copy and paste the entire grid of the results, and of course, you could the headers. Why is it so difficult/impossible to do?
(I think that the toad has the same problem. DBArtisan lets you copy and paste the results together, as well as headers, however.)
Any help would be appreciated!
Thank you
JohnShift-Ctrl-C will copy the headers of columns as well as the selected data.
-
113c2fa.msi
When you install Sage Act! on my system, especially when you try to install any particular part SQL (installation was performed by Sage Act! technical support specialists) we receive the error message "SQL server Setup has encountered the following error: C:/windows/installer/113c2fa.msi. ACT! specialist technical support told us, it is a Microsoft problem that had to be fixed through Microsoft. Any suggestions?
Hello
The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums. You can follow the link to your question:
SQL Server 2008 - troubleshooting and Support | TechNet
Hope this information helps.
-
What is the SQL to determine what are the table objects in the KEEP buffer pool?
What is the SQL to determine what are the table objects in the KEEP buffer pool?
Select owner, table_name
from dba_tables
where USER_TABLES = "KEEP."
/
David Fitzjarrell
-
How to write the xml data to a file in pl/sql
Hello
DB version: 11.2.0.2.0
Apps Version: 12.1.3
We try to generate an xml file in a directory on the server through pl/sql program. Here is the code we use. But it gives an error like ' failed due to the ORA-01422: exact fetch returns more than number of lines. When we put the select statement in a cursor and try to write data one by one in the loop, it is written only one record. Please tell us if we make a mistake.
-The code in error
CREATE or REPLACE PROCEDURE TEST_XML_CREATE (errbuf OUT VARCHAR2
ERRCODE OUT NUMBER)
IS
l_file_name VARCHAR2 (30);
l_file_path VARCHAR2 (200);
l_xmldoc CLOB.
BEGIN
l_file_path: = 'FTPPOST_OUT_GTI_AUDIT ';
l_file_name: = 'TEST_XREF4.xml ';
SELECT
XMLElement ("financialorganization:LegalEntityList",
xmlattributes ('http://schema.bppost1.be/entities/financial/financialorganization/v001' "xmlns:financialorganization", )
' http://schema.bppost1.be/entities/base/BaseTypes/V001 ' 'xmlns:basetype',
' http://www.w3.org/2001/XMLSchema-instance ' "xmlns: xsi"),
XmlElement ("financialorganization:LegalEntity",
XmlElement ("financialorganization:LegalEntityCode", fv.flex_value)
XmlElement ("financialorganization:Description", fv.description)
XmlElement ("basetype:ValidityPeriod",
XmlElement ("basetype:OpenEndedPeriod",
XmlElement ("basetype:StartDate", TO_CHAR(start_date_active,'YYYY-MM-DD')),
XmlElement ("basetype:EndDate", TO_CHAR (end_date_active, 'YYYY-MM-DD'))
)
)
)
). getClobVal()
IN l_xmldoc
Of
fnd_flex_value_sets fvs,
fnd_flex_values_vl fv
WHERE 1 = 1
-to be replaced by the name parameter value
AND fvs.flex_value_set_name = 'iPROMIS_POST_GL_AFK01_ENTITEIT. '
AND fvs.flex_value_set_id = fv.flex_value_set_id
AND fv.summary_flag = 'n';
dbms_xslprocessor.clob2file (l_xmldoc, l_file_path, l_file_name, nls_charset_id ('UTF8'));
END;
/
The XML format we want to generate is less than
============================================
< financialorganization:LegalEntityList
' xmlns:financialorganization = ' http://schema.bppost1.be/entities/financial/financialorganization/V001 "
' xmlns:basetype = ' http://schema.bppost1.be/entities/base/BaseTypes/V001 "
" xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance ">
< financialorganization:LegalEntity >
< financialorganization:LegalEntityCode > 12345 < / financialorganization:LegalEntityCode >
< financialorganization:Description > Test Description < / financialorganization:Description >
< basetype:ValidityPeriod >
< basetype:OpenEndedPeriod >
< basetype:StartDate > 1900 - 01 - 01 < / basetype:StartDate >
< / basetype:OpenEndedPeriod >
< / basetype:ValidityPeriod >
< / financialorganization:LegalEntity >
< financialorganization:LegalEntity >
< financialorganization:LegalEntityCode > 54321 < / financialorganization:LegalEntityCode >
Test Description1 < financialorganization:Description > < / financialorganization:Description >
< basetype:ValidityPeriod >
< basetype:OpenEndedPeriod >
< basetype:StartDate > 1900 - 01 - 01 < / basetype:StartDate >
< / basetype:OpenEndedPeriod >
< / basetype:ValidityPeriod >
< / financialorganization:LegalEntity >
< / financialorganization:LegalEntityList >
Kind regards
Pirre
You must use the XMLAGG function to group LegalEntity items in a single fragment.
Also use XMLSERIALIZE instead of the getClobVal method (it is not recommended).
SELECT XMLSerialize(document XMLElement("financialorganization:LegalEntityList", xmlattributes('http://schema.bppost1.be/entities/financial/financialorganization/v001' "xmlns:financialorganization", 'http://schema.bppost1.be/entities/base/basetypes/v001' "xmlns:basetype", 'http://www.w3.org/2001/XMLSchema-instance' "xmlns:xsi"), XMLAgg( xmlelement("financialorganization:LegalEntity", xmlelement("financialorganization:LegalEntityCode", fv.flex_value), xmlelement("financialorganization:Description", fv.description), xmlelement("basetype:ValidityPeriod", xmlelement("basetype:OpenEndedPeriod", xmlelement("basetype:StartDate", TO_CHAR(start_date_active,'YYYY-MM-DD')), xmlelement("basetype:EndDate", TO_CHAR(end_date_active, 'YYYY-MM-DD')) ) ) ) ) ) ) INTO l_xmldoc FROM fnd_flex_value_sets fvs, fnd_flex_values_vl fv WHERE 1 = 1 -- to be replaced by value set name parameter AND fvs.flex_value_set_name = 'iPROMIS_POST_GL_AFK01_ENTITEIT' and fvs.flex_value_set_id = fv.flex_value_set_id and fv.summary_flag = 'N';
-
How to install utilities PL/SQL Developer SQL v1.6.0 in the database
in fact I'm looking
HTTP_UTIL_PKG
CSV_UTIL_PKG
to download excel file in Oracle 11 g r2 11.2.0.1.0 feature
Downloaded from https://code.google.com/p/plsql-utils/downloads/detail?name=plsql-utils-v160.zip & can = 2 & q =
How to install utilities PL/SQL Developer SQL v1.6.0 in the database
If we install in sys or particular schema in which I need to use
and how to run the script
ReemaPuri wrote:
in fact I'm looking
HTTP_UTIL_PKG
CSV_UTIL_PKG
to download excel file in Oracle 11 g r2 11.2.0.1.0 feature
Downloaded from https://code.google.com/p/plsql-utils/downloads/detail?name=plsql-utils-v160.zip&can=2&q=
then download the zip file and then extract the contents
Both are contained in it.
Then add them to the schema of your choice.
-
Hello
I am new to oracle. Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.
Thanks in advance.
6e85b3c2-5f02-40CB-A8AD-d2279f63b4be wrote:
Hello
I am new to oracle. Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.
Thanks in advance.
Start here; http://docs.Oracle.com/CD/E11882_01/server.112/e10822/TOC.htm
Continue here: http://docs.oracle.com/cd/E11882_01/server.112/e41573/toc.htm
-
SQL does not pick up the reference sql plan
Hello
My version of the database is 11.2.0.03 64-bit quarter computer cart exadata
I created a base line for an inefficient and then added SQL tips used to fix the plan and the new plan associated with the old plan sql_handle column. I am able to see the two plans (good and bad) present in the table dba_sql_plan_baselines as shown below
Old -------------------------------------------------------------------------------- Plan name: SQL_PLAN_fgky3z20smxzve27462bc Plan id: 3799278268 Enabled: YES Fixed: NO Accepted: YES Origin: AUTO-CAPTURE -------------------------------------------------------------------------------- Modified -------------------------------------------------------------------------------- Plan name: SQL_PLAN_fgky3z20smxzve307ad0f Plan id: 3808931087 Enabled: YES Fixed: YES Accepted: YES Origin: MANUAL-LOAD --------------------------------------------------------------------------------
When I ask dba_sql_plan_baselines with the signature below is the output
SIGNATURE SQL_HANDLE PARSING_SCHEMA_NAME ENABLED ACCEPTED FIXED --------- ------------------------------ ------------------------------ ------- -------- ----- 16702659115126224891 SQL_e7cbc3f88189f7fb SSO307010265 YES YES NO 16702659115126224891 SQL_e7cbc3f88189f7fb SSO307010265 YES YES YES
I then checked gv$ sql and found the signature not displayed in the EXACT_MATCHING_SIGNATURE but the sql_plan_baseline is NULL.
I'm not able to determine what am I missing.
Can someone please help
Thank you
Jayadeep
Yes, good point - this can be a factor.
I noticed something similar once:
https://OraStory.WordPress.com/2012/03/09/SQL-patch-III-plus-parallel-baselines/
In this case, the profile of sql and sql patch can be worthy avenue, as mentioned by Lothar.
-
I installed the SQL 4.0 developer and repository installation was a success. But the tools-> Data Miner-> Make visible option is not enabled. Also when I double click on the data minor user login I get the message workflow repository data need to be stored as xml binary on databases of version 11.2.0.4 or higher. You want to migrate your data from worklfow binary storage? WARNING: All sessions with the ODMRUSER role will be disconnected. Client version: 12.2.0.17.29 Version: 12.1.0.1.0 the database repository Version: 12.1.0.2.1. I don't have an older repository. Please help me solve this problem.
Try to create a data minor user account (for example DMUSER) using the script createuser.sql in the
\dataminer\scripts directory. Use this user account to connect instead of the anonymous account. Thank you.
-
2 PL/SQL insert new string in the string specified to a specific Position
Hello
PL/SQL insert new string in the string specified to a specific Position
Continuing the previous thread has answered, I would like to know how to cut the data after the underscore ("_").
Example:
Old chain: D100_RT
New string:APPROX100 d.
Here after, what is there after that execution should be deleted.
Thank you
Suppose that the string = D100_RT
select substr('D100_RT', 1, instr('D100_RT','_')-1 ) from dual
-
PL/SQL code to add to the data file
Can someone help me with a PL/SQL code. I want to do the following:
get the latest data from the tablespace file
If (value > 30 GB)
then
Loop
change the database add datafile '+ DATA01' size 30 GB
# Note data file cannot be larger than 30 GB
# IE if 40 GB is entered as 2 entries are created one for 30 GB
# the second for 10 GB
end loop
on the other
same logic adds size datafile up to 30 GB
Loop
If you go over 30 GB that to create the new data file
End of loop
IfPlease excuse the syntax I know its not correct. In summary,.
what I want to do is to create data no larger than 30 GB files for the
extra space simply create new datafiles Nigerian, we reached the "value in".
limitHe can be hard-code "«+ DATA01»»
Note, I don't want to use datafile autoextend I want to control the size of my storage space...
Any code would be greatly apprecuated.
Thanks to all those who responded
create or replace procedure add_datafile( p_tablespace varchar2, p_size_in_gibabytes number ) is space_required number := 0; space_created number := 0; file_max_size number := 30; last_file_size number := 0; begin for ts in ( select tablespace_name, round(sum(bytes / 1024 / 1024 / 1024)) current_gigabytes from dba_data_files where tablespace_name = upper(p_tablespace) group by tablespace_name ) loop dbms_output.put_line('-- current size of ' || ts.tablespace_name || ' is ' || ts.current_gigabytes || 'G'); space_required := p_size_in_gibabytes - ts.current_gigabytes; dbms_output.put_line('-- adding files ' || space_required || 'G up to ' || p_size_in_gibabytes || 'G with files max ' || file_max_size || 'G'); last_file_size := mod(space_required, file_max_size); while space_created < (space_required - last_file_size) loop dbms_output.put_line('alter tablespace ' || ts.tablespace_name || q'" add datafile '+DATA01' size "' || file_max_size || 'G;'); space_created := space_created + file_max_size; end loop; if space_created < space_required then dbms_output.put_line('alter tablespace ' || ts.tablespace_name || q'" add datafile '+DATA01' size "' || last_file_size || 'G;'); end if; end loop; end; / set serveroutput on size unlimited exec add_datafile('sysaux', 65); PROCEDURE ADD_DATAFILE compiled anonymous block completed -- current size of SYSAUX is 1G -- adding files 64G up to 65G with files max 30G alter tablespace SYSAUX add datafile '+DATA01' size 30G; alter tablespace SYSAUX add datafile '+DATA01' size 30G; alter tablespace SYSAUX add datafile '+DATA01' size 4G;
-
Problem with pl/sql procedure, trying to get the value of the user during execution
Hello
Using oracle 11.2.0.3
Can run sql that gets the value of the user during the fine workmanship and also via an anonymous block.
uses of SQL & Enter_Product_Number
anonymous block using: Enter_Product_number.
However, get problems when trying to create a pl/sql procedure, use one of the above
relevant below tried code part & and: buit works do not error, try bad bind variable if used: and ora-600 if try use &.
How can we have a procedure from pl/sql that can call and receives a value of user during execution?
Only way around what I can think of is to pass parameters to the procedure
Thank you
create or replace procedure ins_into_issues is
v_nd_rec_cnt number (10);
v_normal_rec_cnt number (10);
Start
Select count (*)
in v_nd_rec_cnt
refmast.issues I have
where i.iss_product_num = & old_nd_product_number;
Select count (*)
in v_normal_rec_cnt
refmast.issues I have
where i.iss_product_num = & normal_product_number;
-code below commented above works.
end;
Hello
what something like this:
create or replace procedure INS_INTO_ISSUES ( in_normal number, in_old number ) is v_nd_rec_cnt number(10); v_normal_rec_cnt number(10); begin select count(*) into v_nd_rec_cnt from refmast.issues i where i.iss_product_num = in_old; -- select count(*) into v_normal_rec_cnt from refmast.issues i where i.iss_product_num = in_normal; end;
concerning
Kay
-
SQL Loader in error after the modified table
Hello
"I had a column in the table that was initially defined as VARCHAR2 (250), I changed the table and made 1000, when the data is over 250 characters sql loader is in error"
Field in the data file exceeds the maximum length. The table shows the field in VARCHAR2 (1000). Help, please.
Thank you
Gwenaël
I changed the table again to make VARCHAR2 (4000) and still have the error. My data are about 350 characters. Help, please
Change to the column sqlldr control file and explicitly set tank (4000). The default data in sqlldr type is char (255).
Maybe you are looking for
-
Every time I click on Internet Explore a prompt appears at the bottom of the screen that says "only Secure Content is displayed. How can I get this to stop? or disable invites him so I x it out every time?
-
Laptop was purchased in September.
-
Need to correct settings for Verizon wireless on Outlook Express.
Original title: outlook express I need the correct settings for outlook express. I'm using win - xp os.my provider is verizon wireless. I know not e other information you need to help? dry75
-
can I replace my hardrive with recovery cd?
I want to replace my hard drive, but all I have is the system restore cd. My old man is about to go bye. It is a gateway computer. Thank you.
-
Printer keeps printing a blank cover page - don't want
My printer is a HP LJ 3050 all in one. "In the preferences of the printer, the" Paper/quality"tab shows that under"special pages", I ask"covers"so many pages printed on different paper." I don't know how these choices got there, don't want and can'