Developer of SQL code Templates/completion Insight 3.2.2
Hello, today I got version 3.2.2. In the first start, all my previous version settings have been imported and all works perfect, except the insight of the completion.
If I write
SSF [CTRL + space]
Therefore, in the previous version
Select * from
In the new version, for the same input is:
ssfselect * of
Another model of code, it's the same thing, the id for the code model will not remove all by setting the code model.
Is this a bug or is at - it something wrong with my environment?
This is a bug that is corrected for version 4.0.
Tags: Database
Similar Questions
-
I use SQL Developer 2.1, and code templates does not work (I tried Ctrl + Shift + T, Cttrl + space etc.). I even can't find the item in the shortcuts page layout. A tip?
Hello
I had my previous installation of SQL Dev, who still have the entry of hot keys for Code patterns.
I always migrate setting of the old version, so each new version will always be the shortcut key for Code patterns.
I also discovered that the entry of hot keys for Code patterns is no longer exist on the new SQL dev.
But I can always use Ctrl + Shift + T to invoke Code patterns.For your problem, if you have SQL Dev with templates of Code entry, look for the shortcut in the settings.xml entry and copy paste in your new Dev SQL.
or use the migration optionsor (not sure if it works well, double cross my fingers)
Copy and paste this to
C:\Documents and Settings\\Application Data\SQL Developer\system2.1.0.63.73\o.ide.11.1.1.2.36.55.30\settings.xml hand globalKeyMap
code_template
- Ctrl Shift T
Don't know why each version of SQL Dev, mess with the previous autour defines shortcut keys.
Hope this helps,
Buntoro
-
Developer of sql Oracle - code beautifier
Hi all
Where is beautifier code of oracle sql Developer (if any)?
My version is 4.0.3.16
It (Ctrl + F7) works for me in 4.0.3 as well in a spreadsheet and the PL/SQL code editor. According to the SQL Formatter settings, sometimes the action Format has no effect. For example, a piece short single line of SQL may already be formatted according to the parameters. However, if the Format is something, then Ctrl + F7 should also have the same effect.
Watch Tools > Preferences > shortcut keys to see if the Format is associated with Ctrl + F7. If it is, with Format work but not the shortcut key, then something can be altered in your user settings.
-
drop the triggers in the SQL code causes not properly completed order.
running the following command in SQL developer, giving the following error message
ORA-00933: SQL not correctly completed command.
What I am doing wrong
Published by: Mo2 on April 16, 2010 12:21Begin For I In (Select Trigger_Name, Owner From Dba_Triggers Where Trigger_Name Like 'ABC%' And Owner = 'my_schema') Loop Execute Immediate 'DROP TRIGGER '||I.Owner||'.'||I.Trigger_Name; End Loop; End;
Published by: Mo2 on April 16, 2010 12:24MO2 wrote:
Yes he has.
is an example of the names BIN$ + i6ls2WnR/Svz0wA5LSG8A == $0In fact these triggers created by the database after I have remove the tables. is there a way to avoid their creation?
drop trigger BIN$+i6ls2WnR/Svz0wA5LSG8A==$0; drop trigger BIN$+i6ls2WnR/Svz0wA5LSG8A==$0 * ERROR at line 1: ORA-00933: SQL command not properly ended
Yes, oracle complained about it during a fall.
These objects will be created if you recyclebin on.You can either disable your recyclebin or you can purge these items in recyclebin after a fall. Make sure that you require this function or objects in the future.
Concerning
Anurag -
SQL code does not not in Forms Developer without functions?
Hi all
I write this code in forms to it's work correctly in SQL and the following error occurened
The PL - SQL Code:
DECLARE
The error message (appears next to JOIN products):
Product_Name Products.Name%TYPE;
Most_Occurence NUMBER(10);
BEGIN
SELECT *
INTO Most_Occurence, Product_Name
FROM (SELECT COUNT (returned_goods.ID) AS "Max Occurence", products.Name
FROM Returned_Goods
JOIN Products
ON returned_goods.productId = products.Id
GROUP BY returned_goods.productId, products.Name
ORDER BY COUNT (returned_goods.ID) DESC)
WHERE ROWNUM = 1;
END;
Encountered symbol "PRODUCTS" when expecting one of the following:
Thanks in advance
), with group having intersect minus order start union where connect
Published by: ZiKaS on December 30, 2008 08:57Now... obviously you can not use the ansi join syntax in this forms module. So rewrite your query with
...
Returned_goods, products
WHERE returned_goods.productId = products.id
...HTH
-
Examples of pl/sql code that can be used in training for new developers
Hello
I'm working on a training ride on the pl/sql to some developers who are totally new to PL/SQL. Although they are experienced in another language. I have power point on pl/sql presentations, but they especially the theory oriented with just a few examples. I'm looking for more help to have a few example pl/sql that can be given to interns as the code for example and also to practice. It should be a bit detailed and like to print the odd numbers or print "hellp world." Can anyone help to suggest if there is an example of code that is a bit detailed with a kind of complex problem which will give students a hands good example? I see a nice example at this link: http://tucano.tucanowebdesign.com/oracle/tutorial5.html - on an inventory system. It gives the feeling of being one on the issue of real-world work. So that if anyone knows of some other example say about 150 t0 300 lines or so of the code, I'll be grateful if it is shared.
Thank you
OrauserN
That said, I feel again (my perception) that more code a person writing/comments the better he gets. So, I want students to examine several code examples. I guess I need to see some books to bring out some really long piece of PL/SQL - like case studies.
. . .
But these guys are too busy and so I try to find the net / books some really detailed examples.But you seem to be overlooking that PL/SQL is supposed to be used for: PL means "procedural language.
So, PL/SQL must be used to 'procedure' treatment; This is typically several process steps. For example, when you want to run three applications as a "TRANSACTION". If all three completed successfully you COMMIT and if any of the three you don't ROLLBACK.
You can do this by using SQL only. And a developer doesn't have to write the code until they have a technical requirements doc that explains what problem the code is supposed to solve and the constraints and requirements that the code must implement.
So, my suggestion is the following:
1. identify and teach the types of issues that PL/SQL is used to help solve. Multi-step transactions, I mentioned above is an example
2. use the documentation and the code of your own organization in the form of samples. These 'guy' is perhaps too busy, but they should be able to provide to you all the documents for the code they wrote and that you use which would be good to use as examples. If they have no documents technical requirements so you just identify a MAJOR gap in the operations of your org that you must bring to the attention of management.
3. you can provide value added a lot more if you use code from your own org as a basis for what you are doing. A very useful training exercise is to ask students to perform 'code review' of a code (a procedure or function) and write simple comments, one line that explain, in plain English, what makes each piece of code.
4 comments, students create to step #3 can actually be incorporated into your code then existing so that future developers can use these comments to understand what the code actually does.
5 part of your 'education' should be on the way to 'test' correctly a piece of code PL/SQL to make sure it is doing what it is supposed to do. Again, if your students actually your own org code allows to create tests, these tests can then be added as a result of 'test' for this application and that adds value. A lot of times those developers 'busy' will not create the actual test cases and that your students can help remedy that. In addition, it does no good to know how to write PL/SQL code if you don't know how to test properly.
-
Extensions: Convert T - SQL code
Hello
Do we not have an extension for SQL Developer that converts the Oracle in T - SQL code?
Thank you
Do we not have an extension for SQL Developer that converts the Oracle in T - SQL code?
There is such an extension. It is called a "consultant."
See you soon,.
Brian
-
How to pass the Record of entry to the dynamic SQL Code
Hi all
I am trying to run under Oracle applications API on the remote database using DB Link. I try to run using dynamic SQL. Part of the code is given below.
DECLARE
l_batch_info_rec wsh_picking_batches_pub.batch_info_rec;
l_rule_id NUMBER;
l_rule_name VARCHAR2 (240);
l_batch_prefix VARCHAR2 (240);
BEGIN
l_batch_info_rec.document_set_id: = v_document_set_id;
l_batch_info_rec.order_type_id: = v_order_type_id;
l_batch_info_rec. Default_Stage_Subinventory: = v_default_stage_subinventory;
l_batch_info_rec.pick_grouping_rule_id: = v_pick_grouping_rule_id;
l_batch_info_rec.pick_sequence_rule_id: = v_pick_sequence_rule_id;
l_batch_info_rec.autopack_level: = v_autopack_level;
l_batch_info_rec.autopack_flag: = v_autopack_flag;
l_batch_info_rec.ac_delivery_criteria: = v_ac_delivery_criteria;
l_batch_info_rec.backorders_only_flag: = v_backorders_only_flag;
l_batch_info_rec.existing_rsvs_only_flag: = v_existing_rsvs_only_flag;
l_batch_info_rec.customer_id: = v_customer_id;
l_batch_info_rec.order_header_id: = v_header_id;
l_batch_info_rec.from_scheduled_ship_date: = NULL;
l_batch_info_rec.organization_id: = v_organization_id;
l_batch_info_rec.include_planned_lines: = v_include_planned_lines;
l_batch_info_rec.autocreate_delivery_flag: = v_autocreate_deliveries_flag;
l_batch_info_rec.autodetail_pr_flag: = v_autodetail_pr_flag;
l_batch_info_rec.allocation_method: = 'I ';
l_batch_info_rec.pick_from_locator_id: = NULL;
l_batch_info_rec.auto_pick_confirm_flag: = 'n'; -The value manually to run Transact order
l_batch_info_rec.autopack_flag: = 'n'; -Manually configure to perform the manual packaging
l_rule_id: = NULL;
l_rule_name: = NULL;
l_batch_prefix: = NULL;
v_sqlstmt1: = ' START
wsh_picking_batches_pub.create_batch' | g_db_link | "(1.0,
fnd_api.g_true,
fnd_api.g_true,
: l_return_status,.
: l_msg_count,.
: l_msg_data,.
: l_rule_id,.
: l_rule_name,.
: l_batch_info_rec,.
: l_batch_prefix,.
: p_new_batch_id
);
END;';
--
EXECUTE IMMEDIATE V_sqlstmt1
With the HELP OF THE l_return_status,.
ON l_msg_count,.
ON l_msg_data,.
BY l_rule_id,
BY l_rule_name,
BY l_batch_info_rec,
BY l_batch_prefix,
OUT p_new_batch_id;
--
END;
After you run this script, I get below error "PLS-00457: expressions must be SQL types ' for variable l_batch_info_rec which is of type record. can someone please guide me how can I pass variable type dynamic SQL record.
Thank you
Priyanka
Food for thought:
On remote db:
SQL > create or replace
package 2 pkg
3 is
4 type r_type is (record
Number 5,
6 name varchar2 (10)
7 );
(p) 8 procedure
9 p_rec in r_type,
10 p_out out varchar2
11 );
12 end;
13.Package created.
SQL > create or replace
package 2 body pkg
3 is
4 procedure p)
5 p_rec in r_type,
6 p_out out varchar2
7 )
8 is
9 start
10 p_out: = "ID = ' |" p_rec.ID | 'Name =' | p_rec. Name;
11 end;
12 end;
13.Package body created.
SQL >
On local db:
SQL > set serveroutput on
SQL > declare
v_rec 2 pkg.r_type@pdb1sol12;
3 v_out varchar2 (50);
4 start
v_rec.ID 5: = 1;
6 v_rec.name: = 'XXX ';
7 immediate execution"
8 begin
9 pkg.p@pdb1sol12 (: 1,: 2);
10 end;'
11 using v_rec,
12 v_out;
13 dbms_output.put_line (v_out);
14 end;
15.
using v_rec;
*
ERROR on line 11:
ORA-06550: line 11, column 20:
PLS-00457: expressions must be SQL types
ORA-06550: line 7, column 5:
PL/SQL: Statement ignoredSQL > declare
2 number of v_id: = 1;
3 v_name varchar2 (10): = 'XXX ';
4 v_out varchar2 (50);
5. start
6 immediate execution"
7 report
8 v_rec pkg.r_type@pdb1sol12.
9 begin
10 v_rec.id := :1;
11 v_rec.name: =: 2;
12 pkg.p@pdb1sol12 (v_rec,: 3);
13 end;'
14 using v_id,
15 in v_name,
16 v_out;
17 dbms_output.put_line (v_out);
18 end;
19.
ID = 1 name = XXXPL/SQL procedure successfully completed.
SQL >
SY.
-
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;
-
Dynamic Action run PL/SQL Code runs is not after 4.2.5 upgrade
APEX 4.2.4 to 4.2.5 11.2 database upgrade
I have a button to click on DA who owns shares run of PL/SQL Code and update point who worked in version 4.2.4 which is no longer running after the 4.2.5 patch.
The PL/SQL procedure has been tested autonomous and it runs correctly.
I tested him DA is actually shot on the click event by adding an alert "DA xxxx pulled" action before the execution of work of PL/SQL action and action alert.
There is also a similar on DA click which makes the action opposite to the DA problem and it works both are configured in the same way:
Static DA, run Code PL/SQL - check waiting for result, and not repress with the same Submit and return items.
Any ideas on a possible cause/solution much appreciated
Fixed it, the question was the Page elements of return of goods on the action of PL/SQL Code:
If the target element was empty the action failed, by adding a value in the database through a normal SQL insert then the insert DA completed successfully.
Removing Page elements at the point of return of the action of PL/SQL and together action update the target element after the DA fires in all scenarios.
But thanks for the lead
-
want to understand the stages of executing pl/sql code
Hello all;
I want to know the logic of programming for the pl/sql code, what I have written;
because I was late yesterday to resolve the simple error.
> > It's link https://forums.Oracle.com/thread/2565867
OK now that I have written my code same lineup, but few changes:
now it's working. as I said above, I want to know the programming logic "flow of execution steps" of pl/sql code
1 DECLARE
2 a number: = 10;
3 number of b: = 20;
Number 4 c;
5 procedure findmin (x IN number, are there in numbers, number of Z OUT) IS
6 BEGIN
7 < < BLOCK1 > >
8 x if you can
9 z: = x;
10 other
11 z: = y;
12 end if;
13 END;
BEGIN 14
15 < < BLOCK2 > >
16 findmin(a, b, c);
17 DBMS_OUTPUT. Put_line (c);
18 * END;
19.
10
PL/SQL procedure successfully completed.
> > Is this process flow? > >
1. the declaration part.
2 during playback findmin online no 5 then control passes to the line not 16.
3. after receving input values, control passes back to 5
4. then compiler executes the code accordingly.
Question: how many compiler Oracle will execute code written?
8f953842-815B-4D8C-833d-f2a3dd51e602 wrote:
1. the declaration part.
2 during playback findmin online no 5 then control passes to the line not 16.
3. after receving input values, control passes back to 5
4. then compiler executes the code accordingly.
Question: how many compiler Oracle will execute code written?
1. any declaration section is processed in order to declare and allocate the space/memory etc. Including declaring the procedure in scope in memory (the procedure is not executed)
2 execution block to get the code begins with the first statement after BEGIN
3. the procedure is called in memory with the parameters passed to it.
4. when the procedure completes execution returns to the statement in the main execution block, after the procedure call.
Note:
The compiler is not executing code, it compiles just in memory or stored in the database (depending on whether it is an anonymous block or the stored procedure / package etc..)
The code isn't really jump 'line by line', because at the time when it is run, it is compiled down to a pcode (or native code if this is allowed), and which may contain several intermediate statements to run the underlying process. The compiled code however keep track of line numbers of source code of error for the purposes of statement internally.
-
Avoid PL/SQL procedure successfully completed in sqlplus.
Hello
I've just got simple script:
who checks consisten gets per second and as output:set serveroutput on size 999999 declare cg_before number := 0; cg_after number := 0; cg_total number := 0 ; stamp date ; begin --stamp := sysdate; select value into cg_before from v$sysstat where statistic# = 41; dbms_lock.sleep(1); select sysdate , value into stamp, cg_after from v$sysstat where statistic# = 41; cg_total := cg_after - cg_before ; dbms_output.put_line(to_char(stamp, 'YYYY-MM-DD_HH24MISS') || ' ' || cg_total); end; / / / / / / /
PL/SQL procedure successfully completed.
2012-01-19_152310 7780
PL/SQL procedure successfully completed.
2012-01-19_152311 5406
PL/SQL procedure successfully completed.
I want to avoid the "Procedure PL/SQL completed with success." displayed.
Or maybe no idea how this code better then I can always you side easy exit customer viewable by Excel.
Concerning
GregGTry setting set feedback off and left the echo
-
If I can revise the SQL code generated by OBIEE
Hi all
I had a problemetic SQL generated automatically by OBIEE. I have to rewrite or at least add a tip to make it complete within a fixed period.
But I'm not sure if OBIEE offers us this feature to change or customize the SQLs it generates?
Please help to give some advice.
Thank you very much.
LeonHi leon,.
OBIEE increases the performance of the aliases table, cz as he can't do oneself joined himself.
Please visit this link this will solve your problem to improve performance
http://www.iwarelogic.com/blog/performance-increasing-OBIEE-724
(GOLD) http://www.rittmanmead.com/2008/11/thoughts-on-OBIEE-performance-optimization-Diagnostics/UPDATE POST
@leon, you cannot change the SQL code generated by obiee, your obligation to use EXISTS instead of IN operator, then you can do this in the physical layer of RPD by accessing the properties of the table and select SQL problem and write your query with condition EXISTS on the relevant tables. So that in turn Bi server accepts and converts according to its methodology.UPDATE POST-2
@leon, you can use rownum in your where clause, but check the query generated by OBIEE and the results obtained by rownum satisfied your requirment.Please follow label by awarding points to make it useful to others and even for us. Rules to be followed http://forums.oracle.com/forums/ann.jspa?annID=939
hope responds to your question.mark points.
See you soon,.
KKPublished by: Jocelyn on January 24, 2011 22:25
Published by: Jocelyne 24 January 2011 22:27
Published by: Jocelyn on January 25, 2011 02:13
Published by: Jocelyne 25 January 2011 05:26
-
Subquery 'WITH SAWITH0 AS' OBIEE 11 g factoring clause contained in the generated sql code
I have observed that OBIEE 11 g generates in physics request log query using the (subquery factoring) WITH clause to the generated sql code elegantly readable. It's great! Thanks for the developers. However I have a few questions about it.
__Background__
Oracle database ' default behavior is that if you have only a subquery in the section, it runs as a perspective in line and he not materialized before the main sql is running. If you have more than one default database engine materializes all the in the order of definition. In some cases, it can completely blow up the SGA and make a query without end. To divert this behavior, you can apply two tips that work both in inline views in subqueries as well: / * + MATERIALIZE * / and / * + INLINE * /, however Analytics 11 g does not seem to have capabilities of Board at the table level logical, only at the level of the physical table.
If we go with the current default settings, the developers do not know this feature can fall on serious performance problems for the sake of a few sweets of syntax to the generated sql level, I'm afraid.
__Questions__
* It is possible to turn the Analytics Server to not use WITH but views inline instead?
* Is it possible to sneak in a few boards that would the / * + INLINE * / allusion to the proper place in the subqueries generated if necessary
* Is the Oracle database has any initialization parameter that can influence the behavior of this subquery factoring and divert by default?The WITH statement is not added to make the query more elegant, it is added for performance reasons. If your queries slow to run, then you can have a design problem. In a typical DWH DB SGA should be increased seriously given that ran queries are much larger and complex than on an OLTP DB. In all cases, you can disable the WITH statement in the administration tool by double clicking on your database on the physical layer from object in the features tab. The function is called WITH_CLAUSE_SUPPORTED.
-
Add the new column to Admin tool, including the SQL Code
Hi all
I am new to OBIEE and I already searched here in the forum but have not found an exact answer which could help me.
I have a table in the warehouse where to get information on employees. It's employe_id, manager_id and name.
Example:
Employe_id Manager_ID name
1 Mueller
2 1 Meier
Now, I would like to create a new column in the Mapping BI Admin tool business layer and add a SQL where to select the name of the Manager.
Is this possible? And how can we do it? It will work with a new logical column? Where we add the SQL Code?
I hope someone can answer my question!
Thank you very much!
Kind regards
DavidOK, I think I got it - the name of Manager is on a separate table (or a search to return to the current table) and your thinking that you want to label your SQL in the report to find the name of Manager based on Director ID, you have?
If so, import the table with the names of Manager in the physical layer. If this is the same table that you already have (but want to search him in the current table) then you need to create an alias for the current table.
For each new table in the Phy layer, or an alias - define the join (current_table.manager_id = manager_table_or_aliased_current_table.employee_id)
Once completed, we will on the source of the logic table in the MDB for this dimension, edit, on the general tab, "Add" and select the table / alias that you created in the phy layer. Click OK - it combines now two tables attached as a source - you can then map the name of the Manager search in your column 'name '.
Kind regards
Alastair
Maybe you are looking for
-
I upgraded to ois9.3.3 and now my voice command does not work
Yesterday, I did the upgrade of the ois 9.3.3 and since my voice command will not work. I searched the internet for advice on how to fix but nothing that they suggest work. How can I get rid of this upgrade and go back to what I had which works or
-
Satellite A200 - 23Q - cfixer window at startup
Hey guys!I hope someone can help me. Whenever I turn on my laptop (I have the Satellite A200 - 23Q) when my desktop appears at one point it breaks and I get the "cfixer" window pops up saying that it cannot find the cfixer file, and there is also a d
-
Lost all pictures and can not receive emails
Hello. Not exactly what happened to my laptop. I'm not able to get the emails and lost all of them. It's as if it was brand new.
-
My HP Pavilion TouchSmart 15-n071nr Notebook PC it is abbreviated DST is a failure
My HP Pavilion TouchSmart PC laptop 15-n071nr does not work, I get failure ID QC473F-6T776L-MFPWWK-60TH03 and I don't know what this also means my short DST says failed Please help me
-
Why a pdf file doesn't have a strange characters in the text?
I downloaded a PDF from a site of insurance about a year without problem. Using the same computer and browser (Safari) I just downloaded the latest version of this pdf file and the first page or 2 appear normal, but the number of pages after that is