oracle-sqldeveloper

how to set auto increment column with sql developer

风格不统一 提交于 2019-11-28 17:24:21
问题 How do I set a column to increment automatically with Oracle SQL Developer? Why is the form disabled? Note: The image shows the Data Modeler, but the question and top answer talk about editing an existing database. 回答1: If you want to make your PK auto increment, you need to set the ID column property for that primary key. Right click on the table and select "Edit". In "Edit" Table window, select "columns", and then select your PK column. Go to ID Column tab and select Column Sequence as Type

Run Stored Procedure in SQL Developer?

China☆狼群 提交于 2019-11-28 16:16:01
问题 I am trying to run a stored procedure that has multiple in and out paramaters. The procedure can only be viewed in my Connections panel by navigating Other Users | | Packages | | If I right click , the menu items are "Order Members By..." and "Create Unit Test" (greyed out). The ability to "Run" the procedure does not seem possible when it's accessed by user. I have been trying to find an example of how to create an anonymous block so that I can run the procedure as a SQL file, but haven't

Use tnsnames.ora in Oracle SQL Developer

梦想的初衷 提交于 2019-11-28 15:50:19
I am evaluating Oracle SQL Developer . My tnsnames.ora is populated, and a tnsping to a connection defined in tnsnames.ora works fine. Still, SQL Developer does not display any connections. Oracle SQL Developer Soars mentions, that if you have Oracle client software and a tnsnames.ora file already installed on your machine, Oracle SQL Developer will automatically populate the Connections navigator from the net service names defined in tnsnames.ora. I also tried to set my TNS_ADMIN environment variable, but after restarting SQL Developer there are still no connections displayed. Any ideas?

How to Execute SQL Server Stored Procedure in SQL Developer?

淺唱寂寞╮ 提交于 2019-11-28 15:14:23
问题 I've been given a user account to a SQL Server database that only has privileges to execute a stored procedure. I added the JTDS SQL Server JDBC jar file to SQL Developer and added it as a Third Party JDBC driver. I can successfully log in to the SQL Server database. I was given this syntax for running the procedure: EXEC proc_name 'paramValue1' 'paramValue2' When I run this as either a statement or a script, I get this error: Error starting at line 1 in command: EXEC proc_name 'paramValue1'

SQL Developer is returning only the date, not the time. How do I fix this?

ⅰ亾dé卋堺 提交于 2019-11-28 13:47:43
问题 Here's what SQL Develoepr is giving me, both in the results window and when I export: CREATION_TIME ------------------- 27-SEP-12 27-SEP-12 27-SEP-12 Here's what another piece of software running the same query/db gives: CREATION_TIME ------------------- 2012-09-27 14:44:46 2012-09-27 14:44:27 2012-09-27 14:43:53 How do I get SQL Developer to return the time too? Partial answer: select TO_CHAR(creation_time,'DD-Mon-YYYY HH24:MI:SS') from If anyone knows how to set the default to show the full

Adding a row with columns that have sequenced primary and foreign key JDBC

淺唱寂寞╮ 提交于 2019-11-28 13:47:33
问题 My program has an add item and finish transaction option. The FinishTransaction class asks the user to input the customer's information, method of payment, and the payment. The total payment is displayed at the window. When the user click the checkout button, the data should be transferred from the CUSTOMER table (insert the customer's information), ORDERS table (insert the item's information bought), and the TRANSACTION table (insert the transaction information). The transaction table has a

Changing password with Oracle SQL Developer

China☆狼群 提交于 2019-11-28 13:33:59
问题 Many of my users do not use SQLPlus. I cannot give them alter user. We expire passwords every 60 days. I can't get the SQLPlus command "password" to work in SQL developer. When I hit run, I get an invalid command error When I hit run script, nothing happens. I don't want to write them a package to change their passwords since we have a lot of databases. Do I have a better option? 回答1: The correct syntax for updating the password using SQL Developer is: alter user user_name identified by new

How to change settings for SQL Developer to correctly recognize current version of SDK

孤街醉人 提交于 2019-11-28 13:25:30
I've installed Oracle 11g r2 to my machine and when I opened Oracle SQL Developer it says: java 1.6.0_02 is not supported and telling me to install new java version. Then I've installed JDK 1.6.0_27 and set the path in environment variables and run Oracle SQL Developer again, but the same error occurred. How can I change the settings for Oracle SQL Developer to recognize 1.6.0_27 as my SDK? sqldeveloper.conf under sqldeveloper/bin in the SQLDeveloper base directory has an entry for the java home being used. (So, on Windows, if you have unzipped SQLDeveloper to C:\sqldev then sqldeveloper.conf

Procedure to export table to multiple csv files

点点圈 提交于 2019-11-28 12:06:01
问题 I am working with an Oracle database - the only way I have to access it is through SQL Developer. Part of my work involves exporting large tables to csv files to pass to another group. Since this is mostly babysitting the system, I've been looking for a way to automate the export process. What I would like is to have a procedure like so: PROCEDURE_EXAMPLE(table_in in VARCHAR2, file_out in VARCHAR2) where table_in is the table I need to export, and it exports the table to a series of csv files

SQLDeveloper displays no tables under connections where it says tables

帅比萌擦擦* 提交于 2019-11-28 11:54:14
I am not sure why but I just installed SQLdeveloper 32 bit (3.0.0.4). When I click to expand the tables/views/indexes or etc it displays nothing at all! But when I do the following: SELECT owner, table_name FROM dba_tables I see the list of tables and I have read access to these tables since I can do a select * from anytable and data shows. Any thoughts? The SQL Developer tree shows you what objects you own, not what objects you have access to. If you want to see the objects that you have access to that are owned by other users, you would need to navigate to the "Other Users" branch of the