oracle-sqldeveloper

How copy data from Excel to a table using Oracle SQL Developer

人走茶凉 提交于 2019-11-30 01:41:56
问题 Is there any alternative way to copy the data from Excel sheet and paste it into a table using Oracle SQL Developer!? For now I am using (PL/SQL Developer) by writing (for update) at the end of the select statement, Ex: Select * from ABD for update Then paste the columns from Excel to the table... Regards Adel 回答1: It's not exactly copy and paste but you can import data from Excel using Oracle SQL Developer. Navigate to the table you want to import the data into and click on the Data tab.

How do I view the Explain Plan in Oracle Sql developer?

北城以北 提交于 2019-11-30 01:14:53
I have few SQL queries which has very low query running performance and I want to check the query execution plan for this query. I am trying to execute the below query but its not showing any query execution plan. Its only display message plan FOR succeeded. I dont know is there any settings that we have to do in oracle sql developer to vies explain plan for query : EXPLAIN PLAN FOR Select SO.P_OPTION_ID FROM SIMSIM JOIN P_TYPE PT on PT.KEY=SIM.P_TYPE_KEY JOIN P_CONFIG PC ON PC.ID=PT.PRODUCT_CONFIG_ID JOIN P_OPTION PO ON PO.OPTION_KEY=PC.DEFAULT_PRODUCT_OPTIONS JOIN S_OPTION SO ON SO.SERVICE

Add a Column that Represents a Concatenation of Two Other Varchar Columns

丶灬走出姿态 提交于 2019-11-30 00:42:29
问题 I have an employees table and I want to add a third column valued as the concatenation of the first and last name called "FullName". How can I accomplish that without losing any data from either of the first two columns? 回答1: Quick preface: this answer was based on the originally incorrect tag that this question was relating to SQL Server. I'm no longer aware of its validity on Oracle SQL Developer. ALTER TABLE Employees ADD FullName AS (FirstName + ' ' + LastName) Although in practice I'd

Need to count records and group count by date on oracle db using sql developer

天大地大妈咪最大 提交于 2019-11-30 00:39:47
问题 I have a table like the following ID created sent type ----------------------------------------------------- 0001463583000051783 31-JUL-12 1 270 0081289563000051788 01-AUG-12 1 270 0081289563000051792 01-AUG-12 1 270 0081289563000051791 01-AUG-12 1 270 0081289563000051806 01-AUG-12 1 270 0001421999000051824 06-AUG-12 1 270 0001421999000051826 06-AUG-12 1 270 0001464485000051828 06-AUG-12 1 270 0082162128000051862 09-AUG-12 2 278 0082162128000051861 09-AUG-12 2 278 0022409222082910259 09-AUG

Creating a trigger in Oracle Express

强颜欢笑 提交于 2019-11-29 22:50:42
I was trying to do something like auto-increment in Oracle 11g Express and SQL Developer. I know very little about Oracle and I am also new to triggers. I tried running this, but I don't know how to do it properly. CREATE TABLE theschema.thetable (id NUMBER PRIMARY KEY, name VARCHAR2(30)); CREATE SEQUENCE theschema.test1_sequence START WITH 1 INCREMENT BY 1; create or replace trigger insert_nums before insert on theschema.thetable for each row begin select test1_sequence.nextval into :new.id from dual; end; / When I try to create the trigger, I get a screen which asks me for some "binds". The

how to set auto increment column with sql developer

狂风中的少年 提交于 2019-11-29 21:18:54
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. 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. This will create a trigger and a sequence, and associate the sequence to primary key. See the picture

Does anybody know what encrypting technique is JDeveloper/SQL Developer using to persist credentials?

白昼怎懂夜的黑 提交于 2019-11-29 18:57:20
I'd be more than interesting for me to understand which technique is being used here to persist sensible data since I'm needing to implement a similar solution. Here's a sample connection configuration and the resulting exported snippet: <?xml version = '1.0' encoding = 'UTF-8'?> <References xmlns="http://xmlns.oracle.com/adf/jndi"> <Reference name="My Connection" className="oracle.jdeveloper.db.adapter.DatabaseProvider" xmlns=""> <Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/> <RefAddresses> <StringRefAddr addrType="user"> <Contents>username</Contents> <

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

戏子无情 提交于 2019-11-29 18:49:09
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 information, please answer below. rizalp1 Can you try this? Go to Tools> Preferences > Database > NLS

Changing password with Oracle SQL Developer

岁酱吖の 提交于 2019-11-29 18:45:29
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? Americo Savinon The correct syntax for updating the password using SQL Developer is: alter user user_name identified by "new_password" replace "old_password" ; You can check more options for this command here: http:/

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

妖精的绣舞 提交于 2019-11-29 18:07:15
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 column of TRANS_CUSTNUM that is a foreign key referenced to the CUST_NUM in the CUSTOMER table. My