plsqldeveloper

Skipping data fields while loading delimited data using SQLLDR

女生的网名这么多〃 提交于 2019-11-30 15:40:37
Consider below scenario: Table T1 (f1, f2, f3); Data files: a|b|c|d w|x|y|z I want to load this data skipping the second field as follow: f1 f2 f3 --- --- --- a d c w z y Would really appreciate your help or any pointer in constructing the control file to achieve this. Define the column you want to skip as FILLER. Keep in mind the order of the columns in the control file is typically the order they are in the datafile. If the name matches a column in the table, that's where it will go. ... ( f1 CHAR, -- 1st field in the file, goes to column named f1 in the table X FILLER, -- 2nd field in the

Why do I get an open transaction when just selecting from a database View?

无人久伴 提交于 2019-11-30 13:43:45
If I execute a simple select statement in pl/sql developer against a database table, I get a standard set of results back as I would expect. Recently, I pasted a query from a stored procedure that happened to select from a view, and noticed that a transaction was seemingly left open. This was appraent by the rollback and commit options were available in PL/SQL developer. A poll of other developers revealed that this seems to affect some but not others, which lead me to suspect PL/SQL Developer settings. Why on earth would this be the case? The view itelf has a DBLink to another database, but I

How to set numwidth in the grid output of PL/SQL developer?

China☆狼群 提交于 2019-11-30 11:50:20
I'm running some queries in PL/SQL Developer, and one of the columns in the result has 18-digit numbers. Instead of displaying the entire number in the resulting grid, PL/SQL Developer displays only 15 digits in scientific notation. I tried to find a way to change this in the preferences of the program, so that I'll see the entire number, just like set numwidth does in SQL*Plus. But my search was futile. How do I change this setting? Turns out this is possible!!! Tools -> Preferences -> SQL Window -> Number fields to_char RiKl Use to_char, then you get the all the numbers: select to_char ( t

How to connect to remote Oracle DB with PL/SQL Developer?

帅比萌擦擦* 提交于 2019-11-30 11:21:21
问题 I have a database "TEST", to which I connect at address 123.45.67.89:1521. How do I connect to it using PL/SQL Developer? 回答1: I would recommend creating a TNSNAMES.ORA file. From your Oracle Client install directory, navigate to NETWORK\ADMIN. You may already have a file called TNSNAMES.ORA, if so edit it, else create it using your favorite text editor. Next, simply add an entry like this: MYDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 123.45.67.89)(PORT = 1521)) (CONNECT_DATA =

PL/SQL developer import dump

依然范特西╮ 提交于 2019-11-30 05:09:49
问题 I have a dump file which includes two tables. Now I need to import this dump file. I was instructed to create two tablespaces beforehands.Now how do I import this dump file to these tablespaces. I'm using PL/SQL developer. 回答1: You cannot import a dump file from PL/SQL developer. Instead, you have to do it from the command line. Furthermore, you need access to the file system of the database server since you have to put the dump file in a directory directly accessible by Oracle. The tool to

how to convert a string date to date format in oracle10g

可紊 提交于 2019-11-30 03:24:06
My date value is stored as varchar2 and the value is 15/August/2009,4:30 PM , how to convert this to a proper date format like DD-MM-YYYY . You can convert a string to a DATE using the TO_DATE function, then reformat the date as another string using TO_CHAR, i.e.: SELECT TO_CHAR( TO_DATE('15/August/2009,4:30 PM' ,'DD/Month/YYYY,HH:MI AM') ,'DD-MM-YYYY') FROM DUAL; 15-08-2009 For example, if your table name is MYTABLE and the varchar2 column is MYDATESTRING: SELECT TO_CHAR( TO_DATE(MYDATESTRING ,'DD/Month/YYYY,HH:MI AM') ,'DD-MM-YYYY') FROM MYTABLE; PenFold You need to use the TO_DATE function.

How to connect to remote Oracle DB with PL/SQL Developer?

十年热恋 提交于 2019-11-30 01:29:38
I have a database "TEST", to which I connect at address 123.45.67.89:1521. How do I connect to it using PL/SQL Developer? I would recommend creating a TNSNAMES.ORA file. From your Oracle Client install directory, navigate to NETWORK\ADMIN. You may already have a file called TNSNAMES.ORA, if so edit it, else create it using your favorite text editor. Next, simply add an entry like this: MYDB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 123.45.67.89)(PORT = 1521)) (CONNECT_DATA = (SID = TEST)(SERVER = DEDICATED)) ) You can change MYDB to whatever you like, this is the identifier that

How to set numwidth in the grid output of PL/SQL developer?

前提是你 提交于 2019-11-29 17:47:39
问题 I'm running some queries in PL/SQL Developer, and one of the columns in the result has 18-digit numbers. Instead of displaying the entire number in the resulting grid, PL/SQL Developer displays only 15 digits in scientific notation. I tried to find a way to change this in the preferences of the program, so that I'll see the entire number, just like set numwidth does in SQL*Plus. But my search was futile. How do I change this setting? 回答1: Turns out this is possible!!! Tools -> Preferences ->

Date query ran in PL/SQL Developer shows time, but does not show in Oracle SQL Developer

大憨熊 提交于 2019-11-29 16:38:38
The same query ran in PL/SQL Developer shows time, however it does not show in Oracle SQL Developer. Is there a way to get the time in SQL Developer? In SQL Developer: In PL/SQL: This is the details of the date field: You can change this in the Tools / Preferences dialog of SQL developer: Select Database / NLS Parameters in the tree view on the left. Then put dd/mm/yyyy hh24:mi:ss into the Date Format field. Press OK to close the dialog. user4550960 To make it simple: use to_char() function, it will work with SQL developer as well as Pl/sql. select to_char(sysdate,'MM-DD-YYYY HH:Mi:SS') from

Is there a keyboard shortcut for writing “SELECT * FROM” template?

对着背影说爱祢 提交于 2019-11-29 02:12:14
问题 Is there a way to generate a SELECT * FROM template in SQL editor by a certain keyboard shortcut in PL/SQL Developer or another similar tool ? It would be great to save the time needed to write this repetitive statement with such keyboard shortcut. 回答1: We can set up some shortcuts for there regularly used words. For example, we can type s , and pressing the space bar, the letter s will be replaced with SELECT and another example, type sf and hit space bar, it will be replaced with select *