Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DML Scripts (like insert commands) for tables

544232Nov 30 2006 — edited Nov 15 2008
Hi,

Please help me find a solution for the problem.
I have nearly 100 master tables in my database with data.
My requirement is to generate DML script for 'Data' in this master tables.

Client need data of all master tables in DML format.(like insert commands); So they can simply execute it. How do this requirement

How can I do that?

Comments

Richard Longhurst

IF you could just get autocomplete working against aliased table names it would be usable in place of SQL developer.

User_EF1YH

Amazing updates thank you! I may be being dumb but how do I connect with a proxy login, I have done the "more options" but can't work out which username should be which. Usually in SQL dev my username would be personal_schema[proxy_schema] and use my personal schema password, how do I translate that to these options?

User_EF1YH

This would be huge (although it doesn't work amazingly for me in SQL Dev anyway due to the size of our database).

Adil D.

I find 3 bug ( performance & intellisense)
the shema combobox freeze VS code with lot of schema ( please virtualise or limit number of items showed without filter)
the filter tree is slow
autocomplete doesn't work in this case SELECT * FROM SCHEMA.TABLE t WHERE t.[autocomplete], i try it with SQL and PL/SQL
Idea :
add a TextBox filter on user/table , its currently difficult to navigate on this

important:
you need a beta/preview chanel for you extension it will help oracle :)

User_EF1YH

Managed to get it to work, the User Name is the bit in [], do not enter a password. The proxy User Name is the personal_schema before the [], and the proxy password is the password for that schema.

Hi, sorry for the confusion. I will update the Quickstart to make it easier for anyone else trying to do this.

Christian.Shay -Oracle

Hi Adil,
Thank you for the bug report - it is very valuable. If you have any more feedback in the future please continue to let us know here on this forum so we can improve the product.

Hi Adil,
We'd like to get more information about the schema combobox slowness. Could you please execute the following script against the same database you are connecting to when you try to use that combo box? (eg connect first without setting the combo box and then run this script)
spool c:\temp\timings.txt
set timing ON
select count(*) from all_users;
SELECT USERNAME FROM ALL_USERS ORDER BY USERNAME;
set timing off

You could post the results here or email the timings.txt file to me at christian (dot) shay (at) oracle (dot) com

Adil D.

Hi,
here the result ( i hide the users name for confidentiality),
I think, the problem seems to be front-end (the combobox try to show the 20 891 USER and freeze vscode)

SQL> set timing ON
SQL> select count(*) from all_users;
 COUNT(*)
----------
   20891
Elapsed: 00:00:00:29
SQL> SELECT USERNAME FROM ALL_USERS ORDER BY USERNAME;
USERNAME                                     
--------------------------------------------------------------------------------
                                    XXXXXX
 Elapsed: 00:00:00:05
SQL> set timing off

Christian.Shay -Oracle

Hi again Adil,
sorry, I thought I replied to this already - I passed this on to our developers and we will fix this in the next release.
In the meantime can you please try the following workaround?

  1. Don't click on the Schema drop down, instead just click on the text area.
  2. Then, just type the name of the schema you want to use.
    My understanding is that this will avoid fetching all the schemas and will let you proceed with the schema of your choice.
    Could you try that out and let me know if it works for you?
User_DAZSK

Hi,
I discover this extension today and seems very promising to me.
I can connect to a 19.3 oracle database using tns without problems and execute queries.
The Oracle Explorer works with Tables, Views, ... but in my case it is not able to list Packages, getting the error:
ORA-00904: "SELTAB"."SUBOBJECT_NAME": invalid identifier
Any idea what is happening?
Thanks,

Could you please tell me the version of the database you are connecting to and what OS you are using for VS Code?
Then, please:

  1. Go to visual studio code Settings for Oracle Developer Tools for VS Code and
    a) Check "Enable Logging"
    b) Set Logging Level to "Information"

  2. Close and reopen vscode

  3. Reproduce the issue

  4. From cmd palette (F1), enter"Developer: Open Extension Logs Folder". It will open file explorer. Look in "Oracle.oracledevtools" folder.

  5. close vscode.

  6. after closing vscode, Please email me all files shown in the "Oracle.oracledevtools" folder at email address: christianDOTshayAToracleDOTcom

user510735

When will it be possible to run debug directly on VSCode ? I need to get rid of tools such as PL/SQL Developer

Hi, are you referring to PL/SQL debugging? If so, this is slated for a future release but we are not sure when at this time.

user510735

Hi Christian.Shay -Oracle,
You already gave me great news!

User_WP7OZ

Hi,
I cant find this new feature:
Setting to automatically clear results window after each execution
How can I enable this?

User_6BTKC

Hello,
Maybe I am missing something but are materialized views not available in the explorer in VS Code in the new update?

User_6BTKC

Hello,
Now that I've had some good time to toy around with the update for a bit at work I wanted to provide some feedback.
All in all this is a great update. My work's Oracle servers are located physically far away from me. The latency causes some issues for SQL developer on my laptop. We also use some non oracle databases so being in once place more often is helpful to me. This update gets the VS code support to a point where I can live in VS code for maybe 90% of my oracle work.
Pros:
My oracle databases are located physically very far away from me so network latency causes some hiccups for sql developer. The VS code extension handles these interruptions better and crashes basically never where sql developer sometimes does.
Code completion is far faster than in SQL developer.
The ability to use some of my snippets from other environments without having to import them into another format is wonderful.
The SQL plus support is also great, we use SQL plus to do our live deployments and being able to have good completion and highlighting there has been wonderful.
Requests for enhancement:
The object explorer is much improved with the other users/schemas. The edit in place functionality and commiting back to the database also seems to be working much faster. The only gap here is that some of the objects (Materialized Views for one) are not there. If the explorer could match all the objects SQL Developer shows that would be amazing.
Autocompletion/Intelisense comprehension of alias table names (and if possible variables in loops)
It would be great to be able to pre-stage some Intelisense completion too as a setting, something like load data for certain schemas in each database's entry. That way we can have the parser bring in some common schemas right away rather than waiting once we reference them.
Integration with the sever to client PLSQL debugger would be amazing, this is basically all I go into SQL Developer for right now

User_0GZN5

Great update for sure.
I do find the dark blue highlighting with black characters as very difficult to read. is the dark blue highlighting something that can be changed? or is it set somewhere else in VS Code?
I also notice that the number of rows in the result window seems to always be one less than the actual number of rows returned. as a result, if I get two rows returned, the grid of results shows the header row and then the first row of the results, but hiding the second. As a result, I have to try and scroll between the two rows and I am unable to see both rows at the same time. I have reset the # of rows in the results to 25, but this has not helped.
Thanks!!
..scoTT

Hi in the VS Code settings go to Extensions->Oracle Developer Tools for VS Code Configuration and then check off Query: Clear Results Window.
There's also a clear results window icon in the tab for the results window.

Christian.Shay -Oracle

Hi, no it is not available in 19.3.3.
This is scheduled for the next release.

Christian.Shay -Oracle

Thanks alot for the nice comments and for taking the time to give us your feedback!
*We plan to add Materialized Views in the next release. Are there other objects types that are missing that you think are critical?
*Intellisense for aliases is also a strong possibility for the next release
*Intellisense is pretty fast, so you may be suffering from the latency you described because your network is slow. Are you experiencing intellisense slowness for any object type, or just some of them? For your own users schema, or others? We already prioritize your schema and commonly used objects but perhaps we could add a way to prioritize other schemas. Could you give more detail on what is slow for you?
*We do plan to add PL/SQL debugging in a future release
Thanks again!

Christian.Shay -Oracle

Hi, our extension does not provide a way to modify the colors used for highlighting.
But please press F1 and in the command pallete type "theme". There you will see choices for color themes as well as a way to create your own custom theme. It may be possible that you are able to get things the way you like. Once you have tried that, let me know how it goes.
As for the issue with the results window showing one less row, we are aware of that. It seems to happen most when the Page Size extension setting is set to a lower number. Can you try setting Page Size to 20+?

User_6BTKC

Christian, thank you for collecting it and also just the updates in general I know we're talking enhancements but what you've done already is great. For your questions:
<<Are there other objects types that are missing that you think are critical?>>
I think for most workflows all that is missing are Materialized Views. It may be nice to add something like the public DB links that your user can see within your own schema but its really not as needed as materialized views. Maybe it is my work environment but we utilize them A TON.
<<Are you experiencing intellisense slowness for any object type, or just some of them? For your own users schema, or others? Could you give more detail on what is slow for you?>>
It is the second scenario. Things in my schema are fine but others pull up when you detect we are using them. So if I log in as GREG but plan on working on a package against schema BOB, BOB only starts populating when I first type into it. If it is a particularly large schema I could be waiting a bit for BOB to get pulled in. It would be nice to have a box or setting per connection that says pull in the data for these schemas upon connection so that can get out of the way up front. If it also und

User_0GZN5

Hi... I have set the Page Size to 25, but this hasn't helped. Hopefully it will be resolved in the next iteration. I've attached a quick snapshot of both the size issue and the colouring. I wasn't able to find anything in the theme. But I'm not familiar with what the setting might be called.
Greatly appreciated and really like using this tool. Thanks!!
Screen Shot 2020-11-27 at 6.25.49 PM.png

User_WP7OZ

Hi there,
Great extension, I have a couple of questions and suggestions for next version:
Is it possible to check the compilation errors? After a package compilation a have to execute "SHOW ERRORS" to check whats wrong with the code.
The extension supports vs code symbols or is planned this feature? This is really useful especially when the package is big.
The intellisense is fantastic, it would be great if we have the option to auto complete in lower case.
A better option to search an object. My database is really big, and search an object by schema and typing name in herarchy is really annoying. In SQL developer is so simple, just select the object name in the editor and press Shift+F4.
Sorry about my English, i speak Spanish :)

Thanks and sorry you are hitting this. Hopefully we can fix this in the next release. Sometimes I don't see this issue, but I have not isolated why it works sometimes and not others. Thanks again for the report.

User_6BTKC

Hi is the issue the thin results table or the color scheme? I can confirm and try to get a capture of the small results area if that is the issue i have noticed it as well.

User_HO3DJ

Hi, I very much appreciate the work put into improving this extension. Once the "Other Users" feature was added to browse other schemas I have been able to use this extension in my regular SQL workflow. I love the extension overall.
However, one issue I am having is that the last row of the table preview is cut off. Below is a result with just two rows to show the effect:
image.pngThis is just slightly annoying when trying to read off an aggregation, because I have to scroll to see the last line. Not a big deal once, but if I'm reading off ten or more aggregations it becomes a little more cumbersome (e.g. if I am entering the numbers into a form I have to keep switching windows). I know it is a small thing but it would be an improvement. (Sorry if it was mentioned above, I haven't read through previous posts).
My only other feature request would be a whitespace formatting feature (as in SQL Developer when hitting ctrl+F7).

Christian.Shay -Oracle

Compilation errors can be seen (without using SHOW ERRORS) if you edit PL/SQL using "Edit" option in Oracle Explorer. It is currently not available for other SQL scripts. We are looking into that for a future enhancement.
We are planning to include breadcrumbs soon, hopefully in the next release to make it easy to navigate though a large PL/SQL package.
Interesting suggestion. I will let the team know.
We are trying to improve performance in large databases
Thanks for the valuable input!
Christian

Christian.Shay -Oracle

Hi,
Yes, the annoyance of the trimmed last row is well known. You can use the scroll bar to see the row (if you were not aware). You can also try playing with the page size setting for the extension to see if you can get some relief (sometimes that works). We hope to fix the problem but it is a surprisingly hard issue for us to fix right now.
If you find the bug too painful, another possible option is to use the SPOOL command to send the output to a file.
As for formatting, we won't have it in the next release most likely but it is on our radar.
Thanks for the feedback!
Christian

User_6FSSN

Hi, this version looks great! I can compile packages (spec and bodies) using the extension!!!
One thing that I'd like a lot to have would be the ability to have the Intellisense in lowercase, or at least an option in the settings where I could choose the lower/UPPER there. I want to use the Intellisense a lot but our coding standard uses lowercase and therefore I am still not able to use that as I could.
Keep up the great work and happy holidays!

Bjego

@christian-shay-oracle I spotted an "issue/chage" with the intellisense too.
In earlier versions of the VSCode extension, intellisense did a unstrict lookup. So it spotted tables and properties containing your string. Eg. if you typed ID - it showed ForeignKey_Id , or OtherForeignKey_Id. This worked for Tables and Columns and has been replaced by a less productive version.

Now intellisense is looking up tables and colums with a starts with. This is pretty unproductive, if you have a large database and you may not know all columns by heart. Especially when you have (inkonsistent) prefixes to your tables and columns.

So please re add the imprecise intellisense lookup again. By the way this is also the default intellisense behaviour for all other things I do with Visual Studio Code and the normal Visual Studio. This lookup was the main feature, why I moved to VS Code from all the other PL SQL developer tools, we've used here before..

Bjego

By the way, I just rolled back to V. 19.3.2 - the much more productive intellisense is working there again.
The speed improvements are not really a benefit, as the indexing in a new Query-Window takes only 1-3 minutes, good time to grab a cup of coffee, afterwards I'm much more productive then with the newer and faster intellisense..

Bjego

Here is how it worked in the older version:
oldIntellisense.gif

Bjego

Looks like this forum isn't supporting gifs...

Bjego

Ah and by the way. An integrated formatter for the sql code would be great. Right now I'm using a 3rd party formatter - but I'd prefer a formatter from you guys. Especially because the 3rd party formatter is slow...

image.png

User_5LSM9

Nice Work!
I would love to have the following features:
A way to edit Relational Views query. It's not possible ATM.
A way to easily DDL Export all objects.
A way to quickly navigate/find objects ( with vscode CTRL+P )

Thanks for the kind words. I've added this to our list. Thanks!

Thanks for letting me know! This is a bug and we hope to fix it in the next release.

Thanks! We have received a lot of requests to support formatters and to include our own. It is on our list of features we hope to get in one of the coming releases.

Thanks for the feedback. The first two items are on our todo list for a future release.
The last one (searching) is possible today in a somewhat hacked form - we support VS Code tree control filtering. So if you expand the Oracle Explorer tree control so that all objects you want to search are fetched (for example, expand the Tables node to search tables) you can begin typing on the tree control and it will filter for you.

User_6BTKC

Hi, still living in here for about 75% of my tasks its great. I did notice one small tweak that would be wonderful. Right now in the database explorer I may have access to view but not edit an object. For example a package in a live DB. In the database explorer there is only edit, not view so I am unable to view the PLSQL of an object I cannot alter. A view or download without saving to the database option would be nice. If there is a way to do this and this is just user error let me know.

dpal17

Shape-Fields still not working. :-(

So in that scenario when you choose "Edit", it throws an error?
If it does not give an error and displays the PL/SQL, you can then use FIle->Save As to save the PL/SQL to a local file. Then you can do what you want with it like any other script.

User_6BTKC

Hi I should have been clear it does indeed error: Object is invalid or doesn't exist in database
Redacted schema names and such for privacy but this is what occurs, the screenshots are out of order the bottom is what I am clicking, top is whot occurs.
I can view (but not modify) this package body as this user if I do the same in SQL developer
Screenshot 2021-02-11 133116.png

User_6BTKC

While you are in a responding mood, is there a way to have a startup/connection script when you initially hit a database/connect a file to it? Would love to set server output on and change my NLS formats automatically. Right now I am just storing a code snipped in my vs code snippets with this and then executing it each time I open a new file/connection.

I am always in a responding mood!
The startup script option has been a popular feature request. It is on our list and I hope we can get to it soon.
Thanks for pointing our the issue with Viewing PL/SQL. I will look into it.

User_6BTKC

LOL Sorry that did not sound like it was meant! I more meant that I could tell you were on the forum at the moment. Yea for now if others want to store a standard vs code snippet that does help me

user12959705

I would really appreciate being able to format PL/SQL code. That's something I do constantly and is a great time saver when using other tools (e.g. DataGrip).

1 - 50 Next
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 31 2006
Added on Nov 30 2006
4 comments
1,736 views